Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
Scriptor
9y ago
0 comments
Share
I'm assuming Person is a record constructor, is isValid here a field in that record or another function?
undefined | Better HN
0 comments
default
newest
oldest
prodigal_erik
9y ago
Haskell doesn't distinguish the two. If you define Person with named fields including isValid, you automatically get a function named isValid that returns that field, or you can write your own isValid function that examines the whole Person.
j
/
k
navigate · click thread line to collapse