License | BSD-style (see the file LICENSE) |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- newtype MealyT m a b = MealyT {}
- arrPure :: (a -> b) -> MealyT Identity a b
- arrM :: Functor m => (a -> m b) -> MealyT m a b
- upgrade :: Monad m => Mealy a b -> MealyT m a b
- scanMealyT :: Monad m => (a -> b -> a) -> a -> MealyT m b a
- scanMealyTM :: Functor m => (a -> b -> m a) -> a -> MealyT m b a
- embedMealyT :: Monad m => MealyT m a b -> [a] -> m [b]
Documentation
Mealy
machine, with monadic effects
Instances
AutomatonM MealyT Source # | |
Monad m => Arrow (MealyT m) Source # | |
Functor m => Profunctor (MealyT m) Source # | Profunctor Example:
|
Defined in Data.Machine.MealyT | |
Monad m => Category (MealyT m :: * -> * -> *) Source # | |
Monad m => Monad (MealyT m a) Source # | |
Functor m => Functor (MealyT m a) Source # | |
Applicative m => Applicative (MealyT m a) Source # | |
Defined in Data.Machine.MealyT | |
Pointed m => Pointed (MealyT m a) Source # | |
Defined in Data.Machine.MealyT | |
(Semigroup b, Monad m) => Semigroup (MealyT m a b) Source # | |
(Monoid b, Monad m) => Monoid (MealyT m a b) Source # | |
scanMealyT :: Monad m => (a -> b -> a) -> a -> MealyT m b a Source #
scanMealyTM :: Functor m => (a -> b -> m a) -> a -> MealyT m b a Source #
embedMealyT :: Monad m => MealyT m a b -> [a] -> m [b] Source #
embedMealyT Example:
>>>
embedMealyT (arr (+1)) [1,2,3]
[2,3,4]