Restructure and begin displaying lambdas
This commit is contained in:
parent
fc0ede9499
commit
ed7179a846
6 changed files with 78 additions and 32 deletions
13
app/Main.hs
13
app/Main.hs
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue