Popularity
4.4
Declining
Activity
0.0
Stable
8
2
2

Monthly Downloads: 1
Programming language: Haskell
License: MIT License
Tags: Control    

arity-generic-liftA alternatives and similar packages

Based on the "Control" category.
Alternatively, view arity-generic-liftA alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of arity-generic-liftA or a related project?

Add another 'Control' Package

README

Hackage Build Status

arity-generic-liftA

There's a family of functions in Control.Applicative which follow the pattern liftA2, liftA3, etc. Using some tricks from Richard Eisenberg's thesis we can write them all at once. This package does exactly that, providing a function (lift) which is an arity-generic version of the liftAn.

>>> lift (\x y z -> x ++ y ++ z) (Just "a") (Just "b") (Just "c")
Just "abc"

Eisenberg, Richard A. “Dependent Types in Haskell: Theory and Practice.” University of Pennsylvania, 2016.