Code Monkey home page Code Monkey logo

functor-monad's Introduction

functor-monad

This repository contains multiple (currently: 3) Haskell packages.

free-applicative-t

The package free-applicative-t provides the single module Control.Applicative.Trans.FreeAp for single type: ApT. This type is supposed to represent the "free" "applicative transformer", filling the space in this table:

Free -transformer
Monad Free FreeT
Applicative Ap ???

More on the README of the package itself.

day-comonoid

The package day-comonoid provides a type class named Comonoid.

class Comonad f => Comonoid f where
    coapply :: f a -> Day f f a

The name "Comonoid" should be read in a context. A functor f being Comonoid means it's a comonoid in the category of Functors equipped with Day as its tensor product.

Comonoid can be seen as "the dual" of Applicative, because Applicative can be seen as the type class for monoids in that category.

functor-monad

The package functor-monad provides FFunctor and FMonad, each corresponds to Functor and Monad but is higher-order.

a Functor f a FFunctor ff
Takes a :: Type g :: Type -> Type, Functor g
Makes f a :: Type ff g :: Type -> Type, Functor (ff g)
Methods fmap :: (a -> b) -> f a -> f b ffmap :: (Functor g, Functor h) => (g ~> h) -> (ff g ~> ff h)
a Monad m a FMonad mm
Superclass Functor FFunctor
Methods return = pure :: a -> m a fpure :: (Functor g) => g ~> mm g
(=<<) :: (a -> m b) -> m a -> m b fbind :: (Functor g, Functor h) => (g ~> mm h) -> (mm g ~> mm h)
join :: m (m a) -> m a fjoin :: (Functor g) => mm (mm g) ~> mm g

More on the README of the package itself.

functor-monad's People

Contributors

viercc avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.