[Nix-dev] Typing nix − funding campaign

Théophane Hufschmitt rg_nixos at regnat.ovh
Thu Jan 12 21:55:46 CET 2017


Thu 12 Jan 17 − 19:36, Profpatsch(mail at profpatsch.de) a écrit:
> 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.

I'd heard about hnix, but didn't know nixfmt. I'll keep them as
references for when I actually write the parser

-- 
Théophane Hufschmitt
-------------- 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/c8e61d1d/attachment.sig>


More information about the nix-dev mailing list