{-# OPTIONS -fplugin=Rattus.Plugin #-}
module Rattus (
module Rattus.Primitives,
module Rattus.Strict,
Rattus(..),
(|*|),
(|**),
(<*>),
(<**))
where
import Rattus.Plugin
import Rattus.Strict
import Rattus.Primitives
import Prelude hiding ((<*>))
{-# ANN module Rattus #-}
(<*>) :: O (a -> b) -> O a -> O b
f <*> x = delay (adv f (adv x))
(<**) :: Stable a => O (a -> b) -> a -> O b
f <** x = delay (adv f x)
(|*|) :: Box (a -> b) -> Box a -> Box b
f |*| x = box (unbox f (unbox x))
(|**) :: Stable a => Box (a -> b) -> a -> Box b
f |** x = box (unbox f x)