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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 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.