aboutsummaryrefslogtreecommitdiffstats
path: root/src/Types.hs
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2022-09-24 15:59:16 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2022-12-05 14:21:53 +0200
commit70468c0217e70858bfa037ad81ce8caf1b582ec2 (patch)
treed2f4a948b59e5236f59d5c480d1bf2db07ae2b76 /src/Types.hs
parentaec05f8d92a608f0fb34fd2453a647b43dcb777d (diff)
Implement let
Diffstat (limited to 'src/Types.hs')
-rw-r--r--src/Types.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Types.hs b/src/Types.hs
index 9953882..515910b 100644
--- a/src/Types.hs
+++ b/src/Types.hs
@@ -16,6 +16,8 @@ data Config = Config {
type LContext a = ReaderT Config (ExceptT LException IO) a
+type Env = M.Map String AST
+
data AST
= ASTInteger Int
| ASTDouble Double
@@ -87,5 +89,3 @@ assertIsASTFunctionCall :: AST -> LContext AST
assertIsASTFunctionCall ast = case ast of
(ASTFunctionCall _) -> return ast
_ -> throwError $ LException $ show ast ++ " is not a function call or body"
-
-type Env = M.Map String AST