Skip to content

Instantly share code, notes, and snippets.

@gilligan
Created April 26, 2018 10:19
Show Gist options
  • Save gilligan/6a513c08aa6e8aa9973bb3389e798559 to your computer and use it in GitHub Desktop.
Save gilligan/6a513c08aa6e8aa9973bb3389e798559 to your computer and use it in GitHub Desktop.
src/Nix/Reduce.hs:79:1: warning: [-Wunused-top-binds]
Defined but not used: ‘gatherNames’
|
79 | gatherNames = cata $ \case
| ^^^^^^^^^^^
[33 of 36] Compiling Nix.XML ( src/Nix/XML.hs, dist/build/Nix/XML.o )
[34 of 36] Compiling Nix.Builtins ( src/Nix/Builtins.hs, dist/build/Nix/Builtins.o )
src/Nix/Builtins.hs:120:50: error:
• Exception when trying to run compile-time code:
data/nix/corepkgs/derivation.nix: openFile: does not exist (No such file or directory)
Code: do let ...
addDependentFile f
Success expr <- runIO $ parseNixFile f
....
• In the untyped splice:
$(do let f = "data/nix/corepkgs/derivation.nix"
addDependentFile f
Success expr <- runIO $ parseNixFile f
[| cata Eval.eval expr |])
|
120 | , add0 TopLevel "derivation" $(do
| ^^^^...
[36 of 36] Compiling Paths_hnix ( dist/build/autogen/Paths_hnix.hs, dist/build/Paths_hnix.o )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment