[Haskell-beginners] data, records and functions

Emanuel Koczwara poczta at emanuelkoczwara.pl
Wed Feb 20 22:18:28 CET 2013


I'm watching Philip Wadler "Faith, Evolution, and Programming
Languages" (very cool by the way):

At 00:24:14 there is strange thing on the slide:

data Ord a = { less :: a -> a -> Bool }

It's first time I see function type (and where is definition?) in record
syntax. Can somebody explain this?


More information about the Beginners mailing list