Last active
December 14, 2015 02:39
-
-
Save WillNess/5015797 to your computer and use it in GitHub Desktop.
fmap . fmap :: (c->d) -> foo(bar c) -> foo(bar d) http://stackoverflow.com/questions/15029843/how-can-i-understand/15030970#15030970
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fmap :: (a->b) -> foo a -> foo b (a->b) -> (p->a) -> (p->b) | |
fmap :: (c->d) -> bar c -> bar d (c->d) -> (q->c) -> (q->d) | |
(.) :: (t->u) -> (s->t) -> (s->u) | |
(.) fmap :: -- t ~ (a->b) ; u ~ (foo a->foo b) | |
(s->a->b) -> (s->foo a->foo b) (s->a->b) -> (s->(p->a)->(p->b)) | |
(.) fmap fmap :: s ~ (c->d) ; a ~ (bar c) b ~ (bar d) | |
( (c->d) -> foo(bar c) -> foo(bar d) ) | |
LET foo :: ((->) p) ; bar :: ((->) q) THEN | |
(fmap . fmap) :: (c->d) -> (p->q->c) -> (p->q->d) | |
(fmap . fmap) f g p q = f (g p q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment