As a way to facilitate Haskell scripting, I have created the hs-scripts repo on GitHub.
The idea is being able to run interpreted Hakell scripts, without having to install any package at the global level.
To test it, clone the repo, create a sandbox, and install the library. The repo should also be added to the PATH variable.
The library is empty at the moment, but is intended to hold common functions and definitions shared by multiple scripts.
You can invoke cabal repl in the repo to open a GHCi session with a lot of useful packages available (a poor man's Haskell Platform, if you will).
Scripts are easy to compile, if necessary.
So far there's only one script, a replica of Python's ever-useful python -m SimpleHTTPServer.
No comments:
Post a Comment