#5385: formatting error on advice involving infix constructors
---------------------------------+------------------------------------------
Reporter: ekmett | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.0.2 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Incorrect warning at
compile-time
---------------------------------+------------------------------------------
This seems to be an instance of a larger issue involving formatting of
infix type constructors, but if I write a bad import statement, ghc gives
me some advice to fix it:
{{{
Text/Trifecta/Strand.hs:17:25:
In module `Data.FingerTree':
`:<' is a data constructor of `ViewL'
To import it use
`import Data.FingerTree (ViewL (:<))'
or
`import Data.FingerTree (ViewL (..))'
}}}
but to actually import it you need
{{{
import Data.FingerTree (ViewL ((:<)))
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5385>
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