bug fix for "type".
This commit is contained in:
parent
8760f6b714
commit
537d825668
4
Info.hs
4
Info.hs
@ -18,7 +18,7 @@ typeOf fileName expr = withGHC $ do
|
||||
pretty <$> exprType expr
|
||||
where
|
||||
setContextFromTarget = do
|
||||
[mdlsum,_] <- depanal [] False
|
||||
mdl <- findModule (ms_mod_name mdlsum) Nothing
|
||||
ms <- depanal [] False
|
||||
mdl <- findModule (ms_mod_name (head ms)) Nothing
|
||||
setContext [mdl] []
|
||||
pretty = showSDocForUser neverQualify . pprTypeForUser False
|
||||
|
Loading…
Reference in New Issue
Block a user