ADPfusion-0.4.1.0: Efficient, high-level dynamic programming.

Safe HaskellNone
LanguageHaskell2010

ADP.Fusion.SynVar.Indices

Description

With tableIndices we create a stream of legal indices for this table. We need tableIndices in multi-dimensional tables as the type of the multi-dimensional indices is generic.

Synopsis

Documentation

class TableIndices i where Source

Methods

tableIndices :: Monad m => TblConstraint i -> Context i -> i -> Stream m (S5 z j j i i) -> Stream m (S5 z j j i i) Source

Instances

TableIndices Z 
TableIndices (Outside Z) 
TableIndices (Outside is) => TableIndices (Outside ((:.) is PointL)) 
TableIndices is => TableIndices ((:.) is PointL)

TODO I think we need to check cs:.c here

TODO yes, handle Empty / NonEmpty !!!

TableIndices is => TableIndices ((:.) is Subword)