Find a file
Profpatsch 8b4c137a3b Shorthands.hs, mkDot/mkDots: automatically quote non-symbols
Nix can accept (nearly?) arbitrary values as attributes, if they are quoted in
strings. So generating “dots” should always result in valid nix attributes.
This uses the same regex as the nix lexer (as of 1.11).

Also add a few tests whether it correctly generates symbol/non-symbol
attributes.
2017-04-21 03:54:06 +02:00
benchmarks tests for comment parsing and parser benchmarks 2014-08-27 23:54:31 +02:00
data tests for comment parsing and parser benchmarks 2014-08-27 23:54:31 +02:00
doc Add the C++ parser as documentation 2014-07-04 01:55:27 -05:00
main parsing variadic functions, avoiding empty list error 2015-06-23 19:19:46 -05:00
Nix Shorthands.hs, mkDot/mkDots: automatically quote non-symbols 2017-04-21 03:54:06 +02:00
tests Shorthands.hs, mkDot/mkDots: automatically quote non-symbols 2017-04-21 03:54:06 +02:00
.gitignore make tests pass 2016-01-23 15:51:34 -06:00
default.nix default.nix: use default haskellPackages by default 2017-04-21 03:53:35 +02:00
hnix.cabal Shorthands.hs, mkDot/mkDots: automatically quote non-symbols 2017-04-21 03:54:06 +02:00
LICENSE Change LICENSE to BSD3 2016-12-18 17:10:06 -08:00
project.nix Shorthands.hs, mkDot/mkDots: automatically quote non-symbols 2017-04-21 03:54:06 +02:00
README.md Fix GitHub URL 2016-12-20 21:13:54 -08:00
Setup.hs
shell.nix Add Show1 instances for base 4.9 2016-09-21 10:32:17 +01:00

hnix

Haskell parser for Nix expression language.

Prerequisites

Nix is installed and in your $PATH. Tested with Nix v1.10.

Getting Started

$ git clone https://github.com/jwiegley/hnix.git
...
$ cd hnix
$ nix-shell
...
$ cabal test
...
$ cabal bench