mpickering / haskell-ide-engine

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

Handle ghc exceptions #65

Closed jneira closed 5 years ago

jneira commented 5 years ago
jneira commented 5 years ago

Ok i've changed the code to use errorHandlers like Haskell.Ide.Engine.Ghc already did.

The solution for SourceErrors is the simpler one (but i am not sure if it is the correct one): let the cradle be initialized in case there are SourceErrors cause hie will use it for compute diagnostics (that is the specialized place to do it) and report them for the user.