packages feed

eternal-0.0.3: src/Control/Eternal/Syntax/Logic.hs

module Control.Eternal.Syntax.Logic
  ( ifSo
  , ifNot
  ) where

import Control.Monad (when, unless)

ifSo :: IO () -> Bool -> IO ()
ifSo = flip when

ifNot :: IO () -> Bool -> IO ()
ifNot = flip unless