1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-13 19:49:20 +03:00
juvix/app/Commands/Repl/Options.hs

15 lines
296 B
Haskell
Raw Normal View History

module Commands.Repl.Options where
import CommonOptions
newtype ReplOptions = ReplOptions
{_replInputFile :: Maybe Path}
deriving stock (Data)
makeLenses ''ReplOptions
parseRepl :: Parser ReplOptions
parseRepl = do
_replInputFile <- optional parseInputJuvixFile
pure ReplOptions {..}