hint 0.4.2.0 → 0.4.2.1
raw patch · 6 files changed
+19/−7 lines, 6 filesdep ~ghcPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ghc
API changes (from Hackage documentation)
Files
- AUTHORS +2/−0
- CHANGELOG.markdown +5/−0
- README +3/−0
- hint.cabal +2/−2
- src/Hint/GHC.hs +1/−1
- src/Hint/InterpreterT.hs +6/−4
AUTHORS view
@@ -14,3 +14,5 @@ Mark Wright Bertram Felgenhauer Samuel Gélineau+Jens Petersen+Corentin Dupont
CHANGELOG.markdown view
@@ -1,3 +1,8 @@+0.4.2.1+-------++ * Better error reporting (thanks to Corentin Dupont)+ 0.4.2.0 -------
README view
@@ -26,3 +26,6 @@ darcs get http://hub.darcs.net/jcpetruzza/hint ++If you report an issue, please send me an email as well, since+otherwise I get no notifications...
hint.cabal view
@@ -1,5 +1,5 @@ name: hint-version: 0.4.2.0+version: 0.4.2.1 description: This library defines an @Interpreter@ monad. It allows to load Haskell modules, browse them, type-check and evaluate strings with Haskell@@ -7,7 +7,7 @@ thread-safe and type-safe (even the coercion of expressions to values). - It is, esentially, a huge subset of the GHC API wrapped in a simpler+ It is, essentially, a huge subset of the GHC API wrapped in a simpler API. synopsis: Runtime Haskell interpreter (GHC API wrapper) category: Language, Compilers/Interpreters
src/Hint/GHC.hs view
@@ -42,7 +42,7 @@ showSDoc, showSDocForUser, showSDocUnqual, withPprStyle, defaultErrStyle ) -import ErrUtils ( mkLocMessage )+import ErrUtils ( mkLocMessage, pprErrMsgBagWithLoc) #if __GLASGOW_HASKELL__ < 706 import ErrUtils ( Message ) #else
src/Hint/InterpreterT.hs view
@@ -82,15 +82,17 @@ runGhc_impl a = InterpreterT (lift a) `catches`- [Handler (\(e :: GHC.SourceError) -> throwM $ compilationError e)+ [Handler (\(e :: GHC.SourceError) -> do+ dynFlags <- runGhc GHC.getSessionDynFlags+ throwM $ compilationError dynFlags e) ,Handler (\(e :: GHC.GhcApiError) -> throwM $ GhcException $ show e) ,Handler (\(e :: GHC.GhcException) -> throwM $ GhcException $ showGhcEx e) ] where- compilationError+ compilationError dynFlags = WontCompile- . map (GhcError . show)- . GHC.bagToList+ . map (GhcError . GHC.showSDoc dynFlags)+ . GHC.pprErrMsgBagWithLoc . GHC.srcErrorMessages #endif