
27 Sep
2010
27 Sep
'10
1:12 a.m.
Quoth Alexander Solla
That's not so nice looking now, but consider what happens when you have four or five arguments:
type Label = String type Address = String
data Foo a b = Foo (Maybe Label) Address a | Bar Label b | Foobar Label Address a b
This is rather neat. Instead of focusing effort on parsing the source, we can merely compare lines for the differences in logic they embody.
Note that it depends on a mono-spaced font. Works as intended in my terminal emulator window, and anywhere you or I have gone to the trouble, but my initial look at it was in my email, which as usual is a proportional font, and nothing lines up after the first column. Donn