[Haskell-cafe] primitive operations in StateT

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Tue Apr 16 07:42:57 CEST 2013


On 16 April 2013 15:04, Clark Gaebel <cgaebel at uwaterloo.ca> wrote:
> Hi list!
>
> I want to use MVectors in a StateT monad transformer.
>
> How do I do that? StateT isn't a member of 'PrimMonad', and I have no idea
> how to make it one.

You can use Control.Monad.Trans.lift to lift the PrimMonad operations
to PrimMonad m => StateT s m

>
> Regards,
>   - Clark
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com



More information about the Haskell-Cafe mailing list