text / tests / text-tests.cabal

The default branch has multiple heads

name:          text-tests
version:       0.0.0.0
synopsis:      Functional tests for the text package
description:   Functional tests for the text package
homepage:      https://bitbucket.org/bos/text
license:       BSD3
license-file:  ../LICENSE
author:        Jasper Van der Jeugt <jaspervdj@gmail.com>,
               Bryan O'Sullivan <bos@serpentine.com>,
               Tom Harper <rtomharper@googlemail.com>,
               Duncan Coutts <duncan@haskell.org>
maintainer:    Bryan O'Sullivan <bos@serpentine.com>
category:      Text
build-type:    Simple

cabal-version: >=1.8

flag hpc
  description: Enable HPC to generate coverage reports
  default:     False

executable text-tests
  main-is: Tests.hs

  ghc-options:
    -Wall -threaded -O0 -rtsopts

  if flag(hpc)
    ghc-options:
      -fhpc

  cpp-options:
    -DASSERTS
    -DHAVE_DEEPSEQ

  build-depends:
    HUnit >= 1.2,
    QuickCheck >= 2.4,
    base == 4.*,
    bytestring,
    deepseq,
    directory,
    random,
    test-framework >= 0.4,
    test-framework-hunit >= 0.2,
    test-framework-quickcheck2 >= 0.2,
    text-tests

executable text-tests-stdio
  main-is:        Tests/IO.hs

  ghc-options:
    -Wall -threaded -rtsopts

  -- Optional HPC support
  if flag(hpc)
    ghc-options:
      -fhpc

  build-depends:
    text-tests,
    base >= 4 && < 5

library
  hs-source-dirs: ..
  c-sources: ../cbits/cbits.c
  exposed-modules:
    Data.Text
    Data.Text.Array
    Data.Text.Encoding
    Data.Text.Encoding.Error
    Data.Text.Encoding.Fusion
    Data.Text.Encoding.Fusion.Common
    Data.Text.Encoding.Utf16
    Data.Text.Encoding.Utf32
    Data.Text.Encoding.Utf8
    Data.Text.Foreign
    Data.Text.Fusion
    Data.Text.Fusion.CaseMapping
    Data.Text.Fusion.Common
    Data.Text.Fusion.Internal
    Data.Text.Fusion.Size
    Data.Text.IO
    Data.Text.IO.Internal
    Data.Text.Internal
    Data.Text.Lazy
    Data.Text.Lazy.Builder
    Data.Text.Lazy.Builder.Functions
    Data.Text.Lazy.Builder.Int
    Data.Text.Lazy.Builder.Int.Digits
    Data.Text.Lazy.Builder.Internal
    Data.Text.Lazy.Builder.RealFloat
    Data.Text.Lazy.Builder.RealFloat.Functions
    Data.Text.Lazy.Encoding
    Data.Text.Lazy.Encoding.Fusion
    Data.Text.Lazy.Fusion
    Data.Text.Lazy.IO
    Data.Text.Lazy.Internal
    Data.Text.Lazy.Read
    Data.Text.Lazy.Search
    Data.Text.Private
    Data.Text.Read
    Data.Text.Search
    Data.Text.Unsafe
    Data.Text.Unsafe.Base
    Data.Text.UnsafeChar
    Data.Text.UnsafeShift
    Data.Text.Util

  if flag(hpc)
    ghc-options:
      -fhpc

  cpp-options:
    -DHAVE_DEEPSEQ
    -DASSERTS
    -DINTEGER_GMP

  build-depends:
    array,
    base == 4.*,
    bytestring,
    deepseq,
    ghc-prim,
    integer-gmp
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.