Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Infrastructure shared by the various HardFork
tests
Synopsis
- data Era = Era {}
- data Eras ∷ [Type] → Type where
- chooseEras ∷ ∀ r. (∀ xs. (SListI xs, IsNonEmpty xs) ⇒ Eras xs → Gen r) → Gen r
- eraIndices ∷ Eras xs → NP (K Era) xs
- erasMapStateM ∷ ∀ m s a xs. Monad m ⇒ (Era → s → m (a, s)) → Eras xs → s → m (Exactly xs a)
- erasUnfoldAtMost ∷ ∀ m xs a. Monad m ⇒ (Era → Bound → m (a, EraEnd)) → Eras xs → Bound → m (NonEmpty xs a)
- genEraParams ∷ Gen EraParams
- genShape ∷ Eras xs → Gen (Shape xs)
- genStartOfNextEra ∷ EpochNo → EraParams → Gen (Maybe EpochNo)
- genSummary ∷ Eras xs → Gen (Summary xs)
Generate HardFork shape
chooseEras ∷ ∀ r. (∀ xs. (SListI xs, IsNonEmpty xs) ⇒ Eras xs → Gen r) → Gen r Source #
erasMapStateM ∷ ∀ m s a xs. Monad m ⇒ (Era → s → m (a, s)) → Eras xs → s → m (Exactly xs a) Source #
erasUnfoldAtMost ∷ ∀ m xs a. Monad m ⇒ (Era → Bound → m (a, EraEnd)) → Eras xs → Bound → m (NonEmpty xs a) Source #
Era-specified generators
genEraParams ∷ Gen EraParams Source #
Generate era parameters