Commit graph

21 commits

Author SHA1 Message Date
John Wiegley 852aff04e7 Break apart MonadNix, to allow greater flexibility in evaluators 2018-03-31 14:53:38 -07:00
John Wiegley f0f88edac7 Add support for import statements 2018-03-27 22:21:17 -07:00
John Wiegley 3a29249e43 Normalize import statements, add option parsing 2018-03-27 21:59:27 -07:00
Allen Nelson cbee241685 remove mkDots test, no longer necessary 2018-02-28 10:59:53 -06:00
Allen Nelson 42c16d1cbd Simplify mkDots 2018-02-24 01:36:26 -06:00
Vaibhav Sagar 130186400c Nix/Expr/Types.hs: add Eq1 instances 2017-12-27 17:11:57 +08:00
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
John Wiegley 2c88bdb9e4 Merge pull request #42 from expipiplus1/ghc8
Add Show1 instances for base 4.9
2016-10-03 20:05:30 -07:00
Joe Hermaszewski f8fa161f5b Use fmapDefault and foldMapDefault 2016-09-21 10:33:18 +01:00
Joe Hermaszewski d3651984fb Add Show1 instances for base 4.9 2016-09-21 10:32:17 +01:00
Joe Hermaszewski a19a943f9b Derive foldable and traversable for more types 2016-06-29 00:10:09 +01:00
Joe Hermaszewski 295e26b208 Export Delta 2016-06-25 21:56:41 +01:00
Joe Hermaszewski b29218c029 Derive Typeable for Ann 2016-06-25 17:40:21 +01:00
Joe Hermaszewski e87bd3b67a Add instance for Show1 for Annotation and NExprF 2016-06-25 13:29:14 +01:00
Joe Hermaszewski 8c55ce604d Add F version to shorthands 2016-06-25 11:48:02 +01:00
Joe Hermaszewski ea388358ab Reorder things in Annotation.hs 2016-06-25 11:37:50 +01:00
Joe Hermaszewski c11aad7253 Implement Annotation support functions 2016-06-25 11:17:18 +01:00
Joe Hermaszewski 3271e0c4c7 Initial work towards annotating expression with their location 2016-06-23 23:54:04 +01:00
Allen Nelson b4eff58b8c mkDots function 2016-02-18 16:52:05 -06:00
Allen Nelson 0a628dafbb implement more shorthand functions 2016-01-28 18:09:38 -06:00
Allen Nelson 99b52fe48e separate expr into types and shorthands 2016-01-25 01:00:27 -06:00