Repository : ssh://g...@git.haskell.org/bytestring On branch : ghc-head Link : http://git.haskell.org/packages/bytestring.git/commitdiff/53f91ca9572d7e24d79957f782e3678982e34317
>--------------------------------------------------------------- commit 53f91ca9572d7e24d79957f782e3678982e34317 Author: Simon Meier <simon.me...@erudify.com> Date: Mon Sep 16 23:36:48 2013 +0200 Make benchmarks compile and install again. >--------------------------------------------------------------- 53f91ca9572d7e24d79957f782e3678982e34317 bench/LICENSE | 1 + bench/bench-bytestring.cabal | 119 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) diff --git a/bench/LICENSE b/bench/LICENSE new file mode 120000 index 0000000..ea5b606 --- /dev/null +++ b/bench/LICENSE @@ -0,0 +1 @@ +../LICENSE \ No newline at end of file diff --git a/bench/bench-bytestring.cabal b/bench/bench-bytestring.cabal new file mode 100644 index 0000000..dfcfd32 --- /dev/null +++ b/bench/bench-bytestring.cabal @@ -0,0 +1,119 @@ +Name: bench-bytestring +Version: 0.1.0.0 +Synopsis: Benchmarks for the lazy bytestring builder. +Description: + This package is not meant for public release. It fixes a problem with the + current benchmarking support in cabal, which has trouble compiling because + criterion depends on bytestring. Here, we just include the whole source of + the bytestring library directly. + +License: BSD3 +License-file: LICENSE +Category: Data +Copyright: (c) Simon Meier 2010-2011. + +Author: Simon Meier +Maintainer: Simon Meier <iridc...@gmail.com> + Duncan Coutts <dun...@community.haskell.org> +Bug-reports: iridc...@gmail.com + dun...@community.haskell.org +Tested-With: GHC==7.0.3 +Build-Type: Simple +Cabal-Version: >= 1.8 + +source-repository head + type: darcs + location: http://darcs.haskell.org/bytestring/ + +executable bench-bytestring-builder + hs-source-dirs: . .. + main-is: BenchAll.hs + + build-depends: base >= 4 && < 5 + , ghc-prim + , deepseq >= 1.2 + , criterion >= 0.5 + , blaze-textual == 0.2.* + , blaze-builder == 0.3.* + -- we require bytestring due to benchmarking against + -- blaze-textual, which uses blaze-builder + , bytestring >= 0.9 + + -- cabal complains about ../ dirs. However, this is better than symlinks, + -- which probably don't work on windows. + c-sources: ../cbits/fpstring.c + ../cbits/itoa.c + include-dirs: ../include + includes: fpstring.h + install-includes: fpstring.h + + ghc-options: -O2 + -fmax-simplifier-iterations=10 + -fdicts-cheap + -fspec-constr-count=6 + + if impl(ghc >= 6.11) + cpp-options: -DINTEGER_GMP + build-depends: integer-gmp >= 0.2 + + if impl(ghc >= 6.9) && impl(ghc < 6.11) + cpp-options: -DINTEGER_GMP + build-depends: integer >= 0.1 + + if impl(ghc) + extensions: UnliftedFFITypes, + MagicHash, + UnboxedTuples, + DeriveDataTypeable + ScopedTypeVariables + Rank2Types + NamedFieldPuns + PackageImports + ForeignFunctionInterface + +-- executable bench-float-decimal +-- hs-source-dirs: . .. +-- main-is: BenchFloatDec.hs +-- +-- build-depends: base >= 4 && < 5 +-- , ghc-prim +-- , deepseq == 1.2.* +-- , criterion == 0.5.* +-- , blaze-textual == 0.2.* +-- , blaze-builder == 0.3.* +-- -- we require bytestring due to benchmarking against +-- -- blaze-textual, which uses blaze-builder +-- , bytestring == 0.9.* +-- +-- -- cabal complains about ../ dirs. However, this is better than symlinks, +-- -- which probably don't work on windows. +-- c-sources: ../cbits/fpstring.c +-- ../cbits/itoa.c +-- ../cbits/varint.c +-- include-dirs: ../include +-- includes: fpstring.h +-- install-includes: fpstring.h +-- +-- ghc-options: -O2 +-- -fmax-simplifier-iterations=10 +-- -fdicts-cheap +-- -fspec-constr-count=6 +-- +-- if impl(ghc >= 6.11) +-- cpp-options: -DINTEGER_GMP +-- build-depends: integer-gmp >= 0.2 && < 0.4 +-- +-- if impl(ghc >= 6.9) && impl(ghc < 6.11) +-- cpp-options: -DINTEGER_GMP +-- build-depends: integer >= 0.1 && < 0.2 +-- +-- if impl(ghc) +-- extensions: UnliftedFFITypes, +-- MagicHash, +-- UnboxedTuples, +-- DeriveDataTypeable +-- ScopedTypeVariables +-- Rank2Types +-- NamedFieldPuns +-- PackageImports +-- ForeignFunctionInterface _______________________________________________ ghc-commits mailing list ghc-commits@haskell.org http://www.haskell.org/mailman/listinfo/ghc-commits