File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
containers/src/Data/Sequence/Internal Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ {-# LANGUAGE CPP #-}
12{-# LANGUAGE GADTs #-}
23{-# LANGUAGE KindSignatures #-}
34{-# LANGUAGE PatternSynonyms #-}
@@ -83,7 +84,11 @@ data CheckedBottom node a t where
8384checkBottom :: Depth_ node a t -> CheckedBottom node a t
8485checkBottom (Depth_ 0 ) = unsafeCoerce AtBottom
8586checkBottom (Depth_ d) = unsafeCoerce (NotBottom (Depth_ (d - 1 )))
87+ #if MIN_VERSION_GLASGOW_HASKELL(9,2,0,0)
8688{-# INLINE checkBottom #-}
89+ #else
90+ {-# NOINLINE checkBottom #-}
91+ #endif
8792
8893
8994-- | A version of 'Depth_' for implementing traversals. Conceptually,
@@ -122,4 +127,8 @@ data CheckedBottom2 node a t b u where
122127checkBottom2 :: Depth2_ node a t b u -> CheckedBottom2 node a t b u
123128checkBottom2 (Depth2_ 0 ) = unsafeCoerce AtBottom2
124129checkBottom2 (Depth2_ d) = unsafeCoerce (NotBottom2 (Depth2_ (d - 1 )))
130+ #if MIN_VERSION_GLASGOW_HASKELL(9,2,0,0)
125131{-# INLINE checkBottom2 #-}
132+ #else
133+ {-# NOINLINE checkBottom2 #-}
134+ #endif
You can’t perform that action at this time.
0 commit comments