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:
0f22eb9
)
Add a comment about when maybePrefixMatch can be removed
author
Ian Lynagh
<igloo@earth.li>
Sat, 4 Aug 2007 15:33:33 +0000
(15:33 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sat, 4 Aug 2007 15:33:33 +0000
(15:33 +0000)
compiler/utils/Util.lhs
patch
|
blob
|
history
diff --git
a/compiler/utils/Util.lhs
b/compiler/utils/Util.lhs
index
bfb499a
..
495df82
100644
(file)
--- a/
compiler/utils/Util.lhs
+++ b/
compiler/utils/Util.lhs
@@
-590,6
+590,8
@@
cmpList cmp (a:as) (b:bs)
\end{code}
\begin{code}
+-- This (with a more general type) is Data.List.stripPrefix from GHC 6.8.
+-- This definition can be removed once we require at least 6.8 to build.
maybePrefixMatch :: String -> String -> Maybe String
maybePrefixMatch [] rest = Just rest
maybePrefixMatch (_:_) [] = Nothing