{"action":"opened","issue":{"url":"https://api.github.com/repos/haskell/c2hs/issues/155","labels_url":"https://api.github.com/repos/haskell/c2hs/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/haskell/c2hs/issues/155/comments","events_url":"https://api.github.com/repos/haskell/c2hs/issues/155/events","html_url":"https://github.com/haskell/c2hs/issues/155","id":126196460,"number":155,"title":"no parse when importing a module (with an import hook) that is using class hooks","user":{"login":"noughtmare","id":2665074,"avatar_url":"https://avatars.githubusercontent.com/u/2665074?v=3","gravatar_id":"","url":"https://api.github.com/users/noughtmare","html_url":"https://github.com/noughtmare","followers_url":"https://api.github.com/users/noughtmare/followers","following_url":"https://api.github.com/users/noughtmare/following{/other_user}","gists_url":"https://api.github.com/users/noughtmare/gists{/gist_id}","starred_url":"https://api.github.com/users/noughtmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noughtmare/subscriptions","organizations_url":"https://api.github.com/users/noughtmare/orgs","repos_url":"https://api.github.com/users/noughtmare/repos","events_url":"https://api.github.com/users/noughtmare/events{/privacy}","received_events_url":"https://api.github.com/users/noughtmare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-12T14:52:22Z","updated_at":"2016-01-12T14:52:22Z","closed_at":null,"body":"I have one file Types.chs with the code:\r\n\r\n```\r\nmodule Types where\r\n\r\ndata ExampleStruct\r\n{#pointer *example_struct as exampleStructPtr -> exampleStruct#}\r\n{#class exampleStructClass exampleStructPtr#}\r\n\r\ndata ChildStruct\r\n{#pointer *child_struct as childStructPtr -> childStruct#}\r\n{#class exampleStructClass => childStructClass childStructPtr#}\r\n```\r\n\r\nIf I then import that file with ```{#import Types#}``` in a second file, c2hs gives me the error: \"Prelude.read no parse\".\r\n\r\n\r\n"}}