effect-monad-0.6: Embeds effect systems into Haskell using parameteric effect monads
Control.Effect.CounterNat
Synopsis
data Counter n a Source
Provides a way to count in the type-level with a monadic interface to sum up the individual counts of subcomputations. Instead of using our own inductive natural number typ, this uses the Nat kind from TypeLits
count
Nat
TypeLits
The counter has no semantic meaning
Constructors
Fields
Instances
tick :: a -> Counter 1 a Source
A tick provides a way to increment the counter
tick