Add a comment discouraging the use of toGhcMod in new code

This commit is contained in:
Daniel Gröber 2014-06-27 19:31:34 +02:00
parent 75b838bab6
commit 86a7f954e3

View File

@ -124,6 +124,7 @@ withErrorHandler label = ghandle ignore
hPrint stderr e
exitSuccess
-- | This is only a transitional mechanism don't use it for new code.
toGhcMod :: Ghc a -> GhcMod a
toGhcMod a = do
s <- gmGhcSession <$> ask