Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-07-10 Thread John Wiegley
> Peter Simons writes: > At some point, however, I felt like Parsec became a bit of a burden, i.e. > adding features like full support for antiquotation ceased to be fun. :-) Interesting. I'll work on this next, so that I know whether the path I've chosen is viable or not. > Anyway, the co

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-07-08 Thread Peter Simons
Hi John, > Peter, did you it move [the repository] to someplace else? I have re-created the repository at . Originally, I attempted to parse Nix with Parsec, and I got quite far. The code in 'master' can parse almost all of "all-packages.nix" correctly. At s

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-06-30 Thread Steven Shaw
Thanks Vladimír and John for the infos. I've added them to my backlog :) ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-06-30 Thread John Wiegley
> Steven Shaw writes: > "modeled very simply as a > loeb function over memoized IO actions" > > John, that might be simple for you :). Would you say a few words to > demystify for the rest of us? Well, for me at least :$. So, after trying to implement this idea, I discovered that loeb is to

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-06-30 Thread Vladimír Čunát
On 06/30/2014 10:51 PM, Steven Shaw wrote: "modeled very simply as a loeb function over memoized IO actions" John, that might be simple for you :). Would you say a few words to demystify for the rest of us? Well, for me at least :$. I don't know these concepts, but I'd recommend reading sigfpe

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-06-30 Thread Steven Shaw
"modeled very simply as a loeb function over memoized IO actions" John, that might be simple for you :). Would you say a few words to demystify for the rest of us? Well, for me at least :$. Cheers, Steve. ___ nix-dev mailing list nix-dev@lists.science.u

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-06-30 Thread John Wiegley
> Marc Weber writes: > AFAIK Peter Simons has written a parser previously, too. Maybe search in the > mailinglist archives to join efforts Ah, very interesting! But his repository is not longer extant. Peter, did it move to someplace else? I would love to combine efforts and compare notes

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-06-29 Thread Benno Fünfstück
Hah, I also started to write a parser for nix expressions as an exercise! But now that there is already a parser, I'll probably just use yours. -- Benno 2014-06-29 16:37 GMT+02:00 Oliver Charles : > On 29/06/14 01:03, John Wiegley wrote: > > Since the Nix language is such a nice and simple pur

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-06-29 Thread Oliver Charles
On 29/06/14 01:03, John Wiegley wrote: > Since the Nix language is such a nice and simple pure functional language, I > thought it would be nice to have tooling support for it in Haskell, to aid > writing lint utilities, etc. > > As such, I've started a project call hnix which will implement a pars

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-06-29 Thread Raahul Kumar
Wow John you weren't kidding just a few hours ago. Good luck with the project, was hoping to see a Quickcheck tests directory. Aloha, RK. On Sun, Jun 29, 2014 at 10:03 AM, John Wiegley wrote: > Since the Nix language is such a nice and simple pure functional language, > I > thought it would

Re: [Nix-dev] Writing a Nix evaluator in Haskell

2014-06-28 Thread Marc Weber
> As such, I've started a project call hnix which will implement a parser and > evaluator for Nix in Haskell. I have the parser working for simple > expressions already (using either Parsec or Trifecta, it works with both). AFAIK Peter Simons has written a parser previously, too. Maybe search in t

[Nix-dev] Writing a Nix evaluator in Haskell

2014-06-28 Thread John Wiegley
Since the Nix language is such a nice and simple pure functional language, I thought it would be nice to have tooling support for it in Haskell, to aid writing lint utilities, etc. As such, I've started a project call hnix which will implement a parser and evaluator for Nix in Haskell. I have the