<commit_before>---
title: "setup details"
bg: gunmetal
color: white
fa-icon: toggle-on
---

## How do I install CλaSH?

The CλaSH compiler is written in [Haskell](http://haskell.org) and is compiled _from source_ using the the [GHC](http://haskell.org/ghc) Haskell compiler version 7.8.* or higher:

1. Install __GHC (version 7.8.* or higher)__

    - Download [GHC for your platform](http://www.haskell.org/ghc/download).
      Unix users can use `./configure prefix=<LOCATION>` to set the installation location
    - Make sure the `bin` directory of __GHC__ is in your `PATH`
2. Install __Cabal (version 1.18.* or higher)__

    - Binary, when available:
        - Download the [binary for cabal-install](http://www.haskell.org/cabal/download.html)
        - Put the binary in a location mentioned in your `PATH`
        - Add `cabal`'s `bin` directory to your `PATH`:
            - Windows: `%appdata%\cabal\bin`
            - Unix: `$HOME/.cabal/bin`
    - Source:
        - Download the [sources for cabal-install](http://www.haskell.org/cabal/download.html)
        - Unpack (`tar xf`) the archive and `cd` to the directory
        - Run `sh bootstrap.sh`
        - Follow the instructions to add `cabal` to your `PATH`
    - Run `cabal update`

3. Install __CλaSH__
    - Run `cabal install clash-ghc --enable-documentation --enable-profiling`
    - _This is going to take awhile, so have a refreshment_<commit_msg>Update 2000-01-04-details.md<commit_after>---
title: "setup details"
bg: gunmetal
color: white
fa-icon: toggle-on
---

## How do I install CλaSH?

The CλaSH compiler is written in [Haskell](http://haskell.org) and is compiled _from source_ using the the [GHC](http://haskell.org/ghc) Haskell compiler version 7.8.* or higher:

1. Install __GHC (version 7.8.* or higher)__

    - Download [GHC for your platform](http://www.haskell.org/ghc/download).
      Unix users can use `./configure prefix=<LOCATION>` to set the installation location
    - Make sure the `bin` directory of __GHC__ is in your `PATH`
2. Install __Cabal (version 1.18.* or higher)__

    - Binary, when available:
        - Download the [binary for cabal-install](http://www.haskell.org/cabal/download.html)
        - Put the binary in a location mentioned in your `PATH`
        - Add `cabal`'s `bin` directory to your `PATH`:
            - Windows: `%appdata%\cabal\bin`
            - Unix: `$HOME/.cabal/bin`
    - Source:
        - Download the [sources for cabal-install](http://www.haskell.org/cabal/download.html)
        - Unpack (`tar xf`) the archive and `cd` to the directory
        - Run `sh bootstrap.sh`
        - Follow the instructions to add `cabal` to your `PATH`
    - Run `cabal update`

3. Install __CλaSH__
    - Run `cabal install clash-ghc --enable-documentation --enable-profiling`
    - _This is going to take awhile, so have a refreshment_ [xkcd](https://xkcd.com/303/)
{'fraction_non_alphanumeric': 0.12322602976808585, 'fraction_numerical': 0.010730356524749048, 'mean_word_length': 2.822751322751323, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1179993', 'n_tokens_mistral': 991, 'n_tokens_neox': 930, 'n_words': 315}