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

Language.Docker.Syntax

Synopsis

Documentation

newtype Tag Source #

Constructors

Tag 

Fields

Instances

Instances details
IsString Tag Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fromString :: String -> Tag #

Show Tag Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> Tag -> ShowS #

show :: Tag -> String #

showList :: [Tag] -> ShowS #

Eq Tag Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Tag -> Tag -> Bool #

(/=) :: Tag -> Tag -> Bool #

Ord Tag Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: Tag -> Tag -> Ordering #

(<) :: Tag -> Tag -> Bool #

(<=) :: Tag -> Tag -> Bool #

(>) :: Tag -> Tag -> Bool #

(>=) :: Tag -> Tag -> Bool #

max :: Tag -> Tag -> Tag #

min :: Tag -> Tag -> Tag #

type Dockerfile = [InstructionPos Text] Source #

Type of the Dockerfile AST

data Instruction args Source #

All commands available in Dockerfiles

Instances

Instances details
Functor Instruction Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fmap :: (a -> b) -> Instruction a -> Instruction b #

(<$) :: a -> Instruction b -> Instruction a #

Show args => Show (Instruction args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> Instruction args -> ShowS #

show :: Instruction args -> String #

showList :: [Instruction args] -> ShowS #

Eq args => Eq (Instruction args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Instruction args -> Instruction args -> Bool #

(/=) :: Instruction args -> Instruction args -> Bool #

Ord args => Ord (Instruction args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: Instruction args -> Instruction args -> Ordering #

(<) :: Instruction args -> Instruction args -> Bool #

(<=) :: Instruction args -> Instruction args -> Bool #

(>) :: Instruction args -> Instruction args -> Bool #

(>=) :: Instruction args -> Instruction args -> Bool #

max :: Instruction args -> Instruction args -> Instruction args #

min :: Instruction args -> Instruction args -> Instruction args #

data InstructionPos args Source #

Instruction with additional location information required for creating good check messages

Instances

Instances details
Functor InstructionPos Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fmap :: (a -> b) -> InstructionPos a -> InstructionPos b #

(<$) :: a -> InstructionPos b -> InstructionPos a #

Show args => Show (InstructionPos args) Source # 
Instance details

Defined in Language.Docker.Syntax

Eq args => Eq (InstructionPos args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: InstructionPos args -> InstructionPos args -> Bool #

(/=) :: InstructionPos args -> InstructionPos args -> Bool #

Ord args => Ord (InstructionPos args) Source # 
Instance details

Defined in Language.Docker.Syntax

data BaseImage Source #

Constructors

BaseImage 

Fields

data Chown Source #

Constructors

Chown !Text 
NoChown 

Instances

Instances details
IsString Chown Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fromString :: String -> Chown #

Show Chown Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> Chown -> ShowS #

show :: Chown -> String #

showList :: [Chown] -> ShowS #

Eq Chown Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Chown -> Chown -> Bool #

(/=) :: Chown -> Chown -> Bool #

Ord Chown Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: Chown -> Chown -> Ordering #

(<) :: Chown -> Chown -> Bool #

(<=) :: Chown -> Chown -> Bool #

(>) :: Chown -> Chown -> Bool #

(>=) :: Chown -> Chown -> Bool #

max :: Chown -> Chown -> Chown #

min :: Chown -> Chown -> Chown #

data CopyArgs Source #

Instances

Instances details
Show CopyArgs Source # 
Instance details

Defined in Language.Docker.Syntax

Eq CopyArgs Source # 
Instance details

Defined in Language.Docker.Syntax

Ord CopyArgs Source # 
Instance details

Defined in Language.Docker.Syntax

data AddArgs Source #

Instances

Instances details
Show AddArgs Source # 
Instance details

Defined in Language.Docker.Syntax

Eq AddArgs Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: AddArgs -> AddArgs -> Bool #

(/=) :: AddArgs -> AddArgs -> Bool #

Ord AddArgs Source # 
Instance details

Defined in Language.Docker.Syntax

data Check args Source #

Constructors

Check !(CheckArgs args) 
NoCheck 

Instances

Instances details
Functor Check Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fmap :: (a -> b) -> Check a -> Check b #

(<$) :: a -> Check b -> Check a #

Show args => Show (Check args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> Check args -> ShowS #

show :: Check args -> String #

showList :: [Check args] -> ShowS #

Eq args => Eq (Check args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Check args -> Check args -> Bool #

(/=) :: Check args -> Check args -> Bool #

Ord args => Ord (Check args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: Check args -> Check args -> Ordering #

(<) :: Check args -> Check args -> Bool #

(<=) :: Check args -> Check args -> Bool #

(>) :: Check args -> Check args -> Bool #

(>=) :: Check args -> Check args -> Bool #

max :: Check args -> Check args -> Check args #

min :: Check args -> Check args -> Check args #

data CheckArgs args Source #

Instances

Instances details
Functor CheckArgs Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fmap :: (a -> b) -> CheckArgs a -> CheckArgs b #

(<$) :: a -> CheckArgs b -> CheckArgs a #

Show args => Show (CheckArgs args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> CheckArgs args -> ShowS #

show :: CheckArgs args -> String #

showList :: [CheckArgs args] -> ShowS #

Eq args => Eq (CheckArgs args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: CheckArgs args -> CheckArgs args -> Bool #

(/=) :: CheckArgs args -> CheckArgs args -> Bool #

Ord args => Ord (CheckArgs args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: CheckArgs args -> CheckArgs args -> Ordering #

(<) :: CheckArgs args -> CheckArgs args -> Bool #

(<=) :: CheckArgs args -> CheckArgs args -> Bool #

(>) :: CheckArgs args -> CheckArgs args -> Bool #

(>=) :: CheckArgs args -> CheckArgs args -> Bool #

max :: CheckArgs args -> CheckArgs args -> CheckArgs args #

min :: CheckArgs args -> CheckArgs args -> CheckArgs args #

data Image Source #

Constructors

Image 

Instances

Instances details
IsString Image Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fromString :: String -> Image #

Show Image Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> Image -> ShowS #

show :: Image -> String #

showList :: [Image] -> ShowS #

Eq Image Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Image -> Image -> Bool #

(/=) :: Image -> Image -> Bool #

Ord Image Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: Image -> Image -> Ordering #

(<) :: Image -> Image -> Bool #

(<=) :: Image -> Image -> Bool #

(>) :: Image -> Image -> Bool #

(>=) :: Image -> Image -> Bool #

max :: Image -> Image -> Image #

min :: Image -> Image -> Image #

newtype Registry Source #

Constructors

Registry 

Fields

Instances

Instances details
IsString Registry Source # 
Instance details

Defined in Language.Docker.Syntax

Show Registry Source # 
Instance details

Defined in Language.Docker.Syntax

Eq Registry Source # 
Instance details

Defined in Language.Docker.Syntax

Ord Registry Source # 
Instance details

Defined in Language.Docker.Syntax

newtype Digest Source #

Constructors

Digest 

Fields

Instances

Instances details
IsString Digest Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fromString :: String -> Digest #

Show Digest Source # 
Instance details

Defined in Language.Docker.Syntax

Eq Digest Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Digest -> Digest -> Bool #

(/=) :: Digest -> Digest -> Bool #

Ord Digest Source # 
Instance details

Defined in Language.Docker.Syntax

newtype Ports Source #

Constructors

Ports 

Fields

Instances

Instances details
IsList Ports Source # 
Instance details

Defined in Language.Docker.Syntax

Associated Types

type Item Ports #

Show Ports Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> Ports -> ShowS #

show :: Ports -> String #

showList :: [Ports] -> ShowS #

Eq Ports Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Ports -> Ports -> Bool #

(/=) :: Ports -> Ports -> Bool #

Ord Ports Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: Ports -> Ports -> Ordering #

(<) :: Ports -> Ports -> Bool #

(<=) :: Ports -> Ports -> Bool #

(>) :: Ports -> Ports -> Bool #

(>=) :: Ports -> Ports -> Bool #

max :: Ports -> Ports -> Ports #

min :: Ports -> Ports -> Ports #

type Item Ports Source # 
Instance details

Defined in Language.Docker.Syntax

data Arguments args Source #

Constructors

ArgumentsText args 
ArgumentsList args 

Instances

Instances details
Functor Arguments Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fmap :: (a -> b) -> Arguments a -> Arguments b #

(<$) :: a -> Arguments b -> Arguments a #

IsString (Arguments Text) Source # 
Instance details

Defined in Language.Docker.Syntax

IsList (Arguments Text) Source # 
Instance details

Defined in Language.Docker.Syntax

Associated Types

type Item (Arguments Text) #

Show args => Show (Arguments args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> Arguments args -> ShowS #

show :: Arguments args -> String #

showList :: [Arguments args] -> ShowS #

Eq args => Eq (Arguments args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Arguments args -> Arguments args -> Bool #

(/=) :: Arguments args -> Arguments args -> Bool #

Ord args => Ord (Arguments args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: Arguments args -> Arguments args -> Ordering #

(<) :: Arguments args -> Arguments args -> Bool #

(<=) :: Arguments args -> Arguments args -> Bool #

(>) :: Arguments args -> Arguments args -> Bool #

(>=) :: Arguments args -> Arguments args -> Bool #

max :: Arguments args -> Arguments args -> Arguments args #

min :: Arguments args -> Arguments args -> Arguments args #

type Item (Arguments Text) Source # 
Instance details

Defined in Language.Docker.Syntax

type Pairs = [(Text, Text)] Source #

data PortSpec Source #

Instances

Instances details
Show PortSpec Source # 
Instance details

Defined in Language.Docker.Syntax

Eq PortSpec Source # 
Instance details

Defined in Language.Docker.Syntax

Ord PortSpec Source # 
Instance details

Defined in Language.Docker.Syntax

data Checksum Source #

Constructors

Checksum !Text 
NoChecksum 

Instances

Instances details
IsString Checksum Source # 
Instance details

Defined in Language.Docker.Syntax

Show Checksum Source # 
Instance details

Defined in Language.Docker.Syntax

Eq Checksum Source # 
Instance details

Defined in Language.Docker.Syntax

Ord Checksum Source # 
Instance details

Defined in Language.Docker.Syntax

data Chmod Source #

Constructors

Chmod !Text 
NoChmod 

Instances

Instances details
IsString Chmod Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fromString :: String -> Chmod #

Show Chmod Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> Chmod -> ShowS #

show :: Chmod -> String #

showList :: [Chmod] -> ShowS #

Eq Chmod Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Chmod -> Chmod -> Bool #

(/=) :: Chmod -> Chmod -> Bool #

Ord Chmod Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: Chmod -> Chmod -> Ordering #

(<) :: Chmod -> Chmod -> Bool #

(<=) :: Chmod -> Chmod -> Bool #

(>) :: Chmod -> Chmod -> Bool #

(>=) :: Chmod -> Chmod -> Bool #

max :: Chmod -> Chmod -> Chmod #

min :: Chmod -> Chmod -> Chmod #

data Link Source #

Constructors

Link 
NoLink 

Instances

newtype Retries Source #

Constructors

Retries 

Fields

Instances

Instances details
Num Retries Source # 
Instance details

Defined in Language.Docker.Syntax

Show Retries Source # 
Instance details

Defined in Language.Docker.Syntax

Eq Retries Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: Retries -> Retries -> Bool #

(/=) :: Retries -> Retries -> Bool #

Ord Retries Source # 
Instance details

Defined in Language.Docker.Syntax

data CopyFlags Source #

Constructors

CopyFlags 

Instances

Instances details
Show CopyFlags Source # 
Instance details

Defined in Language.Docker.Syntax

Default CopyFlags Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

def :: CopyFlags #

Eq CopyFlags Source # 
Instance details

Defined in Language.Docker.Syntax

Ord CopyFlags Source # 
Instance details

Defined in Language.Docker.Syntax

data AddFlags Source #

Constructors

AddFlags 

Instances

Instances details
Show AddFlags Source # 
Instance details

Defined in Language.Docker.Syntax

Default AddFlags Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

def :: AddFlags #

Eq AddFlags Source # 
Instance details

Defined in Language.Docker.Syntax

Ord AddFlags Source # 
Instance details

Defined in Language.Docker.Syntax

data BindOpts Source #

Constructors

BindOpts 

Instances

Instances details
Show BindOpts Source # 
Instance details

Defined in Language.Docker.Syntax

Default BindOpts Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

def :: BindOpts #

Eq BindOpts Source # 
Instance details

Defined in Language.Docker.Syntax

Ord BindOpts Source # 
Instance details

Defined in Language.Docker.Syntax

newtype TmpOpts Source #

Constructors

TmpOpts 

Fields

Instances

Instances details
Show TmpOpts Source # 
Instance details

Defined in Language.Docker.Syntax

Default TmpOpts Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

def :: TmpOpts #

Eq TmpOpts Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: TmpOpts -> TmpOpts -> Bool #

(/=) :: TmpOpts -> TmpOpts -> Bool #

Ord TmpOpts Source # 
Instance details

Defined in Language.Docker.Syntax

data RunFlags Source #

Constructors

RunFlags 

Instances

Instances details
Show RunFlags Source # 
Instance details

Defined in Language.Docker.Syntax

Default RunFlags Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

def :: RunFlags #

Eq RunFlags Source # 
Instance details

Defined in Language.Docker.Syntax

Ord RunFlags Source # 
Instance details

Defined in Language.Docker.Syntax

data RunArgs args Source #

Constructors

RunArgs (Arguments args) RunFlags 

Instances

Instances details
Functor RunArgs Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

fmap :: (a -> b) -> RunArgs a -> RunArgs b #

(<$) :: a -> RunArgs b -> RunArgs a #

IsString (RunArgs Text) Source # 
Instance details

Defined in Language.Docker.Syntax

Show args => Show (RunArgs args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

showsPrec :: Int -> RunArgs args -> ShowS #

show :: RunArgs args -> String #

showList :: [RunArgs args] -> ShowS #

Eq args => Eq (RunArgs args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

(==) :: RunArgs args -> RunArgs args -> Bool #

(/=) :: RunArgs args -> RunArgs args -> Bool #

Ord args => Ord (RunArgs args) Source # 
Instance details

Defined in Language.Docker.Syntax

Methods

compare :: RunArgs args -> RunArgs args -> Ordering #

(<) :: RunArgs args -> RunArgs args -> Bool #

(<=) :: RunArgs args -> RunArgs args -> Bool #

(>) :: RunArgs args -> RunArgs args -> Bool #

(>=) :: RunArgs args -> RunArgs args -> Bool #

max :: RunArgs args -> RunArgs args -> RunArgs args #

min :: RunArgs args -> RunArgs args -> RunArgs args #

data Port Source #

A port can either be a number (plus a protocol, tcp by default) or a variable.

Constructors

Port !Int !Protocol 
PortStr !Text 

Instances

Instances details
Show Port Source # 
Instance details

Defined in Language.Docker.Syntax.Port

Methods

showsPrec :: Int -> Port -> ShowS #

show :: Port -> String #

showList :: [Port] -> ShowS #

Eq Port Source # 
Instance details

Defined in Language.Docker.Syntax.Port

Methods

(==) :: Port -> Port -> Bool #

(/=) :: Port -> Port -> Bool #

Ord Port Source # 
Instance details

Defined in Language.Docker.Syntax.Port

Methods

compare :: Port -> Port -> Ordering #

(<) :: Port -> Port -> Bool #

(<=) :: Port -> Port -> Bool #

(>) :: Port -> Port -> Bool #

(>=) :: Port -> Port -> Bool #

max :: Port -> Port -> Port #

min :: Port -> Port -> Port #

Pretty Port Source # 
Instance details

Defined in Language.Docker.Syntax.Port

Methods

pretty :: Port -> Doc ann #

prettyList :: [Port] -> Doc ann #

data PortRange Source #

A port range starts and ends with either a number or a variable and can have a protocol associated (tcp by default). The protocol of the start and end port shall be ignored.

Constructors

PortRange !Port !Port 

data Protocol Source #

Constructors

TCP 
UDP 

Instances

Instances details
Show Protocol Source # 
Instance details

Defined in Language.Docker.Syntax.Protocol

Eq Protocol Source # 
Instance details

Defined in Language.Docker.Syntax.Protocol

Ord Protocol Source # 
Instance details

Defined in Language.Docker.Syntax.Protocol

Pretty Protocol Source # 
Instance details

Defined in Language.Docker.Syntax.Protocol

Methods

pretty :: Protocol -> Doc ann #

prettyList :: [Protocol] -> Doc ann #