translateInParallelStep.dhall 856 B

123456789101112131415161718192021222324252627
  1. let Types = ../types/package.dhall
  2. let translateInParallelStep
  3. : ∀(T : Type) →
  4. Types.StepConstructors T →
  5. Types.InParallelStep Types.Step →
  6. Types.InParallelStep T
  7. = λ(T : Type) →
  8. λ(constructors : Types.StepConstructors T) →
  9. λ(parallel : Types.InParallelStep Types.Step) →
  10. merge
  11. { Steps =
  12. λ(s : List Types.Step) →
  13. (Types.InParallelStep T).Steps
  14. (./translateSteps.dhall T constructors s)
  15. , Config =
  16. λ(cfg : Types.InParallelConfig Types.Step) →
  17. (Types.InParallelStep T).Config
  18. ( cfg
  19. ⫽ { steps = ./translateSteps.dhall T constructors cfg.steps
  20. }
  21. )
  22. }
  23. parallel
  24. in translateInParallelStep