[Nix-dev] Typing nix − funding campaign
Profpatsch
mail at profpatsch.de
Thu Jan 12 19:36:13 CET 2017
On 17-01-12 07:31pm, Théophane Hufschmitt wrote:
> I'd want to support exactly the same syntax as nix does. That would
> mean (depending of the position of the nix core-dev team about this)
> either that the nix syntax would be extended to support type
> annotations, either that those would be included in comments.
If you want to write a nix parser, you can take a look at
https://hackage.haskell.org/package/hnix
Also, Gabriel took a quick shot at one, but it’s unfinished:
https://github.com/Gabriel439/nixfmt
Hope it works for you, writing parsers is tricky. Especially the
string splicing in nixexprs.
--
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170112/6e4c3a09/attachment.sig>
More information about the nix-dev
mailing list