From 6f80d2d579d0be8773829ee277086af087e85862 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Mon, 25 Aug 2025 02:35:34 +0000 Subject: Improves formatting of logs --- hsm-repl/Hsm/Repl.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hsm-repl') diff --git a/hsm-repl/Hsm/Repl.hs b/hsm-repl/Hsm/Repl.hs index dacc76a..46261d6 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), logMsg) +import Hsm.Log (Log, Severity(Attention, Info, Trace), logBlock, logMsg) import Language.Haskell.Interpreter (GhcError(errMsg), InterpreterError(WontCompile), as, interpret, runInterpreter, setImports) import System.Console.Haskeline (defaultSettings, getInputLine, handleInterrupt, withInterrupt) import System.Console.Haskeline.IO (InputState, cancelInput, initializeInput, queryInput) @@ -45,7 +45,7 @@ repl = query >>= maybe (return Nothing) parse logMsg Trace $ "Parsed value: " <> show value return $ Just value Left (WontCompile errors) -> do - forM_ errors $ logMsg Attention . errMsg + forM_ errors $ logBlock Attention . errMsg repl Left err -> do logMsg Attention $ show err -- cgit v1.2.1