diff options
Diffstat (limited to 'hsm-repl/Test')
-rw-r--r-- | hsm-repl/Test/Repl.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hsm-repl/Test/Repl.hs b/hsm-repl/Test/Repl.hs index 8588718..7d1431c 100644 --- a/hsm-repl/Test/Repl.hs +++ b/hsm-repl/Test/Repl.hs @@ -1,7 +1,8 @@ import Control.Monad.Loops (whileJust_) +import Data.Function ((&)) import Effectful (runEff) -import Hsm.Log (Severity(Trace), runLog) +import Hsm.Log (Severity (Trace), runLog) import Hsm.Repl (repl, runRepl) main :: IO () -main = runEff . runLog @"repl" Trace . runRepl @"exec-repl λ " @'[ "Prelude"] @[Bool] $ whileJust_ repl return +main = whileJust_ repl return & runRepl @"exec-repl λ " @'["Prelude"] @[Bool] & runLog @"repl" Trace & runEff |