Skip to content

git head no longer builds with ghc < 7.10

Building git head after commit 4fffbc34 with ghc-7.8 or ghc-7.6 I get:

compiler/typecheck/TcInteract.hs:2034:13:
    Not in scope: ‘<$>’
    Perhaps you meant one of these:
      ‘TcM.<$>’ (imported from TcRnMonad),
      ‘<+>’ (imported from Outputable),
      ‘TcM.<*>’ (imported from TcRnMonad)

compiler/typecheck/TcInteract.hs:2034:29:
    Not in scope: ‘<$>’
    Perhaps you meant one of these:
      ‘TcM.<$>’ (imported from TcRnMonad),
      ‘<+>’ (imported from Outputable),
      ‘TcM.<*>’ (imported from TcRnMonad)

The <$> operator is only available by default in ghc 7.10 and later.

Trac metadata
Trac field Value
Version 7.11
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