I'm generating a minesweeper board and want to generate the board based on where the first click (actually not a click, just a string written in the cmd representing a click) was done. This is a problem though, as I have to mix the Gen and IO monad. Is there a way to convert Gen a to IO a?
I found this function. Which would do exactly what i want. But it isn't available for import.