From 52b698d9a274c814954c52aac2c813241397b107 Mon Sep 17 00:00:00 2001 From: joshvera Date: Wed, 23 Jan 2019 17:52:28 -0500 Subject: [PATCH] Implement eval for Alias so we don't eval the value twice --- src/Language/Python/Syntax.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Language/Python/Syntax.hs b/src/Language/Python/Syntax.hs index 61a77d4f0..dc2bf7afe 100644 --- a/src/Language/Python/Syntax.hs +++ b/src/Language/Python/Syntax.hs @@ -126,6 +126,8 @@ toTuple :: Alias a -> (a, a) toTuple Alias{..} = (aliasValue, aliasName) instance Evaluatable Alias where + eval eval _ Alias{..} = eval aliasValue + ref _ ref Alias{..} = ref aliasValue -- | Import declarations (symbols are added directly to the calling environment). --