Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
shachaf
12y ago
0 comments
Save
Share
The last part is backwards -- when F is a functor, the only law we need to check is the identity law, but checking the composition law isn't enough. For example,
fmap _ _ = []
satisfies fmap f . fmap g = fmap (f . g), but not fmap id = id.
0 comments
1 comments · 1 top-level
top
newest
oldest
tel
12y ago
Whoops, that's correct.
j
/
k
navigate · click thread line to collapse