dhall-nix-lib/Any/hasAttr.dhall

10 lines
258 B
Text

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