Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ReportFlag
- data ReportFlags
- defaultReportFlags :: ReportFlags
- profilingReportFlags :: ReportFlags
- setReportFlag :: ReportFlag -> ReportFlags -> ReportFlags
- clearReportFlag :: ReportFlag -> ReportFlags -> ReportFlags
- testReportFlag :: ReportFlag -> ReportFlags -> Bool
- data Flags = Flags {}
- defaultFlags :: Flags
- ifTrace :: Monad m => Flags -> Int -> m a -> m ()
- ifReport :: Monad m => Flags -> ReportFlag -> m a -> m ()
- ifProfiling :: Monad m => Flags -> m a -> m ()
Report flags
data ReportFlag Source #
ReportOutgoneFetches | outgone fetches, for debugging eg: timeouts |
ReportFetchStats | data fetch stats & errors |
ReportProfiling | enabling label stack and profiling |
ReportExceptionLabelStack | include label stack in HaxlException |
ReportFetchStack | log cost-center stack traces of dataFetch calls |
Instances
Bounded ReportFlag Source # | |
Defined in Haxl.Core.Flags minBound :: ReportFlag # maxBound :: ReportFlag # | |
Enum ReportFlag Source # | |
Defined in Haxl.Core.Flags succ :: ReportFlag -> ReportFlag # pred :: ReportFlag -> ReportFlag # toEnum :: Int -> ReportFlag # fromEnum :: ReportFlag -> Int # enumFrom :: ReportFlag -> [ReportFlag] # enumFromThen :: ReportFlag -> ReportFlag -> [ReportFlag] # enumFromTo :: ReportFlag -> ReportFlag -> [ReportFlag] # enumFromThenTo :: ReportFlag -> ReportFlag -> ReportFlag -> [ReportFlag] # | |
Eq ReportFlag Source # | |
Defined in Haxl.Core.Flags (==) :: ReportFlag -> ReportFlag -> Bool # (/=) :: ReportFlag -> ReportFlag -> Bool # | |
Show ReportFlag Source # | |
Defined in Haxl.Core.Flags showsPrec :: Int -> ReportFlag -> ShowS # show :: ReportFlag -> String # showList :: [ReportFlag] -> ShowS # |
data ReportFlags Source #
Instances
Show ReportFlags Source # | |
Defined in Haxl.Core.Flags showsPrec :: Int -> ReportFlags -> ShowS # show :: ReportFlags -> String # showList :: [ReportFlags] -> ShowS # |
setReportFlag :: ReportFlag -> ReportFlags -> ReportFlags Source #
clearReportFlag :: ReportFlag -> ReportFlags -> ReportFlags Source #
testReportFlag :: ReportFlag -> ReportFlags -> Bool Source #
Flags
Flags that control the operation of the engine.
Flags | |
|
defaultFlags :: Flags Source #
ifTrace :: Monad m => Flags -> Int -> m a -> m () Source #
Runs an action if the tracing level is above the given threshold.
ifReport :: Monad m => Flags -> ReportFlag -> m a -> m () Source #
Runs an action if the ReportFlag is set.
ifProfiling :: Monad m => Flags -> m a -> m () Source #