[Haskell-beginners] Parser using the show method

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Fri Jun 21 13:14:17 UTC 2019


> Use the same `Enum` trick Tobias Brandt described.

>     λ> :t sequence_ $ map print [FirstConstructor ..]

Yes, I just wanted to avoid typing all the list by hand. In order to avoid mistake when adding new constructors later.


More information about the Beginners mailing list