#5385: formatting error on advice involving infix constructors
---------------------------------+------------------------------------------
Reporter: ekmett | Owner:
Type: bug | Status: patch
Priority: normal | Component: Compiler
Version: 7.0.2 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Incorrect warning at
compile-time
---------------------------------+------------------------------------------
Changes (by michalt):
* status: new => patch
Comment:
The attached patch should fix it. So now for the following code
{{{
module Test where
import Data.Sequence ( (:<) )
import Data.Tree ( Node )
}}}
we get:
{{{
[1 of 1] Compiling Test ( Test.hs, Test.o )
Test.hs:3:24:
In module `Data.Sequence':
`(:<)' is a data constructor of `ViewL'
To import it use
`import Data.Sequence (ViewL ((:<)))'
or
`import Data.Sequence (ViewL (..))'
Test.hs:4:20:
In module `Data.Tree':
`Node' is a data constructor of `Tree'
To import it use
`import Data.Tree (Tree (Node))'
or
`import Data.Tree (Tree (..))'
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5385#comment:1>
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