DPutils-0.0.2.0: utilities for DP

Safe HaskellSafe
LanguageHaskell2010

Data.Paired.Common

Synopsis

Documentation

data OnDiag Source #

Shall we combine elements on the main diagonal as well?

If we choose NoDiag, we deal with upper triangular matrices that are effectively one element smaller.

Constructors

OnDiag 
NoDiag 
Instances
Eq OnDiag Source # 
Instance details

Defined in Data.Paired.Common

Methods

(==) :: OnDiag -> OnDiag -> Bool #

(/=) :: OnDiag -> OnDiag -> Bool #

data Enumerate Source #

Select only a subset of the possible enumerations.

Constructors

All

Enumerate all elements

FromN Int Int

Enumerate from a value and at most N elements

Instances
Eq Enumerate Source # 
Instance details

Defined in Data.Paired.Common

data SizeHint Source #

If the size of the input is known before-hand or not.

Constructors

UnknownSize 
KnownSize Int 
Instances
Eq SizeHint Source # 
Instance details

Defined in Data.Paired.Common