diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2022-11-12 23:25:50 +0100 |
|---|---|---|
| committer | Mirek Kratochvil <exa.exa@gmail.com> | 2022-11-12 23:25:50 +0100 |
| commit | 9d7868431792dcd94ec71adb9f95f55ab4bf027d (patch) | |
| tree | d5a9a371920edab2d7ddd00a6f87c8809dfb3221 /app/Env.hs | |
| parent | e248226f442f289f3b7399411cdfd127a0de4d1a (diff) | |
| download | prlg-9d7868431792dcd94ec71adb9f95f55ab4bf027d.tar.gz prlg-9d7868431792dcd94ec71adb9f95f55ab4bf027d.tar.bz2 | |
reorg 1
Diffstat (limited to 'app/Env.hs')
| -rw-r--r-- | app/Env.hs | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -1,21 +1,13 @@ module Env where -import qualified Code +import Code (Interp (..)) import Control.Monad.IO.Class import Control.Monad.Trans.State.Lazy import qualified IR import qualified Operators import System.Console.Haskeline -data PrlgState = - PrlgState - { defs :: Code.Defs - , ops :: Operators.Ops - , strtable :: IR.StrTable - } - deriving (Show) - -type PrlgEnv a = StateT PrlgState (InputT IO) a +type PrlgEnv a = StateT Code.Interp (InputT IO) a withStrTable :: (IR.StrTable -> (IR.StrTable, a)) -> PrlgEnv a withStrTable f = do |
