diff options
Diffstat (limited to 'hsm-repl')
-rw-r--r-- | hsm-repl/Hsm/Repl.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hsm-repl/Hsm/Repl.hs b/hsm-repl/Hsm/Repl.hs index 45a2cf2..6bcf39d 100644 --- a/hsm-repl/Hsm/Repl.hs +++ b/hsm-repl/Hsm/Repl.hs @@ -13,7 +13,7 @@ import Effectful.Dispatch.Static (SideEffects(WithSideEffects), StaticRep, evalS import Effectful.Exception (bracket) import GHC.TypeLits (KnownSymbol, Symbol, symbolVal) import Generic.Data.Function.Common.Generic.Meta (KnownSymbols, symbolVals) -import Hsm.Log (Log, Severity(Attention, Info, Trace), logBlock, logMsg) +import Hsm.Log (Log, Severity(Attention, Info, Trace), logMsg) import Language.Haskell.Interpreter (GhcError(errMsg), InterpreterError(WontCompile), as, interpret, runInterpreter, setImports) import String.ANSI (blue) import System.Console.Haskeline (defaultSettings, getInputLine, handleInterrupt, withInterrupt) @@ -46,7 +46,7 @@ repl = query >>= maybe (return Nothing) parse logMsg Trace $ "Parsed value: " <> show value return $ Just value Left (WontCompile errors) -> do - forM_ errors $ logBlock Attention . errMsg + forM_ errors $ logMsg Attention . errMsg repl Left err -> do logMsg Attention $ show err |