Skip to main content
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Description-Content-Type: UNKNOWN
Description: ======
Hask
======

.. image:: https://travis-ci.org/mvaled/hask.svg


Hask is a pure-Python, zero-dependencies library that mimics most of the core
language tools from Haskell, including:

* Full Hindley-Milner type system (with typeclasses) that will typecheck any
function decorated with a Hask type signature

* Easy creation of new algebraic data types and new typeclasses, with
Haskell-like syntax

* Pattern matching with `case` expressions

* Automagical function currying/partial application and function composition

* Efficient, immutable, lazily evaluated `List` type with Haskell-style list
comprehensions

* All your favorite syntax and control flow tools, including operator
sections, monadic error handling, guards, and more

* Python port of (some of) the standard libraries from Haskell's `base`,
including:

* Algebraic datatypes from the Haskell `Prelude`, including `Maybe` and
`Either`

* Typeclasses from the Haskell `base` libraries, including `Functor`,
`Applicative`, `Monad`, `Enum`, `Num`, and all the rest

* Standard library functions from `base`, including all functions from
`Prelude`, `Data.List`, `Data.Maybe`, and more


Features not yet implemented, but coming soon:

* Better support for polymorphic return values/type defaulting

* Better support for lazy evaluation (beyond just the `List` type and pattern
matching)

* More of the Haskell standard library (`Control.*` libraries, QuickCheck, and
more)

* Monadic, lazy I/O

.. warning:: Note that all of this is still very much pre-alpha, and some
things may be buggy!


Credits
=======

This is a fork of `hask <https://github.com/billmurphy/hask_>`__ modified to
run in Python 3.4+.

See the `LICENSE file <https://github.com/mvaled/hask/blob/master/LICENSE_>`__
keeps the original author and rights.

Changes are copyright `Merchise Autrement [~º/~] and Contributors`, but with
the same

Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6

Metadata

Release files for hask3 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hask3 0.1.1
File Size Uploaded
hask3-0.1.1.tar.gz 48.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hask3 0.1.1
File Interpreter ABI Platform
hask3-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 107.5 kB

Release files / hask3-0.1.1.tar.gz

Download URL hask3-0.1.1.tar.gz
Size 48.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9e288d5868da92ecff52c0e492079c185a488485fad7caca1c2bbf5fb4dddd8a
BLAKE2b-256 checksum
How to use checksums
63e47313aaf10423d489af879652ab538816fbc395739cadcfc5edfd301656e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / hask3-0.1.1-py2.py3-none-any.whl

Download URL hask3-0.1.1-py2.py3-none-any.whl
Size 59.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a4b92fb618318dda87aeba028b475f93be1ce6e71960ae0adf9d18d229667bef
BLAKE2b-256 checksum
How to use checksums
ead09e812aca7f405c19d7540b6ea3a13e9ce37f71ec643223d593b1b123dfb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page