Dockerfile parser, pretty-printer and embedded DSL

Version on this page:9.1.2
LTS Haskell 22.23:12.1.0
Stackage Nightly 2024-05-26:13.0.0
Latest on Hackage:13.0.0

See all snapshots language-docker appears in

GPL-3.0-only licensed by Lukas Martinelli, Pedro Tacla Yamada, José Lorenzo Rodríguez
Maintained by [email protected]
This version can be pinned in stack with:language-docker-9.1.2@sha256:91ece86e2610e1aaee725bb6e717e54ebd1b152ed23ed834f1802e898e9b342d,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