-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into wip/no-extend-narro…
…w-primop-names
- Loading branch information
Showing
72 changed files
with
540 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../cbits |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
|
||
import utils, sys, codecs | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
|
||
import utils, sys, codecs | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
|
||
import utils, sys | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
|
||
import sys, time | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,22 @@ cabal-version: 1.12 | |
name: text-benchmarks | ||
version: 0.0.0.0 | ||
synopsis: Benchmarks for the text package | ||
description: Benchmarks for the text package | ||
description: Benchmarks for the text package. | ||
homepage: https://bitbucket.org/bos/text | ||
license: BSD2 | ||
license-file: ../LICENSE | ||
license-file: LICENSE | ||
author: Jasper Van der Jeugt <[email protected]>, | ||
Bryan O'Sullivan <[email protected]>, | ||
Tom Harper <[email protected]>, | ||
Duncan Coutts <[email protected]> | ||
maintainer: [email protected] | ||
category: Text | ||
build-type: Simple | ||
tested-with: GHC==8.10.2, GHC==8.8.4, GHC==8.6.5, GHC==8.4.4, | ||
GHC==8.2.2, GHC==8.0.2, GHC==7.10.3 | ||
|
||
extra-source-files: | ||
include/*.h | ||
|
||
flag bytestring-builder | ||
description: Depend on the bytestring-builder package for backwards compatibility. | ||
|
@@ -54,7 +59,7 @@ executable text-benchmarks | |
build-depends: bytestring >= 0.10.4 | ||
|
||
-- modules for benchmark proper | ||
c-sources: cbits/time_iconv.c | ||
c-sources: cbits-bench/time_iconv.c | ||
hs-source-dirs: haskell | ||
main-is: Benchmarks.hs | ||
other-modules: | ||
|
@@ -81,9 +86,9 @@ executable text-benchmarks | |
|
||
-- Source code for IUT (implementation under test) | ||
-- "borrowed" from parent folder | ||
include-dirs: ../include | ||
c-sources: ../cbits/cbits.c | ||
hs-source-dirs: .. | ||
include-dirs: include | ||
c-sources: cbits/cbits.c | ||
hs-source-dirs: src | ||
other-modules: | ||
Data.Text | ||
Data.Text.Array | ||
|
@@ -96,6 +101,7 @@ executable text-benchmarks | |
Data.Text.Internal.Builder.Functions | ||
Data.Text.Internal.Builder.Int.Digits | ||
Data.Text.Internal.Builder.RealFloat.Functions | ||
Data.Text.Internal.ByteStringCompat | ||
Data.Text.Internal.Encoding.Fusion | ||
Data.Text.Internal.Encoding.Fusion.Common | ||
Data.Text.Internal.Encoding.Utf16 | ||
|
@@ -132,6 +138,7 @@ executable text-benchmarks | |
|
||
default-language: Haskell2010 | ||
default-extensions: NondecreasingIndentation | ||
other-extensions: DeriveAnyClass | ||
|
||
|
||
executable text-multilang | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
benchmarks: >=7.4 | ||
jobs-selection: any | ||
doctest: True | ||
doctest-options: -fobject-code -DINTEGER_GMP | ||
branches: master | ||
|
||
installed: +all -text -parsec | ||
install-dependencies: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
-- See http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html | ||
packages: ., benchmarks, th-tests | ||
packages: . | ||
packages: tests | ||
packages: th-tests | ||
packages: benchmarks | ||
tests: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- this project doesn't have local 'text' package, | ||
-- so tests build faster. | ||
|
||
packages: tests | ||
tests: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
runtest() { | ||
HC=$1 | ||
shift | ||
|
||
# EDIT last line to pass arguments | ||
|
||
cabal run text-tests:test:tests \ | ||
--project-file=cabal.tests.project \ | ||
--builddir="dist-newstyle/$HC" \ | ||
--with-compiler="$HC" \ | ||
-- "$@" | ||
} | ||
|
||
runtest ghc-8.10.2 "$@" | ||
runtest ghc-8.8.4 "$@" | ||
runtest ghc-8.6.5 "$@" | ||
runtest ghc-8.4.4 "$@" | ||
runtest ghc-8.2.2 "$@" | ||
runtest ghc-8.0.2 "$@" | ||
|
||
runtest ghc-7.10.3 "$@" | ||
runtest ghc-7.8.4 "$@" | ||
runtest ghc-7.6.3 "$@" | ||
runtest ghc-7.4.2 "$@" | ||
runtest ghc-7.2.2 "$@" | ||
runtest ghc-7.0.4 "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.