Metadata-Version: 1.1
Name: pylude
Version: 0.0.6
Summary: A library trying to clone the Haskell-Prelude for python3
Home-page: UNKNOWN
Author: Tobias Weise
Author-email: tobias_weise@gmx.de
License: BSD3
Description: pylude
        =======================
        
        A library trying to clone the Haskell-Prelude for python3 :
        
        http://hackage.haskell.org/package/base-4.8.1.0/docs/Prelude.html
        
        
        Why? Because rapid prototyping for haskell should be a thing!
        
        
        
        ====================================================
        ==============    Features    ======================
        ====================================================
        implemented so far:
        
        -----The newType function:------
        
        Just, Nothing = newType("Maybe", ("Just", 1), ("Nothing", 0), deriving={"Eq","Show"})
        
        
        --constructor matching:--
        
        def isJust(x):
            return Just(match=x)
        
        def isNothing(x):
            return x==Nothing
        
        
        --type-classes:--
        
        
        def mapB(func, b):
            return b
        
        T, F = newType("B", ("T",0), ("F",0), deriving={"Eq","Show"}, implements={Functor : {"fmap" : mapB} })
        
        print(fmap(lambda x: x*2, T)) # 'T()'
        
        
        
        
        
        
        
        
Keywords: prelude haskell function functional lambda list tuple either maybe functor monad monoid higherorder
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.0
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
