Skip to content

Commit

Permalink
Print 4 spaces instead of tabs in output. #71
Browse files Browse the repository at this point in the history
  • Loading branch information
epost committed Aug 9, 2019
1 parent 981b555 commit 8ba17a9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Language/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ section :: String -> String -> String
section heading body = heading ++ "\n" ++ indentLines body

indentLines :: String -> String
indentLines = foldMap (\l -> "\t" <> l <> "\n"). lines
indentLines = foldMap (\l -> tab <> l <> "\n"). lines

tab :: String
tab = " "

-- | A version of intercalate that works on Foldables instead of just List,
-- | adapted from PureScript.
Expand Down

0 comments on commit 8ba17a9

Please sign in to comment.