I have a simple type definition:
data Cell = Cell {
x :: Int,
y :: Int
} deriving (Show)
I can't use Cell
as an input to a quickcheck property, presumably because quickcheck doesn't know how to generate Cell values.
My understanding is that I need to make Cell an instance of the Arbitrary
typeclass.
How do I do that, for example, if I'd like Cell to be generated with random positive values for x and y?