Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
M  src/Nix/Expr/Shorthands.hs
M  tests/ParserTests.hs
  • Loading branch information
Anton-Latukha committed Jul 10, 2021
1 parent 65a56cd commit 980d7af
Show file tree
Hide file tree
Showing 2 changed files with 488 additions and 416 deletions.
5 changes: 0 additions & 5 deletions src/Nix/Expr/Shorthands.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,12 @@ mkParamset params variadic = ParamSet params variadic mempty
mkRecSet :: [Binding NExpr] -> NExpr
mkRecSet = mkSet Recursive

($#~#) = mkRecSet

-- | Put a non-recursive set.
--
-- > { .. }
mkNonRecSet :: [Binding NExpr] -> NExpr
mkNonRecSet = mkSet NonRecursive

($###) = mkNonRecSet


-- | General set builder function.
mkSet :: Recursivity -> [Binding NExpr] -> NExpr
mkSet r = Fix . NSet r
Expand Down
Loading

0 comments on commit 980d7af

Please sign in to comment.