8e02788
name:               haskell-src-meta
8e02788
version:            0.8.5
8e02788
x-revision: 1
8e02788
cabal-version:      >= 1.8
8e02788
build-type:         Simple
8e02788
license:            BSD3
8e02788
license-file:       LICENSE
8e02788
category:           Language, Template Haskell
8e02788
author:             Matt Morrow
8e02788
copyright:          (c) Matt Morrow
8e02788
maintainer:         danburton.email@gmail.com
8e02788
bug-reports:        https://github.com/DanBurton/haskell-src-meta/issues
8e02788
tested-with:        GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.1
8e02788
synopsis:           Parse source to template-haskell abstract syntax.
8e02788
description:        The translation from haskell-src-exts abstract syntax
8e02788
                    to template-haskell abstract syntax isn't 100% complete yet.
8e02788
8e02788
extra-source-files: ChangeLog README.md
8e02788
8e02788
library
8e02788
  build-depends:   base >= 4.8 && < 5,
8e02788
                   haskell-src-exts >= 1.18 && < 1.24,
8e02788
                   pretty >= 1.0 && < 1.2,
8e02788
                   syb >= 0.1 && < 0.8,
8e02788
                   template-haskell >= 2.10 && < 2.17,
8e02788
                   th-orphans >= 0.12 && < 0.14
8e02788
8e02788
  if impl(ghc < 7.8)
8e02788
    build-depends: safe <= 0.3.9
8e02788
8e02788
  hs-source-dirs:  src
8e02788
  exposed-modules: Language.Haskell.Meta
8e02788
                   Language.Haskell.Meta.Parse
8e02788
                   Language.Haskell.Meta.Syntax.Translate
8e02788
                   Language.Haskell.Meta.Utils
8e02788
8e02788
test-suite unit
8e02788
  type:             exitcode-stdio-1.0
8e02788
  hs-source-dirs:   tests
8e02788
  main-is:          Main.hs
8e02788
8e02788
  build-depends:
8e02788
    HUnit                >= 1.2,
8e02788
    base                 >= 4.5,
8e02788
    haskell-src-exts     >= 1.17,
8e02788
    haskell-src-meta,
8e02788
    pretty               >= 1.0,
8e02788
    template-haskell     >= 2.10,
8e02788
    tasty,
8e02788
    tasty-hunit
8e02788
8e02788
  -- this is needed to access Control.Monad.Fail on GHCs before 8.0
8e02788
  if !impl(ghc >= 8.0)
8e02788
    Build-Depends:
8e02788
      fail == 4.9.*
8e02788
8e02788
8e02788
test-suite splices
8e02788
  type:             exitcode-stdio-1.0
8e02788
  hs-source-dirs:   tests
8e02788
  main-is:          Splices.hs
8e02788
8e02788
  build-depends:
8e02788
    base,
8e02788
    haskell-src-exts,
8e02788
    haskell-src-meta,
8e02788
    template-haskell
8e02788
8e02788
test-suite examples
8e02788
  type:             exitcode-stdio-1.0
8e02788
  hs-source-dirs:   examples, tests
8e02788
  main-is:          TestExamples.hs
8e02788
8e02788
  build-depends:
8e02788
    base,
8e02788
    containers,
8e02788
    haskell-src-meta,
8e02788
    pretty,
8e02788
    syb,
8e02788
    template-haskell
8e02788
8e02788
  -- this is needed to access Control.Monad.Fail on GHCs before 8.0
8e02788
  if !impl(ghc >= 8.0)
8e02788
    Build-Depends:
8e02788
      fail == 4.9.*
8e02788
8e02788
8e02788
  other-modules:
8e02788
    BF,
8e02788
    Hs,
8e02788
    HsHere,
8e02788
    SKI
8e02788
8e02788
source-repository head
8e02788
  type:     git
8e02788
  location: git://github.com/danburton/haskell-src-meta.git