an Elm solution for the rosettacode.org task : Maze_generation .

The source is on github. Demo embedded below: