Dockerfile parser, pretty-printer and embedded DSL

Version on this page:9.1.1
LTS Haskell 16.19:9.1.1
Stackage Nightly 2020-10-20:9.1.2
Latest on Hackage:9.1.2

See all snapshots language-docker appears in

GPL-3.0-only licensed by Lukas Martinelli, Pedro Tacla Yamada, José Lorenzo Rodríguez
Maintained by

Module documentation for 9.1.1

This version can be pinned in stack with:language-docker-9.1.1@sha256:011b0661618af2f7d724ceda713baebc90f7367313dadbd878c02b9d60971959,2854

Build Status Hackage GPL-3 licensed


Dockerfile parser, pretty-printer and embedded DSL

Provides de ability to parse docker files, a pretty-printer and EDSL for writting Dockerfiles in Haskell.

Parsing files

import Language.Docker
main = do
    ef <- parseFile "./Dockerfile"
    print ef

Parsing strings

import Language.Docker
main = do
    c <- readFile "./Dockerfile"
    print (parseString c)

Create Dockerfiles

Use the dockerfile-creator package