diff options
Diffstat (limited to 'compiler/main/InteractiveEval.hs')
-rw-r--r-- | compiler/main/InteractiveEval.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs index 6c95dc3bcc..9877e9a0c7 100644 --- a/compiler/main/InteractiveEval.hs +++ b/compiler/main/InteractiveEval.hs @@ -864,10 +864,10 @@ parseThing parser dflags stmt = do -- Getting the type of an expression -- | Get the type of an expression --- Returns its most general type -exprType :: GhcMonad m => String -> m Type -exprType expr = withSession $ \hsc_env -> do - ty <- liftIO $ hscTcExpr hsc_env expr +-- Returns the type as described by 'TcRnExprMode' +exprType :: GhcMonad m => TcRnExprMode -> String -> m Type +exprType mode expr = withSession $ \hsc_env -> do + ty <- liftIO $ hscTcExpr hsc_env mode expr return $ tidyType emptyTidyEnv ty -- ----------------------------------------------------------------------------- |