Snap.Internal.Debug

snap-core-0.2.16: Snap: A Haskell Web Framework (Core)

Snap.Internal.Debug

Description

An internal Snap module for (optionally) printing debugging messages. Normally `debug` does nothing, but if you set `DEBUG=1` in the environment you'll get debugging messages. We use `unsafePerformIO` to make sure that the call to `getEnv` is only made once.

N.B. this is an internal interface, please don't write external code that depends on it.

# Documentation

debugErrno :: forall m. MonadIO m => String -> m ()

debug :: forall m. MonadIO m => String -> m ()

debugSeq :: MonadIO m => String -> m ()

debugErrnoSeq :: MonadIO m => String -> m ()

_debugMVar :: MVar ()

debugOn :: MonadIO m => String -> m ()

debugErrnoOn :: MonadIO m => String -> m ()

debugIgnore :: MonadIO m => String -> m ()

debugErrnoIgnore :: MonadIO m => String -> m ()