Skip to content

NathanielB123/Combinator-Printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Combinator-Printer

Print out combinators!

For example, if we have:

foo :: forall a b. (a -> a) -> (a -> (a -> a) -> a) -> b -> b -> a
foo = \x y _ z -> y z (\w -> (x (x (y w (\_ -> x w)))))

We can do:

>>> printCombinator (foo @Tree @Tree)
\a b c d -> b d (\e -> a (a (b e (\f -> a e))))

See the Haddock documentation (generate with cabal haddock) or read the code!

About

Print out combinators!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published