language-docker-13.0.0: Dockerfile parser, pretty-printer and embedded DSL
Safe HaskellNone
LanguageGHC2021

Language.Docker.Parser

Synopsis

Documentation

parseText :: Text -> Either Error Dockerfile Source #

parseFile :: FilePath -> IO (Either Error Dockerfile) Source #

parseStdin :: IO (Either Error Dockerfile) Source #

Reads the standard input until the end and parses the contents as a Dockerfile

type Parser = Parsec DockerfileError Text Source #

type Error = ParseErrorBundle Text DockerfileError Source #

data DockerfileError Source #

Constructors

DuplicateFlagError String 
NoValueFlagError String 
InvalidFlagError String 
FileListError String 
MissingArgument [Text] 
DuplicateArgument Text 
UnexpectedArgument Text Text 
QuoteError String String 

Instances

Instances details
Data DockerfileError Source # 
Instance details

Defined in Language.Docker.Parser.Prelude

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DockerfileError -> c DockerfileError

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DockerfileError

toConstr :: DockerfileError -> Constr

dataTypeOf :: DockerfileError -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DockerfileError)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DockerfileError)

gmapT :: (forall b. Data b => b -> b) -> DockerfileError -> DockerfileError

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DockerfileError -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DockerfileError -> r

gmapQ :: (forall d. Data d => d -> u) -> DockerfileError -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> DockerfileError -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DockerfileError -> m DockerfileError

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DockerfileError -> m DockerfileError

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DockerfileError -> m DockerfileError

Read DockerfileError Source # 
Instance details

Defined in Language.Docker.Parser.Prelude

Show DockerfileError Source # 
Instance details

Defined in Language.Docker.Parser.Prelude

Methods

showsPrec :: Int -> DockerfileError -> ShowS

show :: DockerfileError -> String

showList :: [DockerfileError] -> ShowS

Eq DockerfileError Source # 
Instance details

Defined in Language.Docker.Parser.Prelude

Ord DockerfileError Source # 
Instance details

Defined in Language.Docker.Parser.Prelude

ShowErrorComponent DockerfileError Source # 
Instance details

Defined in Language.Docker.Parser.Prelude