[Haskell-beginners] small question

Stephen Tetley stephen.tetley at gmail.com
Tue Oct 19 10:20:46 EDT 2010


honesty is a field label, so effectively it creates a function

honesty :: Volunteer -> Bool

This should fix it:

if (honesty volunteer) then "drinkable" else "undrinkable"


More information about the Beginners mailing list