In addition, read may be used to map an arbitrary string (not necessarily one produced by show) onto a value of type StdGen. In general, the read instance of StdGen has the following properties:* It guarantees to succeed on any string.* ...
Hugs> :l System.RandomSystem.Random> read "whateva" :: StdGenProgram error: Prelude.read: no parseSystem.Random> map read $ words "this is a test of the System dot Random StdGen read, which seems to fail only on ... whateva" :: [StdGen][4580 1,440 1,101 1,4584 1,445 1,1485 1,35261 1,1377 1,32825 1,34047 1,13422 1,14037 1,13637 1,469 1,4132 1,4514 1,453 1,626 1,Program error: Prelude.read: no parse