foldl-1.0.2: Composable, streaming, and efficient left folds

Safe HaskellSafe-Infered

Control.Foldl.Internal

Contents

Description

Strict data types for use as internal accumulators that don't space leak

Synopsis

Strict maybe

data Maybe' a

A strict Maybe

Constructors

Just' !a 
Nothing' 

lazy :: Maybe' a -> Maybe a

Convert Maybe' to Maybe

strict :: Maybe a -> Maybe' a

Convert Maybe to Maybe'

Strict Either

data Either' a b

A strict Either

Constructors

Left' !a 
Right' !b 

hush :: Either' a b -> Maybe b

Convert Either' to Maybe