Skip to content

Commit 47064a7

Browse files
committed
change unused var to _
1 parent 12aea0a commit 47064a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hs-src/Language/Egison/Types.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1186,6 +1186,7 @@ instance Show EgisonExpr where
11861186
show (ApplyExpr fn (TupleExpr [])) = "(" ++ show fn ++ ")"
11871187
show (ApplyExpr fn (TupleExpr args)) = "(" ++ show fn ++ " " ++ unwords (map show args) ++ ")"
11881188
show (ApplyExpr fn arg) = "(" ++ show fn ++ " " ++ show arg ++ ")"
1189+
show _ = "(not supported)"
11891190

11901191
instance Show EgisonValue where
11911192
show (Char c) = "c#" ++ [c]
@@ -1582,7 +1583,7 @@ extendEnv :: Env -> [Binding] -> Env
15821583
extendEnv (Env env idx) bdg = Env ((: env) $ HashMap.fromList bdg) idx
15831584

15841585
refVar :: Env -> Var -> Maybe ObjectRef
1585-
refVar (Env env idx) var = msum $ map (HashMap.lookup var) env
1586+
refVar (Env env _) var = msum $ map (HashMap.lookup var) env
15861587

15871588
--
15881589
-- Pattern Match

0 commit comments

Comments
 (0)