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.
I noticed that there are no
Arbitrary
orCoArbitrary
instances for theNewline
andNewlineMode
types.I encountered this missing instance while writing code for the
ByteString
package intended to test howhGetLine
behaves on all platforms. The particular use-case is this property where I work around the issue by grabbing twoBool
s instead of an arbitraryNewlineMode
.