mirror of
https://github.com/ilyakooo0/ormolu.git
synced 2024-09-19 04:37:08 +03:00
35f4fb3932
Improved region formatting so that indented fragments can also be processed correctly.
18 lines
217 B
Haskell
18 lines
217 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
|