acme-schoenfinkel-0.1.1: Proper names for curry and uncurry

MaintainerErtugrul Soeylemez <es@ertes.de>
Safe HaskellNone

Control.Category.Schoenfinkel

Contents

Description

This library generalizes curry and uncurry and also gives them more appropriate names.

 import Control.Category.Schoenfinkel

 main :: IO ()
 main = print (unschoen atan2 (2, 3))

For your convenience there are also Unicode variants of both the Schoenfinkel class and its two functions.

Synopsis

Schoenfinkelization

class Category cat => Schoenfinkel cat whereSource

Categories that support Schönfinkelization.

Methods

schoen :: cat (a, b) c -> cat a (cat b c)Source

unschoen :: cat a (cat b c) -> cat (a, b) cSource

ArrowApply-based

Unicode variants

type Schönfinkel = SchoenfinkelSource

Unicode version of Schoenfinkel if you prefer.

type WrappedSchönfinkel = WrappedSchoenfinkelSource

Unicode version of WrappedSchoenfinkel if you prefer.

schön :: Schoenfinkel cat => cat (a, b) c -> cat a (cat b c)Source

Unicode version of schoen if you prefer.

unschön :: Schoenfinkel cat => cat a (cat b c) -> cat (a, b) cSource

Unicode version of unschoen if you prefer.

hässlich :: Schoenfinkel cat => cat a (cat b c) -> cat (a, b) cSource

Another appropriate name for 'uncurry'/'unschoen'.