Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
Scriptor
· 10y ago · 0 comments
I'm assuming Person is a record constructor, is isValid here a field in that record or another function?
Comments
[–]
prodigal_erik
10y 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.
Better HN