Files
postgrest/src/CallStack.hs
T
Stephen DiehlandGitHub 46220a1a4a Added HasCallStack constraint for trace functions (#55)
* added HasCallStack constraint for trace functions, for issue #39

* unpack string on 7.6
2017-05-31 10:13:08 +01:00

19 lines
414 B
Haskell

{-# LANGUAGE CPP #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE ConstraintKinds #-}
module CallStack
( HasCallStack
) where
#if MIN_VERSION_base(4,9,0)
import GHC.Stack (HasCallStack)
#elif MIN_VERSION_base(4,8,1)
import qualified GHC.Stack
type HasCallStack = (?callStack :: GHC.Stack.CallStack)
#else
import GHC.Exts (Constraint)
type HasCallStack = (() :: Constraint)
#endif