Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module specifies any utilities used by this package. At this time, consider everything in this module to be private to the curl-runnings package
Synopsis
- makeRed :: Text -> Text
- makeGreen :: Text -> Text
- tracer :: Show a => Text -> a -> a
- mapRight :: (b -> c) -> Either a b -> Either a c
- mapLeft :: (a -> c) -> Either a b -> Either c b
- arrayGet :: [a] -> Int -> Maybe a
- makeLogger :: LogLevel -> CurlRunningsLogger
- makeUnsafeLogger :: Show a => LogLevel -> CurlRunningsUnsafeLogger a
- pShow :: Show a => a -> Text
- nowMillis :: IO Integer
- millisToS :: Integer -> Double
- data LogLevel
- type CurlRunningsLogger = LogLevel -> Text -> IO ()
- type CurlRunningsUnsafeLogger a = LogLevel -> Text -> a -> a
Documentation
makeUnsafeLogger :: Show a => LogLevel -> CurlRunningsUnsafeLogger a Source #
Instances
Enum LogLevel Source # | |
Defined in Testing.CurlRunnings.Internal | |
Eq LogLevel Source # | |
Ord LogLevel Source # | |
Defined in Testing.CurlRunnings.Internal | |
Show LogLevel Source # | |
type CurlRunningsLogger = LogLevel -> Text -> IO () Source #
A logger that respects the verbosity level given by input args
type CurlRunningsUnsafeLogger a = LogLevel -> Text -> a -> a Source #
A tracer that respects the verbosity level given by input args. Logging with this calls out to Debug.trace and can be used in pure code, but be aware of the unsafe IO.