[Haskell-beginners] Pattern Matching for record syntax

Imants Cekusins imantc at gmail.com
Thu Jan 7 22:37:44 UTC 2016


> filter is only applicable to list, not "record syntax".

but [Person] is the input, isn't it?

> Do I need functor for this??

no need to define new functor instance to filter over a list of records.

but you could use fmap over list, yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160107/64d2d0fe/attachment-0001.html>


More information about the Beginners mailing list