mirror of
https://github.com/google/ormolu.git
synced 2024-09-11 08:05:24 +03:00
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
|