Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Scriptor
9y ago
0 comments
Save
Share
I'm assuming Person is a record constructor, is isValid here a field in that record or another function?
0 comments
1 comments · 1 top-level
top
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