aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Helper.hs
diff options
context:
space:
mode:
authorMarvin Borner2022-08-21 13:17:03 +0200
committerMarvin Borner2022-08-21 13:17:03 +0200
commit70c3c431f239f8db697c50f39ce4bd9cc5413c97 (patch)
tree5bfa8a95e21b99f4d6576e3c127be89e216e5312 /src/Helper.hs
parentb68307db49807c83860f4303a05d08f25dbf6375 (diff)
Added import caching
Diffstat (limited to 'src/Helper.hs')
-rw-r--r--src/Helper.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Helper.hs b/src/Helper.hs
index d7064c1..00b4ce5 100644
--- a/src/Helper.hs
+++ b/src/Helper.hs
@@ -10,6 +10,7 @@ import qualified Data.BitString as Bit
import qualified Data.ByteString as Byte
import qualified Data.ByteString.Char8 as C
import Data.List
+import qualified Data.Map as M
import Text.Megaparsec
data Context = Context
@@ -125,9 +126,11 @@ data EvalConf = EvalConf
, evalTests :: Bool
, nicePath :: String
, evalPaths :: [String]
- , tested :: [String]
}
data Environment = Environment [(EnvDef, Environment)]
+data EnvCache = EnvCache
+ { _imported :: M.Map String Environment
+ }
type Program = S.State Environment
instance Semigroup Environment where