Prelude is not imported in a module called Prelude
I expect this to work..
[nix-shell:~/ghc-zubin]$ cat Prelude.hs
module Prelude where
foo = True
[nix-shell:~/ghc-zubin]$ ghc Prelude.hs
[1 of 1] Compiling Prelude ( Prelude.hs, Prelude.o )
Prelude.hs:3:7: error: Data constructor not in scope: True
|
3 | foo = True
| ^^^^
But if I call my module Prelude then the implicit Prelude import is suppressed (despite the fact it comes from a different package).