From 7d9e15f274a164e79902e12f0ecefbfddd86aff1 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Fri, 15 Oct 2010 13:18:57 +0000 Subject: [PATCH] Make (Located a) an instance of Eq, Ord Fulfils Trac #4369 --- compiler/basicTypes/SrcLoc.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4