improve error message: Module `System.IO' does not export `LineBuffering'
LineBuffering
is a constructor, and System.IO
definitely does export it. A more helpful error message might be
`LineBuffering' is a constructor in the data type `BufferMode`,
to import it use
import System.IO (BufferMode(LineBuffering))
or
import System.IO (BufferMode(..))
(adapted from a suggestion by John Launchbury)
Trac metadata
Trac field | Value |
---|---|
Version | 6.12.2 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |