-
Notifications
You must be signed in to change notification settings - Fork 107
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
Rename n
to g
in Command
#252
Conversation
As the first argument to `Command` is almost always an instance of `MonadGen`, `g` is a better mnemonic than `n`.
|
I see. nixpkgs is now providing resourcet-1.2, which makes cabal new-build want to download and build resourcet-1.1.11. I will remove the bound relaxation from this PR. Advice for how to proceed wrt nixpkgs? |
c9e79b6
to
1785a07
Compare
I just use cabal by itself while hacking on hedgehog (and most open source). If you want to proceed with nix, I suggest using |
You can still hoist for resource handling. test . hoist runResourceT $
do_something |
Thanks @HuwCampbell , I have pushed a version that relaxes the bound and uses |
@gwils On the other hand, if @HuwCampbell's solution works maybe that is the way. |
Yes, I agree, I think I'd prefer
💯 Yeah that would be amazing! I find it a bit difficult myself tbh. |
I confess I don't know much about I didn't know about Huw's |
1b76ae8
to
1785a07
Compare
I have split the resourcet stuff into #255 as it seems like more thinking is required there. I have also expanded the haddocks (particularly around At this point I want to move from "discussion" to "pushing for merge" on this PR, so please check the haddocks to see whether they make sense, etc. |
82b7aef
to
8004cd0
Compare
Very nice, happy with this 💯 Thanks for doing that, sorry about the delay |
This is more of a "discussion PR" than a request to merge unchanged.
As the first argument to
Command
is almost always an instance ofMonadGen
, I believeg
is a better mnemonic thann
. I can pursue this change so that allMonadGen
references areg
, or only the state-machine-test-related ones, or somewhere in between.I have also added to the haddock for
Command
. I found it hard to get my head around the way hedgehog's state machine testing support all fits together, and can create more documentation PRs if you like this sort of thing.