Skip to content

formatting error on advice involving infix constructors

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 ((:<)))
Trac metadata
Trac field Value
Version 7.0.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information