matsubara0507 / yaml-to-dhall

Roughly implement CLI tool to convert YAML to Dhall

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yaml-to-dhall

$ yaml-to-dhall example/example.yaml | dhall-format
{ apiVersion =
    "v1"
, kind =
    "Service"
, spec =
    { selector =
        { app = "MyApp" }
    , ports =
        [ { targetPort = 80.0, protocol = "TCP", port = 80.0 } ]
    }
, metadata =
    { name = "my-service" }
}

About

Roughly implement CLI tool to convert YAML to Dhall

License:MIT License


Languages

Language:Haskell 100.0%