compdata-0.8.1.1: Compositional Data Types

Copyright(c) 2012 Patrick Bahr
LicenseBSD3
MaintainerPatrick Bahr <paba@diku.dk>
Stabilityexperimental
Portabilitynon-portable (GHC Extensions)
Safe HaskellNone
LanguageHaskell98

Data.Comp.Multi.Number

Description

This module provides functionality to number the components of a functorial value with consecutive integers.

Synopsis

Documentation

newtype Numbered a i Source

This type is used for numbering components of a functorial value.

Constructors

Numbered (Int, a i) 

Instances

number :: HTraversable f => f a :-> f (Numbered a) Source

This function numbers the components of the given functorial value with consecutive integers starting at 0.

class HFoldable t => HTraversable t Source

Minimal complete definition

hmapM, htraverse