Getting StartedThe Glasgow Haskell Compiler (GHC) is required to build, install, and run husk. All recent versions of GHC are supported, including 6.10, 7.0, 7.2, 7.4, and 7.6. The easiest way to get GHC is via the Haskell Platform, which also includes other required tools such as Cabal. Once the Haskell Platform is installed, the recommended method to install Husk is to use Cabal:
cabal update
cabal install husk-scheme
Before running husk you may also need to add the cabal executable directory to your path. On Linux this is Command Line ToolsThe interactive interpreter may be invoked by running it directly from the command line:
huski
Alternatively, you may run an individual Scheme program:
huski my-scheme-file.scm
A compiler is also provided to allow you to create native executables:
huskc my-scheme-program.scm
./my-scheme-program
Libraries and ExtensionsHusk supports most of the R5RS and R7RS standard libraries, as described in this manual. The following SRFI libraries are supported:
Finally, Husk also includes a set of custom libraries:
MacrosThe Macros section provides an overview of the syntax-rules and explicit renaming systems provided by Husk. There is also a section on macro debugging with expand. |