@@ -972,8 +972,10 @@ instance Monad (BehaviorM x) where
972 BehaviorM x >> BehaviorM y = BehaviorM $ x >> y
972 BehaviorM x >> BehaviorM y = BehaviorM $ x >> y
973 {-# INLINE return #-}
973 {-# INLINE return #-}
974 return x = BehaviorM $ return x
974 return x = BehaviorM $ return x
975+#if !MIN_VERSION_base(4,13,0)
975 {-# INLINE fail #-}
976 {-# INLINE fail #-}
976 fail s = BehaviorM $ fail s
977 fail s = BehaviorM $ fail s
978data BehaviorSubscribed x a
980data BehaviorSubscribed x a
979 = forall p. BehaviorSubscribedHold (Hold x p)
981 = forall p. BehaviorSubscribedHold (Hold x p)
@@ -2357,8 +2359,10 @@ instance HasSpiderTimeline x => Monad (Reflex.Class.Dynamic (SpiderTimeline x))
2357 x >>= f = SpiderDynamic $ dynamicDynIdentity $ newJoinDyn $ newMapDyn (unSpiderDynamic . f) $ unSpiderDynamic x
2359 x >>= f = SpiderDynamic $ dynamicDynIdentity $ newJoinDyn $ newMapDyn (unSpiderDynamic . f) $ unSpiderDynamic x
2358 {-# INLINE (>>) #-}
2360 {-# INLINE (>>) #-}
2359 (>>) = (*>)
2361 (>>) = (*>)
2362+#if !MIN_VERSION_base(4,13,0)
2360 {-# INLINE fail #-}
2363 {-# INLINE fail #-}
2361 fail _ = error "Dynamic does not support 'fail'"
2364 fail _ = error "Dynamic does not support 'fail'"
2363{-# INLINABLE newJoinDyn #-}
2367{-# INLINABLE newJoinDyn #-}
2364newJoinDyn :: HasSpiderTimeline x => DynamicS x (Identity (DynamicS x (Identity a))) -> Reflex.Spider.Internal.Dyn x (Identity a)
2368newJoinDyn :: HasSpiderTimeline x => DynamicS x (Identity (DynamicS x (Identity a))) -> Reflex.Spider.Internal.Dyn x (Identity a)
@@ -2637,6 +2641,10 @@ instance Monad (SpiderHost x) where
2637 SpiderHost x >> SpiderHost y = SpiderHost $ x >> y
2641 SpiderHost x >> SpiderHost y = SpiderHost $ x >> y
2638 {-# INLINABLE return #-}
2642 {-# INLINABLE return #-}
2639 return x = SpiderHost $ return x
2643 return x = SpiderHost $ return x
2644+#if MIN_VERSION_base(4,13,0)
2646+instance MonadFail (SpiderHost x) where
2640 {-# INLINABLE fail #-}
2648 {-# INLINABLE fail #-}
2641 fail s = SpiderHost $ fail s
2649 fail s = SpiderHost $ fail s
@@ -2660,8 +2668,10 @@ instance Monad (SpiderHostFrame x) where
2660 SpiderHostFrame x >> SpiderHostFrame y = SpiderHostFrame $ x >> y
2668 SpiderHostFrame x >> SpiderHostFrame y = SpiderHostFrame $ x >> y
2661 {-# INLINABLE return #-}
2669 {-# INLINABLE return #-}
2662 return x = SpiderHostFrame $ return x
2670 return x = SpiderHostFrame $ return x
2671+#if !MIN_VERSION_base(4,13,0)
2663 {-# INLINABLE fail #-}
2672 {-# INLINABLE fail #-}
2664 fail s = SpiderHostFrame $ fail s
2673 fail s = SpiderHostFrame $ fail s
2666instance NotReady (SpiderTimeline x) (SpiderHostFrame x) where
2676instance NotReady (SpiderTimeline x) (SpiderHostFrame x) where
2667 notReadyUntil _ = pure ()
2677 notReadyUntil _ = pure ()