mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-19 12:56:08 +00:00
parent
95e1830e23
commit
f39b812fdc
@ -489,12 +489,7 @@ evalCommand :: Publisher -> CodeBlock -> KernelState -> Interpreter EvalOut
|
||||
evalCommand _ (Import importStr) state = wrapExecution state $ do
|
||||
write state $ "Import: " ++ importStr
|
||||
evalImport importStr
|
||||
|
||||
-- Warn about `it` variable.
|
||||
return $ if "Test.Hspec" `isInfixOf` importStr
|
||||
then displayError $ "Warning: Hspec is unusable in IHaskell until the resolution of GHC bug #8639." ++
|
||||
"\nThe variable `it` is shadowed and cannot be accessed, even in qualified form."
|
||||
else mempty
|
||||
return mempty
|
||||
|
||||
evalCommand _ (Module contents) state = wrapExecution state $ do
|
||||
write state $ "Module:\n" ++ contents
|
||||
|
Loading…
x
Reference in New Issue
Block a user