Skip to content

support for constraints in handler definition#1

Open
dorchard wants to merge 6 commits intoslindley:masterfrom
dorchard:master
Open

support for constraints in handler definition#1
dorchard wants to merge 6 commits intoslindley:masterfrom
dorchard:master

Conversation

@dorchard
Copy link

@dorchard dorchard commented Apr 3, 2014

Hi Sam,
I was getting to grips with the library and needed to put a constraint in the handler for the normal Writer monad, but this wasn't supported. So I added it. The Writer.hs example shows its use.

The 'makeHandlerDef' function makes used of this. I didn't need to do anything with 'makeOpDefs' to make my example work, but maybe for other examples there will need to be some handling by 'makeOpDefs'? I couldn't tell.

Cheers,
Dominic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant