dhall-nix-lib/Path/importTOML.dhall

12 lines
247 B
Text

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