Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jul 19, 2024
1 parent 99e4256 commit 5e72d03
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions app/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,6 @@ runPipelineSetup p = silenceProgressLog $ do
r <- runIOEitherPipeline entry (inject p) >>= fromRightJuvixError
return (snd r)

-- say :: (Member App r) => Text -> Sem r ()
-- say = renderStdOut

newline :: (Member App r) => Sem r ()
newline = renderStdOut @Text ""

Expand Down
4 changes: 1 addition & 3 deletions src/Juvix/Compiler/Pipeline/Repl.hs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ compileReplInputIO fp txt = do
hasInternet <- not <$> asks (^. entryPointOffline)
runError
. runConcurrent
. runLoggerIO defaultLoggerOptions
. runReader defaultNumThreads
. evalInternet hasInternet
. runTaggedLockPermissive
Expand All @@ -187,8 +186,7 @@ compileReplInputIO fp txt = do
. runTopModuleNameChecker
. runReader defaultImportScanStrategy
. withImportTree (Just fp)
. silenceProgressLog
. runProgressLog defaultProgressLogOptions
. ignoreProgressLog
. evalModuleInfoCacheHelper
$ do
p <- parseReplInput fp txt
Expand Down
2 changes: 1 addition & 1 deletion src/Parallel/ProgressLog.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runProgressLog ProgressLogOptions {..} = interpret $ \case
let threadDoc :: Maybe (Doc CodeAnn) = do
guard _progressLogOptionsShowThreadId
return (kwBracketL <> show _logItemThreadId <> kwBracketR)
logProgress (mkAnsiText (threadDoc <?+> _logItemMessage <> hardline))
logProgress (mkAnsiText (threadDoc <?+> _logItemMessage))

ignoreProgressLog :: Sem (ProgressLog ': r) a -> Sem r a
ignoreProgressLog = interpret $ \case
Expand Down

0 comments on commit 5e72d03

Please sign in to comment.