-
-
Save reactormonk/c4dd738b4f23281b6ab35b53c8661c91 to your computer and use it in GitHub Desktop.
This file contains 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
class Uncurry fun types r where | |
uncurryNP :: fun -> NP I types -> r | |
instance forall fun r t types. | |
( Uncurry fun types r | |
) => Uncurry (t -> fun) (t ': types) r where | |
uncurryNP f ((I a) :* as) = uncurryNP (f a) as | |
instance (s ~ r) => Uncurry s '[] r where | |
uncurryNP z Nil = z |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment