haga/lambda/lib/CommonDefinition.hs

10 lines
147 B
Haskell
Raw Permalink Normal View History

2024-04-22 14:33:40 +02:00
{-# LANGUAGE NoImplicitPrelude #-}
module CommonDefinition where
import Protolude
if' :: Bool -> a -> a -> a
if' True e _ = e
if' False _ e = e