Skip to content

Commit 0d4a055

Browse files
committed
remove hascallstack from internal functions
1 parent f57b117 commit 0d4a055

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

containers/src/Data/IntMap/Internal.hs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2389,11 +2389,7 @@ kvToTuple :: KeyValue a -> (Key, a)
23892389
kvToTuple (KeyValue k x) = (k, x)
23902390
{-# INLINE kvToTuple #-}
23912391

2392-
#if __GLASGOW_HASKELL__ >= 800
2393-
lookupMinSure :: HasCallStack => IntMap a -> KeyValue a
2394-
#else
23952392
lookupMinSure :: IntMap a -> KeyValue a
2396-
#endif
23972393
lookupMinSure (Tip k v) = KeyValue k v
23982394
lookupMinSure (Bin _ l _) = lookupMinSure l
23992395
lookupMinSure Nil = error "lookupMinSure Nil"
@@ -2418,11 +2414,7 @@ findMin t
24182414
| Just r <- lookupMin t = r
24192415
| otherwise = error "findMin: empty map has no minimal element"
24202416

2421-
#if __GLASGOW_HASKELL__ >= 800
2422-
lookupMaxSure :: HasCallStack => IntMap a -> KeyValue a
2423-
#else
24242417
lookupMaxSure :: IntMap a -> KeyValue a
2425-
#endif
24262418
lookupMaxSure (Tip k v) = KeyValue k v
24272419
lookupMaxSure (Bin _ _ r) = lookupMaxSure r
24282420
lookupMaxSure Nil = error "lookupMaxSure Nil"

0 commit comments

Comments
 (0)