mirror of
https://github.com/anoma/juvix.git
synced 2024-12-16 02:22:25 +03:00
491f7f7508
Updates ormolu to 0.5.3.0 and formats the project
16 lines
549 B
Haskell
16 lines
549 B
Haskell
module Commands.Dev.Highlight where
|
|
|
|
import Commands.Base
|
|
import Commands.Dev.Highlight.Options
|
|
import Juvix.Compiler.Concrete.Data.Highlight qualified as Highlight
|
|
|
|
runCommand :: (Members '[Embed IO, App] r) => HighlightOptions -> Sem r ()
|
|
runCommand HighlightOptions {..} = do
|
|
entry <- getEntryPoint _highlightInputFile
|
|
inputFile <- fromAppPathFile _highlightInputFile
|
|
hinput <-
|
|
Highlight.filterInput
|
|
inputFile
|
|
<$> liftIO (runPipelineHighlight entry upToInternalTyped)
|
|
sayRaw (Highlight.highlight _highlightBackend hinput)
|