Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Instances
(Alternative r, Alternative w, Applicative s, Monoid a) => Alternative (Codec r w (s a) i) Source # | |
(Applicative r, Applicative w, Applicative s, Monoid a) => Applicative (Codec r w (s a) i) Source # | |
Defined in Argo.Internal.Codec.Codec pure :: a0 -> Codec r w (s a) i a0 # (<*>) :: Codec r w (s a) i (a0 -> b) -> Codec r w (s a) i a0 -> Codec r w (s a) i b # liftA2 :: (a0 -> b -> c) -> Codec r w (s a) i a0 -> Codec r w (s a) i b -> Codec r w (s a) i c # (*>) :: Codec r w (s a) i a0 -> Codec r w (s a) i b -> Codec r w (s a) i b # (<*) :: Codec r w (s a) i a0 -> Codec r w (s a) i b -> Codec r w (s a) i a0 # | |
(Functor r, Functor w) => Functor (Codec r w s i) Source # | |
map :: (Functor r, Functor w) => (a -> b) -> (b -> a) -> Codec r w s a a -> Codec r w s b b Source #
mapMaybe :: (Alternative r, Alternative w, Monad r, Monad w) => (o2 -> Maybe o1) -> (i1 -> Maybe i2) -> Codec r w s i2 o2 -> Codec r w s i1 o1 Source #
toAlternative :: Alternative m => Maybe a -> m a Source #