Initial commit
This commit is contained in:
commit
c101616e62
309 changed files with 53937 additions and 0 deletions
29
bundled/Basement/Compat/CallStack.hs
Normal file
29
bundled/Basement/Compat/CallStack.hs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{-# LANGUAGE BangPatterns #-}
|
||||
{-# LANGUAGE DeriveDataTypeable #-}
|
||||
{-# LANGUAGE TypeFamilies #-}
|
||||
{-# LANGUAGE RebindableSyntax #-}
|
||||
{-# LANGUAGE NoImplicitPrelude #-}
|
||||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE ImplicitParams #-}
|
||||
{-# LANGUAGE ConstraintKinds #-}
|
||||
module Basement.Compat.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
|
||||
Loading…
Add table
Add a link
Reference in a new issue