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

After part 3 in this series, which might have been the longest post I’ve ever put on this blog, follows a much short post. In fact it’s so short it’s rather silly.

In this post I’ll modify the Option type to render into multiple lines; two in fact (it’s easy to see that it would work with more lines).

So, to start off, I add a second string to Option:

Next the definition for Pretty is changed to render an Option on two lines:

Due to the change to Option I also need to modify optionIsInRange:

Finally the options need to be modified as well:

That’s all there’s to it. Short and sweet.

⟸ Making a choice from a list in Haskell, Vty (part 3) Updating GHC on Arch ⟹
Leave a comment