Skip to content

Invalid warning from GHCi

C:\Neil>ghci -Wall
GHCi, version 6.10.3.20090530: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> x <- return True

<interactive>:1:0: Warning: Defined but not used: `x'
Prelude> x
True
Prelude>

This error comes up in practice when writing .ghci files, for example for HLint. The user who reported it to me was running GHC 6.12.1.

Trac metadata
Trac field Value
Version 6.10.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
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