dhall-nix-lib/Function/composeManyExtensions.dhall

25 lines
773 B
Text
Raw Normal View History

2022-09-09 07:23:27 +00:00
λ(nix : ../NixPrelude.dhall) →
let Any = ../Any/Type.dhall
let Set = ../Set/Type.dhall
let composeExtensions = ./composeExtensions.dhall nix
let Set/toSet = ../Set/toSet.dhall nix
let Map =
2022-09-14 14:51:57 +00:00
https://raw.githubusercontent.com/dhall-lang/dhall-lang/v22.0.0/Prelude/Map/Type.dhall
2022-09-09 07:23:27 +00:00
sha256:210c7a9eba71efbb0f7a66b3dcf8b9d3976ffc2bc0e907aadfb6aa29c333e8ed
let composeManyExtensions
: List (Set → Set → Set) → Set → Set → Set
= λ(list : List (Set → Set → Set)) →
List/fold
(Set → Set → Set)
list
(Set → Set → Set)
composeExtensions
(λ(final : Set) → λ(prev : Set) → Set/toSet Any ([] : Map Text Any))
in composeManyExtensions