@hackage jsonnet0.1.0.0
Jsonnet implementaton in pure Haskell
Categories
License
BSD-3-Clause
Maintainer
alexmorenocano@gmail.com
Links
Versions
Installation
Dependencies (22)
- aeson >=1.5.6 && <1.6
- ansi-wl-pprint >=0.6.9 && <0.7
- base >=4.14.1 && <4.15
- bytestring >=0.10.12 && <0.11
- containers >=0.6.2 && <0.7
- data-fix >=0.3.1 && <0.4 Show all…
Dependents (0)
haskell-jsonnet
A full-fledged Haskell implementation of the Jsonnet spec. For an introduction to the language itself, see the tutorial or language reference. We are using the same test suite used in the offical C++ and Go implementation (which is fairly comprehensive).
Build
Using the stack build tool:
git clone github.com/moleike/jsonnet-hs.git
cd jsonnet-hs
stack build
Progress
Here is the implementation status of the main language features:
- array and object comprehension
- array slices
- Python-style string formatting
- text blocks
- verbatim strings
- object-level locals
- object-level asserts
- keyword parameters
- default arguments
- top-level arguments
- external variables
- hidden fields (@CristhianMotoche)
- tailstrict annotation
OO features are implemented but need some more work:
selfkeywordsuperkeyword- outermost object reference
$ - object composition (merging objects)
- field composition (
+:field syntax)
Contributing
See CONTRIBUTING.md.
Acknowledgments
I took inspiration from Expresso, hnix, fixplate, and numerous other libraries. Thanks to their authors.
License
See LICENSE.
Copyright © 2020–present Alexandre Moreno