projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3bc400
)
Make (Located a) an instance of Eq, Ord
author
simonpj@microsoft.com
<unknown>
Fri, 15 Oct 2010 13:18:57 +0000
(13:18 +0000)
committer
simonpj@microsoft.com
<unknown>
Fri, 15 Oct 2010 13:18:57 +0000
(13:18 +0000)
Fulfils Trac #4369
compiler/basicTypes/SrcLoc.lhs
patch
|
blob
|
history
diff --git
a/compiler/basicTypes/SrcLoc.lhs
b/compiler/basicTypes/SrcLoc.lhs
index
d3db866
..
d912beb
100644
(file)
--- 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