Restructure and begin displaying lambdas

This commit is contained in:
Joscha 2020-11-26 16:07:56 +01:00
parent fc0ede9499
commit ed7179a846
6 changed files with 78 additions and 32 deletions

View file

@ -1,6 +1,15 @@
module Main where
import Props
import Data.Void
import Props.Lambda.Term
yCombinator :: Term Void String String
yCombinator = Lambda "f"
(App
(Lambda "x" (App (Var 1) (App (Var 0) (Var 0))))
(Lambda "x" (App (Var 1) (App (Var 0) (Var 0))))
)
main :: IO ()
main = putStrLn helloWorld
main = print yCombinator