clean-up: Repl: initState: reduce do block

This commit is contained in:
Anton-Latukha 2020-09-18 16:51:23 +03:00
parent 10051fbfc1
commit 32cda24f58
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 1 additions and 3 deletions

View File

@ -167,9 +167,7 @@ initState mIni = do
evalText :: (MonadNix e t f m) => Text -> m (NValue t f m)
evalText expr = case parseNixTextLoc expr of
Failure e -> error $ "Impossible happened: Unable to parse expression - '" ++ Data.Text.unpack expr ++ "' error was " ++ show e
Success e -> do
value <- evalExprLoc e
pure value
Success e -> do evalExprLoc e
type Repl e t f m = HaskelineT (StateT (IState t f m) m)