@@ -303,16 +303,16 @@ handleTypeOf value = do
303handleKindOf :: P.Value -> PSCI ()
303handleKindOf :: P.Value -> PSCI ()
304handleKindOf value = do
304handleKindOf value = do
305 st <- PSCI $ lift get
305 st <- PSCI $ lift get
306− let m = createTemporaryModule False st value
306+ let m = createTemporaryModule False st value
307− modName = P.ModuleName [P.ProperName "Main"]
307+ mName = P.ModuleName [P.ProperName "Main"]
308 e <- psciIO . runMake $ P.make modulesDir options (psciLoadedModules st ++ [("Main.purs", m)])
308 e <- psciIO . runMake $ P.make modulesDir options (psciLoadedModules st ++ [("Main.purs", m)])
309 case e of
309 case e of
310 Left err -> PSCI $ outputStrLn err
310 Left err -> PSCI $ outputStrLn err
311 Right env' ->
311 Right env' ->
312− case M.lookup (modName, P.Ident "it") (P.names env') of
312+ case M.lookup (mName, P.Ident "it") (P.names env') of
313 Just (ty, _, _) -> do
313 Just (ty, _, _) -> do
314− let st = P.CheckState env' 1 1 (Just modName)
314+ let st = P.CheckState env' 0 0 (Just mName)
315− k = L.runStateT (P.unCheck (P.kindOf modName ty)) st
315+ k = L.runStateT (P.unCheck (P.kindOf mName ty)) st
316 case k of
316 case k of
317 Left errStack -> PSCI . outputStrLn . P.prettyPrintErrorStack False $ errStack
317 Left errStack -> PSCI . outputStrLn . P.prettyPrintErrorStack False $ errStack
318 Right (kind, _) -> PSCI . outputStrLn . P.prettyPrintKind $ kind
318 Right (kind, _) -> PSCI . outputStrLn . P.prettyPrintKind $ kind