1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-21 05:41:49 +03:00
juvix/app/Commands/Compile/Options.hs

19 lines
520 B
Haskell
Raw Normal View History

module Commands.Compile.Options
( module Commands.Compile.Options,
module Commands.Extra.Compile.Options,
)
where
2022-09-14 17:16:15 +03:00
import Commands.Extra.Compile.Options
import CommonOptions
import Data.List.NonEmpty qualified as NonEmpty
supportedTargets :: NonEmpty CompileTarget
supportedTargets = NonEmpty.fromList allTargets
parseMainCompileOptions :: Parser CompileOptions
parseMainCompileOptions =
parseCompileOptions
supportedTargets
(parseInputFiles (NonEmpty.fromList [FileExtJuvix, FileExtJuvixMarkdown]))