Opened 3 years ago

Closed 3 years ago

Last modified 23 months ago

#10407 closed bug (fixed)

git head no longer builds with ghc < 7.10

Reported by: erikd Owned by: erikd
Priority: normal Milestone: 8.0.1
Component: Compiler Version: 7.11
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Building git head after commit 4fffbc34c0 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.

Change History (3)

comment:1 Changed 3 years ago by Erik de Castro Lopo <erikd@…>

In c119a8020f4e3073460e2c350507d5cf65771cea/ghc:

Use fmap instead of <$> (Fixes #10407)

The <$> operator is only available in the standard Prelude in
ghc 7.10 and later.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>

Test Plan: build with ghc-7.6

Reviewers: dterei, ezyang, austin

Subscribers: bgamari, thomie

Differential Revision: https://phabricator.haskell.org/D886

GHC Trac Issues: #10407

comment:2 Changed 3 years ago by erikd

Resolution: fixed
Status: newclosed

comment:3 Changed 23 months ago by thomie

Milestone: 8.0.1
Note: See TracTickets for help on using tickets.