License | BSD-3 |
---|---|
Maintainer | autotaker@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- newtype Tick = Tick {}
- data Event args ret
- = Enter { }
- | Leave {
- eventTick :: !Tick
- eventEnterTick :: !Tick
- eventRet :: !(Either (EqUptoShow SomeException) ret)
- type Clock = IORef Tick
- newtype ShowType a = ShowType a
- newtype EqUptoShow a = EqUptoShow a
- data Monitor args ret = Monitor {
- monitorTrace :: !(SomeRef [Event args ret])
- monitorClock :: !Clock
- newMonitor :: IO (Monitor args ret)
- tick :: MonadIO m => Monitor args ret -> m Tick
- logEvent :: MonadIO m => Monitor args ret -> Event args ret -> m ()
Documentation
Tick
represents call identifier
is a function call eventEvent
args ret
Enter | |
Leave | |
|
Instances
(Eq args, Eq ret) => Eq (Event args ret) Source # | |
(Ord args, Ord ret) => Ord (Event args ret) Source # | |
Defined in Test.Method.Monitor.Internal compare :: Event args ret -> Event args ret -> Ordering # (<) :: Event args ret -> Event args ret -> Bool # (<=) :: Event args ret -> Event args ret -> Bool # (>) :: Event args ret -> Event args ret -> Bool # (>=) :: Event args ret -> Event args ret -> Bool # | |
(Show args, Show ret) => Show (Event args ret) Source # | |
newtype to implement show instance which shows its type.
ShowType a |
Instances
Eq a => Eq (ShowType a) Source # | |
Ord a => Ord (ShowType a) Source # | |
Defined in Test.Method.Monitor.Internal | |
Typeable a => Show (ShowType a) Source # | |
newtype EqUptoShow a Source #
newtype to compare values via show
Instances
Show a => Eq (EqUptoShow a) Source # | |
Defined in Test.Method.Monitor.Internal (==) :: EqUptoShow a -> EqUptoShow a -> Bool # (/=) :: EqUptoShow a -> EqUptoShow a -> Bool # | |
Show a => Ord (EqUptoShow a) Source # | |
Defined in Test.Method.Monitor.Internal compare :: EqUptoShow a -> EqUptoShow a -> Ordering # (<) :: EqUptoShow a -> EqUptoShow a -> Bool # (<=) :: EqUptoShow a -> EqUptoShow a -> Bool # (>) :: EqUptoShow a -> EqUptoShow a -> Bool # (>=) :: EqUptoShow a -> EqUptoShow a -> Bool # max :: EqUptoShow a -> EqUptoShow a -> EqUptoShow a # min :: EqUptoShow a -> EqUptoShow a -> EqUptoShow a # | |
Show a => Show (EqUptoShow a) Source # | |
Defined in Test.Method.Monitor.Internal showsPrec :: Int -> EqUptoShow a -> ShowS # show :: EqUptoShow a -> String # showList :: [EqUptoShow a] -> ShowS # |
data Monitor args ret Source #
Monitor arg ret
is an event monitor of methods,
which logs method calls.
Monitor | |
|