mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-19 12:56:08 +00:00
Stripping before processing, not after
This commit is contained in:
parent
98bff009ac
commit
542522ec1c
@ -230,9 +230,10 @@ data EvalOut = EvalOut {
|
||||
}
|
||||
|
||||
cleanString :: String -> String
|
||||
cleanString x = strip $ if allBrackets then clean else x
|
||||
cleanString x = if allBrackets then clean else str
|
||||
where
|
||||
l = lines x
|
||||
str = strip x
|
||||
l = lines str
|
||||
allBrackets = all (fAny [isPrefixOf ">", null]) l
|
||||
fAny fs x = any ($x) fs
|
||||
clean = unlines $ map removeBracket l
|
||||
|
Loading…
x
Reference in New Issue
Block a user