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:
9ffadf2
)
Remove dead code from HaddockUtils
author
Ian Lynagh
<igloo@earth.li>
Mon, 29 Dec 2008 19:14:30 +0000
(19:14 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Mon, 29 Dec 2008 19:14:30 +0000
(19:14 +0000)
compiler/parser/HaddockUtils.hs
patch
|
blob
|
history
diff --git
a/compiler/parser/HaddockUtils.hs
b/compiler/parser/HaddockUtils.hs
index
abc31e1
..
0275e79
100644
(file)
--- a/
compiler/parser/HaddockUtils.hs
+++ b/
compiler/parser/HaddockUtils.hs
@@
-146,18
+146,6
@@
parseKey key toParse0 =
in
(c:line,rest)
in
(c:line,rest)
-
- -- indentation returns characters after last newline.
- indentation :: String -> String
- indentation s = fromMaybe s (indentation0 s)
- where
- indentation0 :: String -> Maybe String
- indentation0 [] = Nothing
- indentation0 (c:cs) =
- case indentation0 cs of
- Nothing -> if c == '\n' then Just cs else Nothing
- in0 -> in0
-
-- comparison is case-insensitive.
extractPrefix :: String -> String -> Maybe String
extractPrefix [] s = Just s
-- comparison is case-insensitive.
extractPrefix :: String -> String -> Maybe String
extractPrefix [] s = Just s