Skip to content

Instantly share code, notes, and snippets.

@techtangents
Created December 21, 2012 11:21
Show Gist options
  • Save techtangents/4352231 to your computer and use it in GitHub Desktop.
Save techtangents/4352231 to your computer and use it in GitHub Desktop.
Fundiptive
infixl 4 -*-, -$-
class Fundipitive f where
(-*-) :: f (a -> b) -> f a -> f b
(-$-) :: (a -> b) -> f a -> f b
liftFd2 ::
Fundipitive f =>
(a -> b -> r)
-> f a
-> f b
-> f r
liftFd2 f fa fb =
f -$- fa -*- fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment