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
|
pretty <$> exprType expr
|
||||||
where
|
where
|
||||||
setContextFromTarget = do
|
setContextFromTarget = do
|
||||||
[mdlsum,_] <- depanal [] False
|
ms <- depanal [] False
|
||||||
mdl <- findModule (ms_mod_name mdlsum) Nothing
|
mdl <- findModule (ms_mod_name (head ms)) Nothing
|
||||||
setContext [mdl] []
|
setContext [mdl] []
|
||||||
pretty = showSDocForUser neverQualify . pprTypeForUser False
|
pretty = showSDocForUser neverQualify . pprTypeForUser False
|
||||||
|
Loading…
Reference in New Issue
Block a user