| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Nix.FindFile
Documentation
findFile :: FilePath -> IO (Maybe FilePath) Source #
Use nix-instantiate --find-file to resolve an abbreviated path into a
full absolute path using $NIX_PATH.
>>>findFile "nixpkgs/pkgs/development/haskell-modules/configuration-hackage2nix.yaml"Just "/home/foobar/.nix-defexpr/pkgs/development/haskell-modules/configuration-hackage2nix.yaml"
>>>findFile "nixpkgs/crazy/non-existent-path"Nothing