Making a choice from a list in Haskell, Vty (part 2)

Following on the previous part is another baby step. This just changes the options from a list of strings to a list of objects (the only requirement that they implement Pretty):

After this it’s an easy step to replace the list of strings with a list of Option:

That’s it! Yes, yet another ridiculously short post, but I promise the next one will be considerably longer.

⟸ Making a choice from a list in Haskell, Vty (part 1) XML prettifier in Haskell ⟹
Leave a comment