Skip to content

Instantly share code, notes, and snippets.

@Synthetica9
Created October 25, 2018 10:58
Show Gist options
  • Select an option

  • Save Synthetica9/533aa3fea35ccd79b7d4593385fa3a40 to your computer and use it in GitHub Desktop.

Select an option

Save Synthetica9/533aa3fea35ccd79b7d4593385fa3a40 to your computer and use it in GitHub Desktop.
Prelude Nix.Parser Nix.TH
λ> Success ex = parseNixTextLoc "{ inherit a; }"
Prelude Nix.Parser Nix.TH
λ> freeVars ex
fromList []
Prelude Nix.Parser Nix.TH
λ> Success ex = parseNixTextLoc "{ inherit a; c = b; }"
Prelude Nix.Parser Nix.TH
λ> freeVars ex
fromList ["b"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment