Closed noughtmare closed 8 years ago
@noughtmare Is this a real issue or not? I got an email comment from you saying that it wasn't, but that comment doesn't show up here, so I don't know if you deleted it... (If it is a real issue, I'll have a look at it on the weekend: I've blocked out some C2HS time for Sunday.)
Ah, yes I thought I had found the solution, but when I recompiled from scratch it didn't work anymore. So it is not fixed yet.
@noughtmare Thanks for confirming. I'll take a look on Sunday.
@noughtmare So, there was a bug in the handling of class definitions in CHS files imported into other files. However, you should probably also know that the example code you provided needs some changes to work, to do with language extensions needed for some of the instance definitions, and for lack of capitalisation on Haskell type names. You can see one working version in tests/bugs/issue-155/Types.chs
.
Thank you!
I have one file Types.chs with the code:
If I then import that file with
{#import Types#}
in a second file, c2hs gives me the error: "Prelude.read no parse".