dhall-nix-lib/Path/importJSON.dhall

12 lines
247 B
Text

λ(nix : ../NixPrelude.dhall) →
let Any = ../Any/Type.dhall
let Path = ./Type.dhall
let readFile = ./readFile.dhall nix
let importJSON
: Path → Any
= λ(p : Path) → nix.builtins.fromJSON (readFile p)
in importJSON