Skip to content

import haskell modules via python and send to hell your sanity.

Notifications You must be signed in to change notification settings

dsvictor94/pyhell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyhell

require:

  • "ghc" installed and available in the PATH
  • "ghc-mod" installed and available in the PATH

use:

>>> from pyhell import autoenable
>>> from pyhell.hstypes import HaskellString
>>> from Data.List import sort #import from haskell
>>> x = HaskellString(sort(HaskellString("pyhell")))
>>> #just checked the type and build the expression, it had not executed yet
>>> print(x._data)
None
>>> print(x.hs_code)
(Data.List.sort "pyhell")
>>> print(x)
ehllpy
>>> #now the code was executed

TODO

  • rewrite the README
  • write a decent setup.py
  • check the function type and return the apropriete "hstype"
  • write a lot of hstypes
  • use ghc-mod as a server
  • write a decent ghcmodwrapper

About

import haskell modules via python and send to hell your sanity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages