···1616, Identity(..)
1717, AlongsideLeft(..)
1818, AlongsideRight(..)
1919+, bool
1920) where
20212122import Control.Applicative(Applicative(..))
···178179instance Functor f => Functor (AlongsideRight f a) where
179180 fmap f (AlongsideRight x) =
180181 AlongsideRight (fmap (\(a, b) -> (a, f b)) x)
182182+183183+----
184184+185185+bool ::
186186+ a
187187+ -> a
188188+ -> Bool
189189+ -> a
190190+bool f _ False =
191191+ f
192192+bool _ t True =
193193+ t