Closed photm5 closed 8 years ago
Looks good.
I think you've changed some files in similar ways in multiple PRs.
I think you've changed some files in similar ways in multiple PRs.
Yeah, I just did what came to my mind, committed on my way, and splitted those commits that were initially based on each other into multiple PRs, so there might be some problems with that. I plan to merge the PRs in the order I opened them.
I removed the commits that added hooks, as I think we’ll have to discuss the API design together in more depth beforehand. This makes the commit obsolete that moved the Monad types into the Types module, so I removed that one (Let me know whether you think it was a good thing and I should add it again.)
This PR moves the Monad types from
Monad.hs
toTypes.hs
in order to prevent dependency loops, and to have all the types in Types. The description inMonad.hs
is consequently changed to “Functions for the Ricochet Monad.”In addition, I added hooks, which allow us to subscribe functions to channels, contact approval stages, and some Eq instances.
EDIT: Most of this is incorrect by now, see below.