Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fwcd/curry-mtl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curry MTL

Monad classes for transformers in Curry (MonadState, MonadReader, ...), making it easy to work with a deeply nested stack of monad transformers.

Background

Now that multi-parameter type classes (MPTCs) are supported in Curry, we can look into adding the monad transformer type classes known from Haskell's mtl.

Limitations

MonadState currently does not use a functional dependency like the Haskell version, i.e.

class Monad m => MonadState s m where          -- This package
class Monad m => MonadState s m | m -> s where -- Haskell's mtl

This is due to limitations in the type system that would make certain contexts currently impossible to express, even with FlexibleContexts.

About

Monad classes for transformers in Curry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages