packages feed

hydra-0.5.0: src/main/haskell/Hydra/Lib/Logic.hs

-- | Haskell implementations of hydra/lib/logic (logic and control flow) primitives

module Hydra.Lib.Logic where

import Hydra.Core

import Data.Int


and :: Bool -> Bool -> Bool
and x y = x && y

ifElse :: a -> a -> Bool -> a
ifElse x y b = if b then x else y

not :: Bool -> Bool
not = Prelude.not

or :: Bool -> Bool -> Bool
or x y = x || y