diff --git a/src/Data/Tree/Forest.hs b/src/Data/Tree/Forest.hs index 33e83c9..eacb577 100644 --- a/src/Data/Tree/Forest.hs +++ b/src/Data/Tree/Forest.hs @@ -622,8 +622,10 @@ instance (Applicative f, Monad f, Traversable f) => Monad (Forest f s) where where runForest (Forest tt) = tt {-# INLINE (>>=) #-} +#if !MIN_VERSION_base(4,12,0) fail = Forest . fail {-# INLINE fail #-} +#endif #if __GLASGOW_HASKELL__ >= 800