packages feed

th-context-0.13: th-context.cabal

name:               th-context
version:            0.13
cabal-version:      >= 1.10
build-type:         Simple
license:            BSD3
category:           Template Haskell
author:             David Fox
copyright:          (c) David Fox
maintainer:         David Fox <dsf@seereason.com>
homepage:           https://github.com/seereason/th-context
bug-reports:        https://github.com/seereason/th-context/issues
stability:          experimental
synopsis:           Test instance context
description:        Use these functions to decide an a not-quite naive fashion
                    whether an instance already exists that satisfies a given
                    context.  This can be used to decide whether an instance
                    needs to be generated, as in th-reify-many.
extra-source-files: test/Common.hs test/Context.hs test/Tests.hs test/TypeGraph.hs test/Values.hs

flag patched-for-trac-9262
  Description: This can be turned on if ghc-7.8 has had a patch applied to fix issue 9262
  Default: True

library
  build-depends:
    base >= 4.2 && < 5,
    containers,
    data-default,
    haskell-src-exts,
    mtl,
    syb,
    template-haskell >= 2.9,
    th-desugar,
    th-orphans >= 0.10.0
  ghc-options:      -Wall
  exposed-modules:  Language.Haskell.TH.Context,
                    Language.Haskell.TH.Context.Expand,
                    Language.Haskell.TH.Context.Helpers,
                    Language.Haskell.TH.Context.Simple,
                    Language.Haskell.TH.TypeGraph
  default-language: Haskell2010
  if flag(patched-for-trac-9262)
    cpp-options:      -DPATCHED_FOR_TRAC_9262

test-suite th-context-tests
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test
  main-is:          Tests.hs
  build-depends:    array, base, bytestring, containers, deepseq, ghc-prim,
                    hspec, hspec-core, mtl, syb, template-haskell, text,
                    th-context, th-desugar, th-orphans, th-reify-many
  default-language: Haskell2010
  if flag(patched-for-trac-9262)
    cpp-options:      -DPATCHED_FOR_TRAC_9262

source-repository head
  type:     git
  location: git://github.com/seereason/th-context.git