File: necessary-brackets.hs

package info (click to toggle)
haskell-ormolu 0.7.2.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,528 kB
  • sloc: haskell: 16,077; makefile: 7
file content (3 lines) | stat: -rw-r--r-- 159 bytes parent folder | download
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}