2022-03-15 20:01:28 +03:00
|
|
|
{-# LANGUAGE ApplicativeDo #-}
|
2022-03-25 02:52:30 +03:00
|
|
|
|
2022-03-15 20:01:28 +03:00
|
|
|
module Commands.MiniHaskell where
|
|
|
|
|
|
|
|
import Commands.Extra
|
|
|
|
import MiniJuvix.Prelude hiding (Doc)
|
2022-03-25 02:52:30 +03:00
|
|
|
import Options.Applicative
|
2022-03-15 20:01:28 +03:00
|
|
|
|
2022-03-17 20:18:10 +03:00
|
|
|
newtype MiniHaskellOptions = MiniHaskellOptions
|
2022-03-15 20:01:28 +03:00
|
|
|
{ _mhaskellInputFile :: FilePath
|
|
|
|
}
|
|
|
|
|
|
|
|
parseMiniHaskell :: Parser MiniHaskellOptions
|
|
|
|
parseMiniHaskell = do
|
|
|
|
_mhaskellInputFile <- parseInputFile
|
|
|
|
pure MiniHaskellOptions {..}
|