language-docker

Dockerfile parser, pretty-printer and embedded DSL

https://github.com/hadolint/language-docker#readme

Version on this page:12.0.0
LTS Haskell 22.37:12.1.0
Stackage Nightly 2024-10-08: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-12.0.0@sha256:850e3ccf2b3014207d982f18b5c66e629865228f0ff14ad22ff9521eac8bbb6e,4032

Build Status Hackage GPL-3 licensed

haskell-language-docker

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