container-1.0: Containers abstraction and utilities.

Safe HaskellNone
LanguageHaskell2010

Data.Container.Hetero

Documentation

newtype Ptr i a Source

Constructors

Ptr i 

Instances

Show i => Show (Ptr i a) Source 
PtrIdx (Ptr i a) i Source 
PtrFrom (Ptr i a) i Source 

newtype HPtr i m a Source

Constructors

HPtr (Ptr i (m a)) 

Instances

Show i => Show (HPtr i m a) Source 
PtrIdx (HPtr i m a) i Source 

class PtrFrom p i | p -> i where Source

Methods

ptrFrom :: p -> Ptr i a Source

Instances

(~) * p i => PtrFrom p i Source 
PtrFrom (Ptr i a) i Source 

class PtrIdx p i | p -> i where Source

Methods

ptrIdx :: p -> i Source

Instances

PtrIdx (Ptr i a) i Source 
PtrIdx (HPtr i m a) i Source