diff options
Diffstat (limited to 'app/Env.hs')
| -rw-r--r-- | app/Env.hs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,6 @@ module Env where -import Code (Interp(..), PrlgEnv) +import Code (Interp(..), InterpFn, PrlgEnv) import Control.Monad.Trans.State.Lazy (gets, modify) import qualified IR @@ -20,3 +20,6 @@ findAtom :: String -> Env.PrlgEnv Int findAtom = withStrTable . flip IR.strtablize type PrlgEnv a = Code.PrlgEnv a + +prlgError :: String -> InterpFn +prlgError = pure . pure . Left |
