File: necessary-brackets.hs

package info (click to toggle)
haskell-ormolu 0.8.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,932 kB
  • sloc: haskell: 17,183; makefile: 3
file content (3 lines) | stat: -rw-r--r-- 159 bytes parent folder | download | duplicates (2)
1
2
3
insertEmDash = Text.concat . map \case{ x | x == "--" -> "—"; x -> x } . Text.groupBy ((==) `on` Char.isSpace)

foo f a b c = f do {a} + f do {b} + f do {c}