mirror of
https://github.com/google/ormolu.git
synced 2024-10-26 08:31:36 +03:00
35f4fb3932
Improved region formatting so that indented fragments can also be processed correctly.
18 lines
219 B
Haskell
18 lines
219 B
Haskell
{-# LANGUAGE LambdaCase #-}
|
|
|
|
module Foo (
|
|
foo, bar, baz) where
|
|
|
|
foo :: Int
|
|
foo = 5
|
|
|
|
bar :: Int -> Int
|
|
bar = \case
|
|
0 -> foo
|
|
x -> x - foo
|
|
|
|
baz :: Int -> Int
|
|
baz = gege
|
|
where
|
|
gege = 1 + 2
|