HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleextensible-effects-5.0.0.1Haskell2010

Control.Eff.Example

Example usage of Control.Eff

  • 2 types
  • 10 values
newtypenewtype TooBig
#

The datatype for the example from the paper. See the tests for the example

Constructors

Instances2Eq, Show
  • Eq TooBigDefined in extensible-effects-5.0.0.1 · Control.Eff.Example
  • Show TooBigDefined in extensible-effects-5.0.0.1 · Control.Eff.Example
valuesumEff :: Num a => [a] -> a
#

Sum a list of numbers.

valuelastEff :: [a] -> Maybe a
#

Safely get the last element of a list. Nothing for empty lists; Just the last element otherwise.