tryStep.dhall 375 B

123456789101112131415
  1. let Types = ../types/package.dhall
  2. let Defaults = ../defaults/package.dhall
  3. let tryStep
  4. : Types.Step → Types.Step
  5. = λ(step : Types.Step)
  6. → λ(Step : Type)
  7. → λ(constructors : Types.StepConstructors Step)
  8. → let stepTypeFix = step Step constructors
  9. in constructors.try stepTypeFix (Defaults.StepHooks Step)
  10. in tryStep