Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install instructions for ghc 8.6.5 #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ of writing), this means the following:
gcc-aarch64-linux-gnu and g++-aarch64-linux-gnu on Ubuntu LTS
* GNU binutils (2.24 and 2.26 are known to work)
* GNU make
* GHC v7.10.3 and Parsec 3.1
* [GHC 8.6.5](https://www.haskell.org/ghc/download_ghc_8_6_5.html) and Parsec 3.1
- older versions of the tree supported v6.10 or v6.12.2 with Parsec
2.1 or v7.4 with Parsec 3.1, or v7.6.3 with Parsec 3.1; GHC v6.12.1 has a
known bug and is unable to build our tools, but now earlier versions of
Expand Down Expand Up @@ -113,7 +113,15 @@ architecture(s) ::
$ ../hake/hake.sh -s ../ -a x86_64

This will configure the build directory and use GHC to compile and then run
hake, a tool used to generate the ``Makefile``.
hake, a tool used to generate the ``Makefile``. You may need to install some
extra Haskell packages e.g.
```
$ cabal install ghc-mtl
$ cabal install ghc-paths
$ cabal install bytestring-trie
$ cabal install async
$ cabal install haskell-src-exts
```

3. Optionally, edit the configuration parameters in ``hake/Config.hs`` and
run ``make rehake`` to apply them.
Expand Down
2 changes: 2 additions & 0 deletions tools/fof/IL/Paka/Compile.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

> module IL.Paka.Compile where

> import Prelude hiding ((<>))

> import Text.PrettyPrint.HughesPJ as Pprinter
> import qualified Data.Map as Map
> import Data.List
Expand Down
1 change: 1 addition & 0 deletions tools/fof/IL/Paka/Paka.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
> module IL.Paka.Paka where

> import Debug.Trace
> import Prelude hiding ((<>))

> import Text.PrettyPrint.HughesPJ as Pprinter

Expand Down
1 change: 1 addition & 0 deletions tools/hamlet/HamletAst.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
> module HamletAst where

> import Debug.Trace
> import Prelude hiding ((<>))
> import Text.PrettyPrint.HughesPJ as Pprinter
> import Data.List

Expand Down
6 changes: 3 additions & 3 deletions tools/sockeye/SockeyeInstantiator.hs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ instance Instantiatable CheckAST.SockeyeSpec InstAST.SockeyeSpec where
mods = CheckAST.modules ast
specContext = context
{ modules = mods }
[instRoot] <- instantiate specContext root
instRoots <- instantiate specContext root
modules <- get
return InstAST.SockeyeSpec
{ InstAST.root = instRoot
{ InstAST.root = head instRoots -- There should only be one.
, InstAST.modules = modules
}

Expand Down Expand Up @@ -353,7 +353,7 @@ instance Instantiatable a b => Instantiatable (CheckAST.For a) [b] where
let body = CheckAST.body ast
varRanges = CheckAST.varRanges ast
concreteRanges <- instantiate context varRanges
let valueList = Map.foldWithKey iterations [] concreteRanges
let valueList = Map.foldrWithKey iterations [] concreteRanges
iterContexts = map iterationContext valueList
mapM (\c -> instantiate c body) iterContexts
where
Expand Down