call-stack-0.2.0: Use GHC call-stacks in a backward compatible way
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.CallStack

Documentation

type HasCallStack = ?callStack :: CallStack #

type CallStack = [(String, SrcLoc)] #

data SrcLoc #

Constructors

SrcLoc 

Fields

Instances

Instances details
Eq SrcLoc 
Instance details

Defined in GHC.Stack.Types

Methods

(==) :: SrcLoc -> SrcLoc -> Bool

(/=) :: SrcLoc -> SrcLoc -> Bool

Show SrcLoc 
Instance details

Defined in GHC.Show

Methods

showsPrec :: Int -> SrcLoc -> ShowS

show :: SrcLoc -> String

showList :: [SrcLoc] -> ShowS

callSite :: HasCallStack => Maybe (String, SrcLoc) #