summaryrefslogtreecommitdiff
path: root/src/Transfer/Interpreter.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Transfer/Interpreter.hs')
-rw-r--r--src/Transfer/Interpreter.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Transfer/Interpreter.hs b/src/Transfer/Interpreter.hs
index 44618b756..78b004c8d 100644
--- a/src/Transfer/Interpreter.hs
+++ b/src/Transfer/Interpreter.hs
@@ -16,6 +16,7 @@ data Value = VStr String
| VClos Env Exp
| VCons CIdent [Value]
| VPrim (Value -> Value)
+ | VMeta Integer
deriving (Show)
instance Show (a -> b) where
@@ -128,6 +129,7 @@ eval env x = case x of
EType -> VType
EStr str -> VStr str
EInt n -> VInt n
+ EMeta (TMeta t) -> VMeta (read $ drop 1 t)
firstMatch :: Value -> [Case] -> Maybe (Exp,[(CIdent,Value)])
firstMatch _ [] = Nothing