dhall-nix-lib/Any/hasAttr.dhall

11 lines
258 B
Text
Raw Normal View History

2022-08-31 13:18:49 +00:00
λ(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)