Closed NathanReb closed 5 years ago
Actually, regarding Const
, I'm using it for the shuffle
generator so we should definitely keep it.
Exposing a const : 'a -> 'a gen
could prove useful as well though!
Thanks! I've removed Const
and mode
on master. (constant generators are available and useful, but internally they're a special case of map
)
I took the liberty to upgrade from jbuilder to dune and from opam 1.2 to 2.0.
I also added some missing test dependencies and fixed a bunch of warnings 27.
There are some remaining warnings:
Suggests that
Const _
from thegen
type is never used since the type is abstract and such a value is never built inCrowbar
itself. I'm not sure if that variant should be removed, if we should expose a way to build constant generators or simply locally ignore that warning.The type
mode
is indeed neither used nor exposed so I'm guessing it could be removed but wanted to hear your opinion before going ahead and remove it.