nick8325 / quickcheck

Automatic testing of Haskell programs.
Other
713 stars 119 forks source link

Missing Arbitrary Instance for NewlineMode #322

Closed dbramucci closed 5 months ago

dbramucci commented 3 years ago

I noticed that there are no Arbitrary or CoArbitrary instances for the Newline and NewlineMode types.

I encountered this missing instance while writing code for the ByteString package intended to test how hGetLine behaves on all platforms. The particular use-case is this property where I work around the issue by grabbing two Bools instead of an arbitrary NewlineMode.