mirror of
https://github.com/tweag/ormolu.git
synced 2024-10-06 09:57:29 +03:00
12 lines
154 B
Haskell
12 lines
154 B
Haskell
{-# LANGUAGE LambdaCase #-}
|
|
|
|
module Foo (
|
|
foo, bar) where
|
|
|
|
foo :: Int
|
|
foo = 5
|
|
bar :: Int -> Int
|
|
bar = \case
|
|
0 -> foo
|
|
x -> x - foo
|