From c53353f08763fbbfb5c0abeaa03da6a23aa64080 Mon Sep 17 00:00:00 2001 From: "John J. Camilleri" Date: Tue, 28 Jul 2020 22:54:34 +0200 Subject: [PATCH] Updates to PGF2 readme --- src/runtime/haskell-bind/README.md | 15 ++++++++++++--- src/runtime/haskell-bind/stack.yaml | 2 ++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/runtime/haskell-bind/README.md b/src/runtime/haskell-bind/README.md index f136ad2da..1cb68df65 100644 --- a/src/runtime/haskell-bind/README.md +++ b/src/runtime/haskell-bind/README.md @@ -9,13 +9,22 @@ The exposed modules are: ## How to compile -**Note:** you must have the PGF C runtime already installed and available. +**Important:** You must have the C runtime already installed and available on your system. See -Once the runtine is installed, you can use: +Once the runtine is installed, you can install the library to your global Cabal installation: ``` -cabal install pgf2 +cabal install pgf2 --extra-lib-dirs=/usr/local/lib +``` + +or add it to your `stack.yaml` file: + +```yaml +extra-deps: + - pgf2 +extra-lib-dirs: + - /usr/local/lib ``` ## How to use diff --git a/src/runtime/haskell-bind/stack.yaml b/src/runtime/haskell-bind/stack.yaml index 3d69a763f..3b1a3092b 100644 --- a/src/runtime/haskell-bind/stack.yaml +++ b/src/runtime/haskell-bind/stack.yaml @@ -1 +1,3 @@ +# This is mainly here so that I can run `stack sdist` for uploading to Hackage + resolver: lts-12.26 # ghc 8.4.4