haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 213 forks source link

Can't use with .chs files #1178

Open falsandtru opened 5 years ago

falsandtru commented 5 years ago

HIE throws an error with https://github.com/crclark/foundationdb-haskell/blob/master/src/FoundationDB/Error/Internal.hs#L13 because HIE can't parse https://github.com/crclark/foundationdb-haskell/blob/master/src/FoundationDB/Internal/Bindings.chs. Can you support .chs files?

mpickering commented 5 years ago

What is the actual error you have encountered?

falsandtru commented 5 years ago
Could not find module ‘FoundationDB.Internal.Bindings’
Use -v to see a list of the files searched for.
mpickering commented 5 years ago

It seems the problem here is that the immediate when the cradle is set up the chs are not preprocessed. Does anyone know how this currently works for alex/happy files?

dsturnbull commented 4 years ago

I don't think it does work quite right with alex/happy files, at least the current build as of today.

I have a sub-library defined that builds an alex module and a happy module. The cradle log shows it's unable to find the alex module.

As a workaround, I've further split my alex+happy-using sublibrary into one that only has the alex module and another new sublibrary with the rest of the stuff that uses it, including the happy module. The cradle seems perfectly able to build as it seems it can find things as long as they aren't local imports.