Skip to content

ghci accepts ":set -fno-glasgow-exts", but not ":unset -fglasgow-exts"

Using "gchi -fglasgow-exts", I want to turn off glasgow extensions. First I try:

Prelude> :unset -fglasgow-exts can't unset GHC command-line flags

But then:

Prelude> :set -fno-glasgow-exts Prelude> :t 5 5 :: (Num t) => t

So GHCi is capable of turning off glasgow extensions, but is apparently really picky about what command is used to do it.

sorear suggested I file this as a bug.

Trac metadata
Trac field Value
Version 6.6
Type Bug
TypeOfFailure OtherFailure
Priority low
Resolution Unresolved
Component GHCi
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