summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/ghci038.stdout
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghci/scripts/ghci038.stdout')
-rw-r--r--testsuite/tests/ghci/scripts/ghci038.stdout31
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/ghci038.stdout b/testsuite/tests/ghci/scripts/ghci038.stdout
new file mode 100644
index 0000000000..bd13690cca
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/ghci038.stdout
@@ -0,0 +1,31 @@
+import Prelude -- implicit
+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'
+map :: (a -> b) -> [a] -> [b]
+import Prelude -- implicit
+== still in scope, implicit import of Prelude
+map :: (a -> b) -> [a] -> [b]
+import Prelude ()
+== not in scope now
+import Prelude -- implicit
+x :: (a -> b) -> [a] -> [b]
+:module +*Foo -- added automatically
+:m -Foo
+import Prelude -- implicit
+:m +*Foo
+:module +*Foo
+x :: (a -> b) -> [a] -> [b]
+:module +*Foo
+import Prelude
+:module +*Foo
+import Prelude
+import Data.List hiding ( nub )
+:module +*Foo
+import Prelude
+import Data.List hiding ( nub )
+import qualified Data.List as Q
+:module +*Foo
+import Prelude