You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is mainly for the usage in haskell-ide-engine which dies a horrible death if the cabal file is invalid.
In particular, I would like to change:
initializeFlagsWithCradleWithMessage::GhcMonadm=>MaybeG.Messager->FilePath-- The file we are loading it because of->Cradle->m()
initializeFlagsWithCradleWithMessage msg fp cradle =do
compOpts <- liftIO $ getCompilerOptions fp cradle
case compOpts ofLeft err -> liftIO $ throwIO err
Right opts -> initSessionWithMessage msg opts
to
initializeFlagsWithCradleWithMessage::GhcMonadm=>MaybeG.Messager->FilePath-- The file we are loading it because of->Cradle->m (MaybeCradleError)
initializeFlagsWithCradleWithMessage msg fp cradle =do
compOpts <- liftIO $ getCompilerOptions fp cradle
case compOpts ofLeft err ->return$Just err
Right opts -> initSessionWithMessage msg opts >>returnNothing
In the hope that CradleError will be promoted to an even more descriptive error type.
The text was updated successfully, but these errors were encountered:
This is mainly for the usage in haskell-ide-engine which dies a horrible death if the cabal file is invalid.
In particular, I would like to change:
to
In the hope that CradleError will be promoted to an even more descriptive error type.
The text was updated successfully, but these errors were encountered: