Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
functor_._haskell [2014/09/15 19:24] nikolaj |
functor_._haskell [2015/04/07 11:54] nikolaj |
||
---|---|---|---|
Line 8: | Line 8: | ||
-- methods | -- methods | ||
(<$) :: a -> f b -> f a | (<$) :: a -> f b -> f a | ||
- | (<$) :: fmap . const | + | (<$) = fmap . const |
</code> | </code> | ||
Line 14: | Line 14: | ||
| fmap f . fmap g $\ \leftrightsquigarrow\ $ fmap (f . g) | | | fmap f . fmap g $\ \leftrightsquigarrow\ $ fmap (f . g) | | ||
- | ==== Discussion ==== | + | ----- |
+ | === Discussion === | ||
In Haskell, the first law implies the second. | In Haskell, the first law implies the second. | ||
+ | |||
+ | === Notes === | ||
+ | {{5815_89f1_500.png}} | ||
=== Reference === | === Reference === | ||
- | ==== Parents ==== | + | |
+ | ----- | ||
=== Related === | === Related === | ||
[[Haskell]], [[Functor]], [[Functor category]] | [[Haskell]], [[Functor]], [[Functor category]] |