total-maps-1.0.0.2: Dense and sparse total maps.

LicenseMIT
MaintainerPaweł Nowak <pawel834@gmail.com>
PortabilityGHC only
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Total.Internal.SparseFold

Description

 

Synopsis

Documentation

mpower :: Monoid m => m -> Integer -> m Source

`mpower x n` raises x to the power n taking advantage of associativity.

data SparseFold s m Source

A semigroup used to quickly fold a sparse finite domain.

Constructors

SparseFold (Min Integer) m (Max Integer) 

Instances

(Reifies * s m, Monoid m) => Semigroup (SparseFold s m) 
Typeable (* -> * -> *) SparseFold 

runSparseFold :: Monoid m => m -> (forall s. Reifies s m => Proxy s -> Option (SparseFold s m)) -> m Source