Skip to main content

Haskell language features and standard library ported to Python

Project description

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

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

hask3-0.1.1.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

hask3-0.1.1-py2.py3-none-any.whl (59.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hask3-0.1.1.tar.gz.

File metadata

  • Download URL: hask3-0.1.1.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hask3-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9e288d5868da92ecff52c0e492079c185a488485fad7caca1c2bbf5fb4dddd8a
MD5 344e0e613d3d1b17a7c86fef5ee447de
BLAKE2b-256 63e47313aaf10423d489af879652ab538816fbc395739cadcfc5edfd301656e0

See more details on using hashes here.

File details

Details for the file hask3-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for hask3-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a4b92fb618318dda87aeba028b475f93be1ce6e71960ae0adf9d18d229667bef
MD5 9fcbdfdb19d39015864dd06d9250fb0a
BLAKE2b-256 ead09e812aca7f405c19d7540b6ea3a13e9ce37f71ec643223d593b1b123dfb9

See more details on using hashes here.

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