| License | BSD-3 |
|---|---|
| Maintainer | autotaker@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Test.Method.Monitor.Internal
Description
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
Constructors
| Enter | |
| Leave | |
Fields
| |
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 Methods 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.
Constructors
| 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
Constructors
| EqUptoShow a |
Instances
| Show a => Eq (EqUptoShow a) Source # | |
Defined in Test.Method.Monitor.Internal | |
| Show a => Ord (EqUptoShow a) Source # | |
Defined in Test.Method.Monitor.Internal Methods 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 Methods 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.
Constructors
| Monitor | |
Fields
| |