aivika-branches-0.1: Branching discrete event simulation library

CopyrightCopyright (c) 2016 David Sorokin <david.sorokin@gmail.com>
LicenseBSD3
MaintainerDavid Sorokin <david.sorokin@gmail.com>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Simulation.Aivika.Branch.Br

Contents

Description

Tested with: GHC 7.10.3

This module defines BrIO as an instance of the MonadDES type class.

Synopsis

Documentation

data BrIO a Source #

The branching computation.

Instances

Monad BrIO Source # 

Methods

(>>=) :: BrIO a -> (a -> BrIO b) -> BrIO b #

(>>) :: BrIO a -> BrIO b -> BrIO b #

return :: a -> BrIO a #

fail :: String -> BrIO a #

Functor BrIO Source # 

Methods

fmap :: (a -> b) -> BrIO a -> BrIO b #

(<$) :: a -> BrIO b -> BrIO a #

Applicative BrIO Source # 

Methods

pure :: a -> BrIO a #

(<*>) :: BrIO (a -> b) -> BrIO a -> BrIO b #

(*>) :: BrIO a -> BrIO b -> BrIO b #

(<*) :: BrIO a -> BrIO b -> BrIO a #

MonadException BrIO Source # 

Methods

catchComp :: Exception e => BrIO a -> (e -> BrIO a) -> BrIO a #

finallyComp :: BrIO a -> BrIO b -> BrIO a #

throwComp :: Exception e => e -> BrIO a #

MonadIO BrIO Source # 

Methods

liftIO :: IO a -> BrIO a #

data Ref BrIO # 
data Ref BrIO = Ref {}
data EventQueue BrIO # 
data Generator BrIO # 
data StrategyQueue BrIO FCFS # 
data StrategyQueue BrIO LCFS # 

runBr :: BrIO a -> IO a Source #

Run the branching computation.

branchLevel :: BrIO Int Source #

Return the current branch level starting from 0.

Orphan instances