Skip to content

Commit

Permalink
add reader
Browse files Browse the repository at this point in the history
  • Loading branch information
janmasrovira committed Jul 1, 2024
1 parent 0666dab commit cc80b76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Formatter/Positive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Base
import Juvix.Formatter
import Scope.Positive qualified
import Scope.Positive qualified as Scope
import Juvix.Compiler.Concrete.Pretty.Options

runScopeEffIO :: (Member EmbedIO r) => Path Abs Dir -> Sem (ScopeEff ': r) a -> Sem r a
runScopeEffIO root = interpret $ \case
Expand All @@ -26,6 +27,7 @@ makeFormatTest' Scope.PosTest {..} =
. runError
. runOutputList @FormattedFileInfo
. runScopeEffIO tRoot
. runReader defaultOptions
. runFilesIO
$ format file'
case d of
Expand Down

0 comments on commit cc80b76

Please sign in to comment.