<p dir="ltr">> filter is only applicable to list, not "record syntax".</p>
<p dir="ltr">but [Person] is the input, isn't it?</p>
<p dir="ltr">> Do I need functor for this??</p>
<p dir="ltr">no need to define new functor instance to filter over a list of records.</p>
<p dir="ltr">but you could use fmap over list, yes</p>