aggregateStep.dhall 599 B

12345678910111213141516171819202122
  1. let Types = ../types/package.dhall
  2. let Defaults = ../defaults/package.dhall
  3. let Prelude = ../lib/prelude.dhall
  4. let aggregateStep
  5. : List Types.Step → Types.Step
  6. = λ(aggregatedSteps : List Types.Step)
  7. → λ(Step : Type)
  8. → λ(constructors : Types.StepConstructors Step)
  9. → let stepTypeFix =
  10. Prelude.List.map
  11. Types.Step
  12. Step
  13. (λ(s : Types.Step) → s Step constructors)
  14. aggregatedSteps
  15. in constructors.aggregate stepTypeFix (Defaults.StepHooks Step)
  16. in aggregateStep