pointless-haskell-0.0.9: Pointless Haskell library

Copyright(c) 2009 University of Minho
LicenseBSD3
Maintainerhpacheco@di.uminho.pt
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell98

Generics.Pointless.Bifctrable

Description

Pointless Haskell: point-free programming with recursion patterns as hylomorphisms

This module defines a class of representable bifunctors.

Synopsis

Documentation

data Bifctr f where Source

Functor GADT for polytypic recursive bifunctions. At the moment it does not rely on a Typeable instance for constants.

Constructors

BI :: Bifctr BId 
BK :: Bifctr (BConst c) 
BP :: Bifctr BPar 
(:*!|) :: (Bifunctor f, Bifunctor g) => Bifctr f -> Bifctr g -> Bifctr (f :*| g) 
(:+!|) :: (Bifunctor f, Bifunctor g) => Bifctr f -> Bifctr g -> Bifctr (f :+| g) 
(:@!|) :: (Bifunctor f, Bifunctor g) => Bifctr f -> Bifctr g -> Bifctr (f :@| g) 

class Bifunctor f => Bifctrable f where Source

Class of representable bifunctors.

Methods

bctr :: Bifctr f Source

fixB :: Bifctr f -> BFix f Source

The fixpoint of a representable bifunctor.

fctrB :: Bifctrable f => BFix f -> Bifctr f Source

The representation of the fixpoint of a representable functor.