Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
- type HasCallStack = ?callStack :: CallStack
- panic :: (PanicComponent a, HasCallStack) => a -> String -> [String] -> b
- class Typeable a => PanicComponent a where
- useGitRevision :: Q Exp
Documentation
type HasCallStack = ?callStack :: CallStack #
Request a CallStack.
NOTE: The implicit parameter ?callStack :: CallStack
is an
implementation detail and should not be considered part of the
CallStack
API, we may decide to change the implementation in the
future.
Since: 4.9.0.0
panic :: (PanicComponent a, HasCallStack) => a -> String -> [String] -> b Source #
class Typeable a => PanicComponent a where Source #
panicComponentName :: a -> String Source #
panicComponentIssues :: a -> String Source #
^ Name of the panicing component.
panicComponentRevision :: a -> (String, String) Source #
^ Issue tracker for the panicking component.
useGitRevision :: Q Exp Source #
An expression of type a -> (String,String)
.
Uses template Haskell to query Git for the current state of the repo.
Note that the state reported depends on when the module containing
the splice was compiled.