<div dir="ltr">Hi, <div><br></div><div>Could anyone please have a look and let me know how you can create the instance of this data type ?</div><div><br></div><div>---</div><div><font face="monospace, monospace"> data Person = Person { firstName ::String -> Int }</font><br></div><div>---</div><div><br></div><div>I've seen this type of syntax in a lot of places in haskell code where a new data type is defined in terms of functions rather than concrete data types.<br></div><div><br></div><div>I am not trying to achieve anything out of this but purely as an exercise in understanding the record syntax.</div><div><br></div><div>As far as I understand the data type is function based and takes a 'function' instead of a value of a concrete type so how does one create an instance of this type.</div><div><br></div><div>Thanks,</div><div><span style="font-family:georgia,serif;color:rgb(11,83,148)">Shishir </span></div></div>