import RdrHsSyn ( RdrNameHsExpr )
import Rename ( renameExpr )
import Unique ( Uniquable(..) )
-import Type ( Type, splitTyConApp_maybe )
+import Type ( Type, splitTyConApp_maybe, tidyType )
import PrelNames ( ioTyConKey )
import ByteCodeGen ( byteCodeGen )
#endif
typeEnvClasses, typeEnvTyCons, emptyIfaceTable )
import FiniteMap ( FiniteMap, plusFM, emptyFM, addToFM )
import OccName ( OccName )
+import VarEnv ( emptyTidyEnv )
import Name ( Name, nameModule, nameOccName, getName, isGlobalName,
emptyNameEnv )
import Module ( Module, lookupModuleEnvByName )
Nothing -> return ({-WAS:pcs1-} pcs0, Nothing);
Just (pcs2, tc_expr, ty) -> do
+ let tidy_ty = tidyType emptyTidyEnv ty;
+
-- Desugar it
ds_expr <- deSugarExpr dflags pcs2 hst this_module
print_unqual tc_expr;
-- Convert to BCOs
bcos <- coreExprToBCOs dflags sat_expr
- return (pcs2, Just (bcos, print_unqual, ty));
+ return (pcs2, Just (bcos, print_unqual, tidy_ty));
}}}}
hscParseExpr :: DynFlags -> String -> IO (Maybe RdrNameHsExpr)