dhall-nix-lib/Any/select.dhall

10 lines
266 B
Text

λ(nix : ../NixPrelude.dhall) →
let Any = ./Type.dhall
let Set = ../Set/Type.dhall
let Any/toTypeUnchecked = ./toTypeUnchecked.dhall nix
in λ(e : Any) →
λ(attrpath : Text) →
nix.builtins.getAttr attrpath (Any/toTypeUnchecked Set e)