Skip to content

Commit

Permalink
pagerank: wibbles to build with repa-3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcdonell committed Feb 22, 2017
1 parent 558eccf commit a32c3b1
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions repa-examples/examples/PageRank/pagerank.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@ Cabal-Version: >=1.6
Stability: experimental
Category: Data Structures

Flag llvm
Description: Compile via LLVM. This produces much better object code,
but you need to have the LLVM compiler installed.

Default: False

Executable pagerank
Build-depends:
Build-depends:
base,
directory == 1.1.*,
bytestring == 0.9.2.*,
containers == 0.4.2.*,
repa == 3.2.*,
vector == 0.9.*,
vector-algorithms == 0.5.4.*

Main-is:
directory >= 1.1,
bytestring >= 0.9.2,
containers >= 0.4.2,
repa == 3.4.*,
vector >= 0.9,
vector-algorithms >= 0.5.4

Main-is:
Main.hs

other-modules:
Expand All @@ -29,11 +35,22 @@ Executable pagerank

hs-source-dirs: src

ghc-options:
-rtsopts
-threaded
-O2
ghc-options:
-rtsopts
-threaded
-Odph
-fno-liberate-case
-funfolding-use-threshold100
-funfolding-keeness-factor100

if flag(llvm)
ghc-options:
-fllvm -optlo-O3

extensions:
PatternGuards
BangPatterns
GADTs

-- vim: nospell

0 comments on commit a32c3b1

Please sign in to comment.