Commit 1f894f29 authored by Ryan Scott's avatar Ryan Scott Committed by Ben Gamari

Restore derived Eq instance for SrcLoc

GHC 7.10.2 and 7.10.3 had a derived `Eq` instance for `SrcLoc`, but it
seems to have been removed (see
6740d70d) during GHC 8.0 development.

Reviewers: hvr, austin, gridaphobe, bgamari

Reviewed By: gridaphobe, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1894
parent bfec4a6a
......@@ -47,6 +47,7 @@ import cycle,
which imports ‘Data.Maybe’ (libraries/base/Data/Maybe.hs)
-}
import GHC.Classes (Eq)
import GHC.Types
-- Make implicit dependency known to build system
......@@ -205,4 +206,4 @@ data SrcLoc = SrcLoc
, srcLocStartCol :: Int
, srcLocEndLine :: Int
, srcLocEndCol :: Int
}
} deriving Eq
......@@ -7,7 +7,7 @@ T5095.hs:9:9: error:
-- Defined in ‘Data.Either’
instance Eq Ordering -- Defined in ‘GHC.Classes’
...plus 24 others
...plus 13 instance involving out-of-scope typess
...plus 14 instance involving out-of-scope typess
(use -fprint-potential-instances to see them all)
(The choice depends on the instantiation of ‘a’
To pick the first instance above, use IncoherentInstances
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment