haga/lambda/lib/CommonDefinition.hs
2024-04-22 14:33:40 +02:00

10 lines
147 B
Haskell

{-# LANGUAGE NoImplicitPrelude #-}
module CommonDefinition where
import Protolude
if' :: Bool -> a -> a -> a
if' True e _ = e
if' False _ e = e