language-docker

Dockerfile parser, pretty-printer and embedded DSL

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

Version on this page:10.0.2
LTS Haskell 19.25:10.4.3
Stackage Nightly 2022-09-27:11.0.0
Latest on Hackage:11.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 lorenzo@seatgeek.com
This version can be pinned in stack with:language-docker-10.0.2@sha256:e2e22a95b8f68df0d5f6a7a4752247f0c32300a279cbd29f3cc30b152d33a2ae,3347

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