#4058: improve error message: Module `System.IO' does not export `LineBuffering'
---------------------------------+------------------------------------------
Reporter: simonmar | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 6.14.1
Component: Compiler | Version: 6.12.2
Keywords: | Difficulty: Easy (less than 1 hour)
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
`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)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4058>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs