language-docker: Dockerfile parser, pretty-printer and embedded DSL

[ development, gpl, library ] [ Propose Tags ] [ Report a vulnerability ]

All functions for parsing and pretty-printing Dockerfiles are exported through Language.Docker. For more fine-grained operations look for specific modules that implement a certain functionality. See the GitHub project for the source-code and examples.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.0, 2.0.0, 2.0.1, 3.0.0, 3.0.1, 4.0.0, 4.0.1, 5.0.0, 5.0.1, 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 7.0.0, 8.0.0, 8.0.1, 8.0.2, 8.1.0, 8.1.1, 9.0.0, 9.0.1, 9.1.0, 9.1.1, 9.1.2, 9.1.3, 9.2.0, 9.3.0, 10.0.0, 10.0.1, 10.0.2, 10.1.0, 10.1.1, 10.1.2, 10.2.0, 10.3.0, 10.4.0, 10.4.1, 10.4.2, 10.4.3, 11.0.0, 12.0.0, 12.1.0, 13.0.0, 14.0.0, 14.0.1
Dependencies base (>=4.8 && <5), bytestring (>=0.11.5 && <0.12), containers (>=0.6.7 && <0.7), data-default (>=0.8.0 && <0.9), data-default-class (>=0.2.0 && <0.3), megaparsec (>=9.7.0 && <9.8), prettyprinter (>=1.7.1 && <1.8), split (>=0.2.5 && <0.3), text (>=2.0.2 && <2.1), time (>=1.12.2 && <1.13) [details]
License GPL-3.0-or-later
Copyright Lukas Martinelli, Copyright (c) 2016, Pedro Tacla Yamada, Copyright (c) 2016, José Lorenzo Rodríguez, Copyright (c) 2017
Author Lukas Martinelli, Pedro Tacla Yamada, José Lorenzo Rodríguez
Maintainer lorenzo@seatgeek.com
Category Development
Home page https://github.com/hadolint/language-docker#readme
Bug tracker https://github.com/hadolint/language-docker/issues
Source repo head: git clone https://github.com/hadolint/language-docker
Uploaded by lorenzo at 2025-03-05T22:06:03Z
Distributions Fedora:11.0.0, LTSHaskell:13.0.0, NixOS:12.1.0, Stackage:14.0.1, openSUSE:11.0.0
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 24297 total (109 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-03-06 [all 1 reports]

Readme for language-docker-14.0.0

[back to package description]

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