quickcheck-state-machine-0.0.0: Test monadic programs using state machine based models

Copyright(C) 2017 ATS Advanced Telematic Systems GmbH
LicenseBSD-style (see the file LICENSE)
MaintainerStevan Andjelkovic <stevan@advancedtelematic.com>
Stabilityprovisional
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Test.StateMachine.Internal.Types.IntRef

Description

This module provides internal refereces.

Synopsis

Documentation

data IntRef Source #

An internal (or integer) reference consists of a reference and a process id.

Constructors

IntRef Ref Pid 

newtype Pid Source #

A process id is merely a natural number that keeps track of which thread the reference comes from. In the sequential case the process id is always 0. Likewise the sequential prefix of a parallel program also has process id 0, while the left suffix has process id 1, and then right suffix has process id 2.

Constructors

Pid Int 

Instances

Eq Pid Source # 

Methods

(==) :: Pid -> Pid -> Bool #

(/=) :: Pid -> Pid -> Bool #

Num Pid Source # 

Methods

(+) :: Pid -> Pid -> Pid #

(-) :: Pid -> Pid -> Pid #

(*) :: Pid -> Pid -> Pid #

negate :: Pid -> Pid #

abs :: Pid -> Pid #

signum :: Pid -> Pid #

fromInteger :: Integer -> Pid #

Ord Pid Source # 

Methods

compare :: Pid -> Pid -> Ordering #

(<) :: Pid -> Pid -> Bool #

(<=) :: Pid -> Pid -> Bool #

(>) :: Pid -> Pid -> Bool #

(>=) :: Pid -> Pid -> Bool #

max :: Pid -> Pid -> Pid #

min :: Pid -> Pid -> Pid #

Read Pid Source # 
Show Pid Source # 

Methods

showsPrec :: Int -> Pid -> ShowS #

show :: Pid -> String #

showList :: [Pid] -> ShowS #

newtype Ref Source #

A reference is natural number.

Constructors

Ref Int 

Instances

Eq Ref Source # 

Methods

(==) :: Ref -> Ref -> Bool #

(/=) :: Ref -> Ref -> Bool #

Num Ref Source # 

Methods

(+) :: Ref -> Ref -> Ref #

(-) :: Ref -> Ref -> Ref #

(*) :: Ref -> Ref -> Ref #

negate :: Ref -> Ref #

abs :: Ref -> Ref #

signum :: Ref -> Ref #

fromInteger :: Integer -> Ref #

Ord Ref Source # 

Methods

compare :: Ref -> Ref -> Ordering #

(<) :: Ref -> Ref -> Bool #

(<=) :: Ref -> Ref -> Bool #

(>) :: Ref -> Ref -> Bool #

(>=) :: Ref -> Ref -> Bool #

max :: Ref -> Ref -> Ref #

min :: Ref -> Ref -> Ref #

Read Ref Source # 
Show Ref Source # 

Methods

showsPrec :: Int -> Ref -> ShowS #

show :: Ref -> String #

showList :: [Ref] -> ShowS #

type ConstIntRef = ConstSym1 IntRef Source #

Type-level function that constantly returns an internal reference.