Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Util.CallStack

Description

Utilities for GHC's implicit call stacks feature.

Synopsis

Documentation

type Stack = Stack.HasCallStack Source #

Add this to the context of a function to give stack-aware functions access to its caller.

errorStack :: Stack => Text -> a Source #

Just like error, except show the caller's location.

errorIO :: Stack => MonadIO m => Text -> m a Source #

Like errorStack, except run in IO.