Skip to main content

Functions and classes inspired by Haskell and Hask category

Project description

# HaskPy - Haskell types and functions in Python

Hask is the category of types and functions in Haskell. This package provides classes and functions inspired by Hask.

This is currently in planning phase, consider this a proof of concept.

Quite minimal example with two-layers of functor structure:

`python >>> from haskpy import map, List, Just, Nothing >>> map(map(lambda x: x**2))(List(Just(1), Nothing, Just(3), Just(4), Nothing)) List(Just(1), Nothing, Just(9), Just(16), Nothing) `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haskpy-0.0.2.tar.gz (20.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page