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 #-}
1
2
{-# LANGUAGE GADTs #-}
2
3
{-# LANGUAGE KindSignatures #-}
3
4
{-# LANGUAGE PatternSynonyms #-}
@@ -83,7 +84,11 @@ data CheckedBottom node a t where
83
84
checkBottom :: Depth_ node a t -> CheckedBottom node a t
84
85
checkBottom (Depth_ 0 ) = unsafeCoerce AtBottom
85
86
checkBottom (Depth_ d) = unsafeCoerce (NotBottom (Depth_ (d - 1 )))
87
+ #if MIN_VERSION_GLASGOW_HASKELL(9,2,0,0)
86
88
{-# INLINE checkBottom #-}
89
+ #else
90
+ {-# NOINLINE checkBottom #-}
91
+ #endif
87
92
88
93
89
94
-- | A version of 'Depth_' for implementing traversals. Conceptually,
@@ -122,4 +127,8 @@ data CheckedBottom2 node a t b u where
122
127
checkBottom2 :: Depth2_ node a t b u -> CheckedBottom2 node a t b u
123
128
checkBottom2 (Depth2_ 0 ) = unsafeCoerce AtBottom2
124
129
checkBottom2 (Depth2_ d) = unsafeCoerce (NotBottom2 (Depth2_ (d - 1 )))
130
+ #if MIN_VERSION_GLASGOW_HASKELL(9,2,0,0)
125
131
{-# INLINE checkBottom2 #-}
132
+ #else
133
+ {-# NOINLINE checkBottom2 #-}
134
+ #endif
You can’t perform that action at this time.
0 commit comments