ImperativeHaskell-1.1.0.1: A library for writing Imperative style haskell.

PortabilityNoMonomorphismRestriction
Stabilityexperimental
MaintainerMatthew Mirman <mmirman@andrew.cmu.edu>
Safe HaskellNone

Control.Monad.Imperative.Operators

Description

Some predefined operators for the imperative monad.

Synopsis

Documentation

(+=:), (-=:), (*=:) :: (ValTp k, Num b) => V Var r b -> V k r b -> MIO r ()Source

(%=:) :: (ValTp k, Integral b) => V Var r b -> V k r b -> MIO r ()Source

(<.), (<=.), (<=.), (>.) :: (ValTp b1, ValTp b2, Ord b) => V b1 r b -> V b2 r b -> V Comp r BoolSource

(>=.) :: (Ord b, ValTp b2, ValTp b1) => V b1 r b -> V b2 r b -> V Comp r BoolSource

(==.) :: (ValTp b1, ValTp b2, Eq b) => V b1 r b -> V b2 r b -> V Comp r BoolSource

(+.), (*.), (-.) :: (ValTp b1, ValTp b2, Num c) => V b1 r c -> V b2 r c -> V Comp r cSource

(%.) :: (ValTp b1, ValTp b2, Integral c) => V b1 r c -> V b2 r c -> V Comp r cSource

(/.) :: (ValTp b1, ValTp b2, Fractional c) => V b1 r c -> V b2 r c -> V Comp r cSource

(&&.), (||.) :: (ValTp b1, ValTp b2) => V b1 r Bool -> V b2 r Bool -> V Comp r BoolSource

(~.) :: ValTp b1 => V b1 r Bool -> V Comp r BoolSource

liftOp2 :: (ValTp b1, ValTp b2) => (a -> b -> c) -> V b1 r a -> V b2 r b -> V Comp r cSource

liftOp2 f turns a pure function into one which gets executes its arguments and returns their value as a function. It is defined using liftOp.