-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate stateT to extlib? #258
Comments
In hindsight I agree it's worth switching to ext-lib's definition, if only to make things less confusing. My thought at the time was that ext-lib's |
I am indifferent to newtype vs definition, maybe I slightly prefer definition because it requires one less constructor to keep track of. But I do have strong preference for no duplication, if that seems reasonable I can fix on the next version (not sure when this will be) |
The motivation for the constructor was to aid in error messages. When writing monadic computations, having an extra lamba is something that is not very uncommon when changing code and getting a good error message is very useful. |
This makes sense, thanks for the clarification! Will keep ext-lib stateT and import it in InteractionTrees |
Sorry to bump an old issue, but I would agree that switching to the ext-lib monad definitions would make things easier. I would also advocate for readerT and writerT also getting consolidated. I lost at least an hour trying to figure out why I was getting errors trying to use |
The main challenge is to find the bandwidth to do it. I'll be happy to accept a PR. |
Why is
state
andstateT
defined both in ext-lib and Basics.vhttps://github.com/coq-community/coq-ext-lib/blob/master/theories/Data/Monads/StateMonad.v
https://github.com/DeepSpec/InteractionTrees/blob/master/theories/Basics/Basics.v
The text was updated successfully, but these errors were encountered: