Giter Site home page Giter Site logo

solomon-b / monoidal-functors Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 2.0 343 KB

A library encoding monoidal functors and related structures in Haskell.

Home Page: https://hackage.haskell.org/package/monoidal-functors

License: MIT License

Haskell 97.43% Nix 0.79% Makefile 1.78%
category-theory haskell monoidal-categories

monoidal-functors's People

Contributors

solomon-b avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

monoidal-functors's Issues

QuickCheck Tests

There are many laws related to the classes in this library. It would be great to use QuickCheck to test them.

Improve Haddocks

I have a PR with various haddock improvements but it would be amazing if someone more knowledgeable then myself could help on this task. Examples are especially valuable!

Work out newtype and fundep scheme to avoid instance overlaps

For example:

deriving via FromApplicative (Proxy :: Type -> Type) instance Semigroupal (->) (,) (,) (Proxy :: Type -> Type)
deriving via FromDivisible (Proxy :: Type -> Type) instance Semigroupal (->) (,) (,) (Proxy :: Type -> Type)

deriving via FromAlternative (Proxy :: Type -> Type) instance Semigroupal (->) Either (,) (Proxy :: Type -> Type)
deriving via FromDecidable (Proxy :: Type -> Type) instance Semigroupal (->) Either (,) (Proxy :: Type -> Type)

The instances are indistinguishable because we don't mention the input category in Semigroupal. Unfortunately the reason for this is that the input category doesn't actually occur in the operation of Semigroupal leading to ambiguity which would require tedious type application from our users to resolve. To have are cake and eat it too, we would need to add this input category type parameter to Semigroupal and come up with a system of fundeps so that it would fixed without the use of type applications.

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.