Skip to content

Commit

Permalink
Fix test. Do not run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaprieto committed Nov 1, 2023
1 parent 6717eb4 commit b6c3f96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions app/Commands/Repl.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import Juvix.Compiler.Pipeline.Package.Loader.EvalEff.IO
import Juvix.Compiler.Pipeline.Repl
import Juvix.Compiler.Pipeline.Run
import Juvix.Compiler.Pipeline.Setup (entrySetup)
import Juvix.Data.CodeAnn (Ann)
import Juvix.Data.Effect.Git
import Juvix.Data.Effect.Process
import Juvix.Data.Error.GenericError qualified as Error
Expand Down Expand Up @@ -308,9 +309,9 @@ printDocumentation = replParseIdentifiers >=> printIdentifiers
printDoc :: Maybe (Concrete.Judoc 'Concrete.Scoped) -> Repl ()
printDoc = \case
Nothing -> do
s' <- ppConcrete s
renderOut (mkAnsiText @Text "No documentation available for ")
renderOutLn s'
let s' :: Doc Ann = pretty s
msg = "No documentation available for" <+> s'
renderOutLn (toAnsiText True msg)
Just ju -> printConcrete ju

getDocFunction :: Scoped.NameId -> Repl (Maybe (Concrete.Judoc 'Concrete.Scoped))
Expand Down
6 changes: 3 additions & 3 deletions tests/positive/LocalModWithAxiom.juvix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{-# format: false #-}
module LocalModWithAxiom;

module A;

axiom B : Type;

end;

0 comments on commit b6c3f96

Please sign in to comment.