X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FbasicTypes%2FSrcLoc.lhs;h=d912beb4a685c48cc9a3d99186c1f14e17b06dea;hb=7f14b79fedbaf11d30ce96ec8440986ff5b2ac09;hp=d3db8667f209e9f3cc9254bbfa707e03c2b68530;hpb=7998a24404ffa577a3c303e37e4cfe0baf846454;p=ghc-hetmet.git diff --git a/compiler/basicTypes/SrcLoc.lhs b/compiler/basicTypes/SrcLoc.lhs index d3db866..d912beb 100644 --- a/compiler/basicTypes/SrcLoc.lhs +++ b/compiler/basicTypes/SrcLoc.lhs @@ -454,7 +454,7 @@ pprDefnLoc loc \begin{code} -- | We attach SrcSpans to lots of things, so let's have a datatype for it. data Located e = L SrcSpan e - deriving (Typeable, Data) + deriving (Eq, Ord, Typeable, Data) unLoc :: Located e -> e unLoc (L _ e) = e