summaryrefslogtreecommitdiff
path: root/stdlib.hs
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib.hs')
-rw-r--r--stdlib.hs16
1 files changed, 0 insertions, 16 deletions
diff --git a/stdlib.hs b/stdlib.hs
deleted file mode 100644
index 6f7334f..0000000
--- a/stdlib.hs
+++ /dev/null
@@ -1,16 +0,0 @@
-module Stdlib(stdlib) where
-
-import AST
-import Parser
-
-
-stdlib :: Program
-stdlib = fromRight $ parseProgram
- "(define not (x) (= x 0))\n\
- \(define id (x) x)\n\
- \(define nil (x) (= x '()))\n\
- \(define . (f g) (lambda (x) (f (g x))))\n"
-
-fromRight :: Show a => Either a b -> b
-fromRight (Right b) = b
-fromRight (Left a) = error $ "fromRight on Left: " ++ show a