curl-runnings-0.14.0: A framework for declaratively writing curl based API tests

Safe HaskellNone
LanguageHaskell2010

Testing.CurlRunnings.Internal

Description

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

Documentation

tracer :: Show a => Text -> a -> a Source #

mapRight :: (b -> c) -> Either a b -> Either a c Source #

mapLeft :: (a -> c) -> Either a b -> Either c b Source #

arrayGet :: [a] -> Int -> Maybe a Source #

Array indexing with negative values allowed

pShow :: Show a => a -> Text 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.