Skip to content

NoImplicitPrelude being ignored by 6.10.1, works in 6.8.2

~/bin/ghci -XNoImplicitPrelude Main.hs results in the module being loaded

Expected result: the module should fail saying that putStrLn cannot be found/is not in scope.

module Main where
import Foo
import qualified Prelude as P
main = P.putStrLn []
module Foo where
zork = putStrLn "hi"
Trac metadata
Trac field Value
Version 6.10.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information