apheleia/test/formatters/samplecode/brittany/out.hs
Radon Rosborough 53f243b111
Add formatter tests (#72)
Closes #24
Builds on #25 by @PrimaryCanary
2022-01-05 15:35:12 -08:00

9 lines
191 B
Haskell

-- | Foo performs foo and sometimes bar.
foo :: Thoroughness -> Int -> Int
foo t x = if x > 20
then case t of
Thorough -> x + 50
Somewhat -> x + 20
NotAtAll -> 0
else 10 + 1