Installation
Fixen is a Haskell library and executable. You can use it in two ways: as a standalone compiler tool installed on your system, or as a dependency in your Haskell project. Both approaches are covered below.
Prerequisites
Section titled “Prerequisites”Before installing Fixen, ensure you have the following installed. We recommend using GHCup for managing GHC and cabal versions (ghcup set ghc 9.12.2 and ghcup set cabal 3.16.1.0).
Fixen requires GHC 9.12.2 (base 4.21.0.0).
~ $ ghc --versionThe Glorious Glasgow Haskell Compilation System, version 9.12.2Fixen requires Cabal 3.16+.
~ $ cabal --versioncabal-install version 3.16.1.0compiled using version 3.16.1.0 of the Cabal library (in-tree)Fixen is distributed via GitHub. Git is needed to clone the repository.
~ $ git --versionInstall
Section titled “Install”Install Fixen as a standalone command-line tool. After installation, you can compile .fix files from anywhere on your system.
-
Clone the Fixen repository
Terminal ~ $ git clone https://github.com/plilab/fixen.git~ $ cd fixen -
Build and install the
fixenexecutableTerminal ~/fixen $ cabal install fixenThis installs the
fixenbinary to your Cabal user binary directory (typically~/.cabal/bin). Make sure this directory is in yourPATH. -
Verify the installation
Terminal ~ $ fixen --helpYou should see the help output describing the available options.
Once installed, you can compile Fixen programs with:
~ $ fixen --output Output.hs Input.fixNext Steps
Section titled “Next Steps”Now that you have Fixen installed, move on to Your First Program to learn the basic workflow of writing and compiling a Fixen program.