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.Fctrable

Description

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

This module defines a class of representable functors.

Synopsis

Documentation

data Fctr f where Source

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

Constructors

I :: Fctr Id 
K :: Fctr (Const c) 
L :: Fctr [] 
(:*!:) :: (Functor f, Functor g) => Fctr f -> Fctr g -> Fctr (f :*: g) 
(:+!:) :: (Functor f, Functor g) => Fctr f -> Fctr g -> Fctr (f :+: g) 
(:@!:) :: (Functor f, Functor g) => Fctr f -> Fctr g -> Fctr (f :@: g) 

class Functor f => Fctrable f where Source

Class of representable functors.

Methods

fctr :: Fctr f Source

Instances

fixF :: Fctr f -> Fix f Source

The fixpoint of a representable functor.

fctrF :: Fctrable f => Fix f -> Fctr f Source

The representation of the fixpoint of a representable functor.