packages feed

beam-th-0.2.0.0: beam-th.cabal

name:                    beam-th
version:                 0.2.0.0
synopsis:                Template Haskell utilities for beam
description:
    (Completely optional) Template Haskell functions
    to derive common boilerplate code when writing table types
    for the <https://hackage.haskell.org/package/beam beam> library.
license:                 BSD3
license-file:            LICENSE
category:                Database, Template Haskell
extra-source-files:      README.md CHANGELOG.md
author:                  Tobias Markus <tobias AT miglix DOT eu>
maintainer:              Tobias Markus <tobias AT miglix DOT eu>
copyright:               Copyright 2016 Tobias Markus <tobias AT miglix DOT eu>
homepage:                https://github.com/hesiod/beam-th
bug-reports:             https://github.com/hesiod/beam-th/issues
build-type:              Simple
cabal-version:           >=1.18
stability:               Experimental
tested-with:             GHC == 8.0.1

source-repository head
  type:                  git
  location:              https://github.com/hesiod/beam-th.git

library
  default-language:      Haskell2010
  ghc-options:           -Wall -Wcompat
  hs-source-dirs:        src
  exposed-modules:       Database.Beam.TH
                       , Database.Beam.TH.Internal
--other-modules:
  other-extensions:      StandaloneDeriving
                       , GeneralizedNewtypeDeriving
                       , DeriveGeneric
                       , TypeSynonymInstances
                       , FlexibleInstances
                       , FlexibleContexts
                       , TypeFamilies
                       , LambdaCase
                       , TemplateHaskell
  build-depends:         base             >= 4.9  && < 4.10
                       , template-haskell >= 2.11 && < 2.12
                       , th-expand-syns   >= 0.4  && < 0.5
                       , transformers     >= 0.5  && < 0.6
                       , mtl              >= 2.2  && < 2.3
                       , beam             >= 0.3  && < 0.5
                       , microlens        >= 0.4  && < 0.5

test-suite test-beam-th
  default-language:      Haskell2010
  type:                  exitcode-stdio-1.0
  ghc-options:           -Wall -Wcompat
  hs-source-dirs:        test
  main-is:               Test.hs
  other-modules:         TestData
  other-extensions:      StandaloneDeriving
                       , DeriveGeneric
                       , TypeSynonymInstances
                       , FlexibleInstances
                       , FlexibleContexts
                       , TypeFamilies
                       , TemplateHaskell
  build-depends:         base
                       , beam-th
                       , beam             >= 0.3  && < 0.5
                       , text             >= 1.0  && < 1.3
                       , template-haskell >= 2.11 && < 2.12
                       , tasty            >= 0.8  && < 0.12
                       , tasty-hunit      >= 0.9  && < 0.10

test-suite doctest-beam-th
  default-language:      Haskell2010
  type:                  exitcode-stdio-1.0
  ghc-options:           -Wall -Wcompat -threaded
  HS-Source-Dirs:        test
  main-is:               DoctestDriver.hs
  build-depends:         base
                       , doctest          >= 0.11 && < 0.12
                       , doctest-discover >= 0.1  && < 0.2