Commit 83e34c30 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Fix ghci038 on Windows

It was failing due to quoting differences between Windows and other
platforms.
parent c9e94c5d
......@@ -2,19 +2,19 @@
:show imports
import Prelude
:show imports
:!echo -- map in scope due to explicit 'import Prelude'
:!printf "== map in scope due to explicit 'import Prelude'\n"
:t map
import Prelude ()
:show imports
:!echo -- still in scope, 'import Prelude ()' is subsumed by 'import Prelude'
:!printf "== still in scope, 'import Prelude ()' is subsumed by 'import Prelude'\n"
:t map
:module -Prelude
:show imports
:!echo -- still in scope, implicit import of Prelude
:!printf "== still in scope, implicit import of Prelude\n"
:t map
import Prelude ()
:show imports
:!echo -- not in scope now
:!printf "== not in scope now\n"
:t map
:module -Prelude
......@@ -23,11 +23,11 @@ import Prelude ()
:t x
:show imports
:!echo :m -Foo
:!printf ":m -Foo\n"
:m -Foo
:show imports
:t x
:!echo :m +*Foo
:!printf ":m +*Foo\n"
:m +*Foo
:show imports
:t x
......
import Prelude -- implicit
import Prelude
-- map in scope due to explicit import Prelude
== map in scope due to explicit 'import Prelude'
map :: (a -> b) -> [a] -> [b]
import Prelude
-- still in scope, import Prelude () is subsumed by import Prelude
== still in scope, 'import Prelude ()' is subsumed by 'import Prelude'
map :: (a -> b) -> [a] -> [b]
import Prelude -- implicit
-- still in scope, implicit import of Prelude
== still in scope, implicit import of Prelude
map :: (a -> b) -> [a] -> [b]
import Prelude ()
-- not in scope now
== not in scope now
import Prelude -- implicit
x :: (a -> b) -> [a] -> [b]
:module +*Foo -- added automatically
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment