Skip to content

Commit

Permalink
update ghci script
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcdonell committed Apr 5, 2016
1 parent 234094e commit 091cd6f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions utils/dot_ghci → .ghci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:set -DUNIX
:set -DACCELERATE_BOUNDS_CHECKS
:set -DACCELERATE_INTERNAL_CHECKS
:set -Iinclude
:set -iutils
:set -DACCELERATE_DEBUG
5 changes: 2 additions & 3 deletions utils/README
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
This directory contains some utilities to use Accelerate from within GHCi.

Copy (or symlink) the wrapper script 'ghci' to the root directory of the
accelerate source tree. You might also like to copy the file 'dot_ghci' to
'.ghci' to the root directory.
Symling (or copy) the wrapper script 'ghci' to the root directory of the
accelerate source tree.

11 changes: 4 additions & 7 deletions utils/ghci
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@
# Get cabal to load up ghci for us. This will set the environment appropriately
# if we have a local sandbox installation.
#
GHC="cabal exec ghc --"
GHC="stack exec ghci --"
CABAL_MACROS="`stack path --dist-dir`/build/autogen/cabal_macros.h"

GHC_FLAGS="$GHC_FLAGS
--interactive
-DACCELERATE_BOUNDS_CHECKS
-DACCELERATE_INTERNAL_CHECKS
-DACCELERATE_DEBUG"

# -iutils -optP-include -optPdist/build/autogen/cabal_macros.h"
-optP-include -optP$CABAL_MACROS
+RTS -A128M -RTS"

# If we have specified one command line argument, but that file doesn't exist,
# search the source files for something with that name prefix.
Expand Down

0 comments on commit 091cd6f

Please sign in to comment.