mirror of
https://github.com/vale981/apheleia
synced 2025-03-05 17:41:41 -05:00

Found while trying to `make fmt-build` that the installer for `brittany` was broken, and couldn't fix it. This removes brittany, and adds the ormolu and fourmolu formatters for haskell, and sets ormolu as the default for haskell-mode. --------- Co-authored-by: Radon Rosborough <radon@intuitiveexplanations.com>
13 lines
241 B
Haskell
13 lines
241 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
|