Commit 23b0e12a authored by Stian Håklev's avatar Stian Håklev

making removeBracket explicit on >

parent 542522ec
......@@ -237,7 +237,7 @@ cleanString x = if allBrackets then clean else str
allBrackets = all (fAny [isPrefixOf ">", null]) l
fAny fs x = any ($x) fs
clean = unlines $ map removeBracket l
removeBracket (x:xs) = xs
removeBracket ('>':xs) = xs
removeBracket [] = []
-- should never happen:
removeBracket other = error $ "Expected bracket as first char, but got string: " ++ other
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment