Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
pp:2024:l11 [2024/05/20 13:08] mihai.udubasa [11.4. Probability Distributions (M3 flashbacks)] fix missing constructor calls in coin and unfair coin definitions |
pp:2024:l11 [2025/05/09 20:59] (current) ldaniel fix typo at fmap definition |
||
|---|---|---|---|
| Line 66: | Line 66: | ||
| <code haskell> | <code haskell> | ||
| instance Functor Foo where | instance Functor Foo where | ||
| - | fmap f fx = px >>= (\x -> return (f x)) | + | fmap f fx = fx >>= (\x -> return (f x)) |
| | | ||
| instance Applicative Foo where | instance Applicative Foo where | ||