I have a datatype that looks like this:
data PageLogCommand = LogPage Page
| Stop (MVar ())
And I want to create a generator of type Gen PageLogCommand
.
For the Stop
command though, making a new empty MVar has type IO (MVar a)
, so how can I get the MVar
out of the IO
monad and use it to make a Gen
type?