#5523: Mistake in error messages for importing infix constructors
---------------------------------+------------------------------------------
Reporter: ivanm | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.0.4 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
With the following import statement:
{{{
import Data.Sequence((:<))
}}}
GHC provides the error:
{{{
test.hs:1:22:
In module `Data.Sequence':
`:<' is a data constructor of `ViewL'
To import it use
`import Data.Sequence (ViewL (:<))'
or
`import Data.Sequence (ViewL (..))'
Failed, modules loaded: none.
}}}
However, that first "fix" isn't correct: it ''should'' be:
{{{
import Data.Sequence(ViewL((:<)))
}}}
(which is a bit of a mouthful :p).
I don't have access to 7.2.1, so I'm not sure if this error still exists.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5523>
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