fakedata-haskell / fakedata

Haskell Library for producing quality fake data
BSD 3-Clause "New" or "Revised" License
149 stars 22 forks source link

Support fakers `unique` combinator #40

Open alexbiehl opened 3 years ago

alexbiehl commented 3 years ago

It would be great if there was a way to modify a Fake action to only return unique values. I imagine something along the lines of unique :: (Hashable a, Eq a) => FakeT m a -> FakeT m a.

psibi commented 3 years ago

I suppose something like that is possible. I'm not opposed to a PR implementing it. :-)