{"action":"created","issue":{"url":"https://api.github.com/repos/dhall-lang/dhall-haskell/issues/673","repository_url":"https://api.github.com/repos/dhall-lang/dhall-haskell","labels_url":"https://api.github.com/repos/dhall-lang/dhall-haskell/issues/673/labels{/name}","comments_url":"https://api.github.com/repos/dhall-lang/dhall-haskell/issues/673/comments","events_url":"https://api.github.com/repos/dhall-lang/dhall-haskell/issues/673/events","html_url":"https://github.com/dhall-lang/dhall-haskell/issues/673","id":378268480,"node_id":"MDU6SXNzdWUzNzgyNjg0ODA=","number":673,"title":"Decoding a dhall Type Expression in haskell","user":{"login":"Michael-Kateregga","id":31843898,"node_id":"MDQ6VXNlcjMxODQzODk4","avatar_url":"https://avatars1.githubusercontent.com/u/31843898?v=4","gravatar_id":"","url":"https://api.github.com/users/Michael-Kateregga","html_url":"https://github.com/Michael-Kateregga","followers_url":"https://api.github.com/users/Michael-Kateregga/followers","following_url":"https://api.github.com/users/Michael-Kateregga/following{/other_user}","gists_url":"https://api.github.com/users/Michael-Kateregga/gists{/gist_id}","starred_url":"https://api.github.com/users/Michael-Kateregga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michael-Kateregga/subscriptions","organizations_url":"https://api.github.com/users/Michael-Kateregga/orgs","repos_url":"https://api.github.com/users/Michael-Kateregga/repos","events_url":"https://api.github.com/users/Michael-Kateregga/events{/privacy}","received_events_url":"https://api.github.com/users/Michael-Kateregga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-11-07T12:32:17Z","updated_at":"2018-11-12T00:30:02Z","closed_at":null,"author_association":"NONE","body":"I know decoding a dhall literal file in haskell we use `input` with the expected output type specified. What about a dhall type file?\r\n\r\nI tried using inputExpr but I am not sure how I can convert the resulting (Expr Src X) into haskell's data structure."},"comment":{"url":"https://api.github.com/repos/dhall-lang/dhall-haskell/issues/comments/437720406","html_url":"https://github.com/dhall-lang/dhall-haskell/issues/673#issuecomment-437720406","issue_url":"https://api.github.com/repos/dhall-lang/dhall-haskell/issues/673","id":437720406,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzcyMDQwNg==","user":{"login":"Gabriel439","id":1313787,"node_id":"MDQ6VXNlcjEzMTM3ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/1313787?v=4","gravatar_id":"","url":"https://api.github.com/users/Gabriel439","html_url":"https://github.com/Gabriel439","followers_url":"https://api.github.com/users/Gabriel439/followers","following_url":"https://api.github.com/users/Gabriel439/following{/other_user}","gists_url":"https://api.github.com/users/Gabriel439/gists{/gist_id}","starred_url":"https://api.github.com/users/Gabriel439/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gabriel439/subscriptions","organizations_url":"https://api.github.com/users/Gabriel439/orgs","repos_url":"https://api.github.com/users/Gabriel439/repos","events_url":"https://api.github.com/users/Gabriel439/events{/privacy}","received_events_url":"https://api.github.com/users/Gabriel439/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T00:30:02Z","updated_at":"2018-11-12T00:30:02Z","author_association":"COLLABORATOR","body":"@sellout: Yeah, I agree that you sometimes don't want to directly use the generated type and you want to convert into your own type.  What I meant is that it's easier to perform such a conversion if the starting type is already a strongly-typed Haskell record instead of a weakly-typed `Expr` abstract syntax tree."}}
{"actor":{"display_login":"Gabriel439"}}