on master help sign in
Fix minor indentation issue with `eightyCharLines`
commitf0d9d3be1d0a2cb6691ae8ef09d67ccd5d63387d authorEvan Czaplicki <info@elm-lang.org> dateTue 19 Nov 2013, 22:39 (13 years ago) parentf73a6ff
1 file changed+1−1
compiler/SourceSyntax/PrettyPrint.hs+1−1
compiler/SourceSyntax/PrettyPrint.hs+1−1
@@ -25,7 +25,7 @@ reprime = map (\c -> if c == '$' then '\'' else c)
2525eightyCharLines :: Int -> String -> String
2626eightyCharLines indent message = answer
2727 where
28− (answer,_,_) = foldl step (replicate (indent-1) ' ', indent-1, "") chunks
28+ (answer,_,_) = foldl step (spaces, indent-1, "") chunks
2929
3030 chunks = map (\w -> (w, length w)) (words message)
3131 spaces = replicate indent ' '