packages feed

derive-topdown-0.1.0.0: derive-topdown.cabal

cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack

name:           derive-topdown
version:        0.1.0.0
synopsis:       Derive type class instances
description:    This package will make it easier to derive class instance for complex composited data types by using Template Haskell.
category:       Development
homepage:       https://github.com/HaskellZhangSong/derive-topdown#readme
bug-reports:    https://github.com/HaskellZhangSong/derive-topdown/issues
author:         Song Zhang
maintainer:     Song Zhang <Haskell.Zhang.Song@hotmail.com>
copyright:      (c) 2024 Song Zhang
license:        BSD3
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC == 8.2.2 , GHC == 8.4.4 , GHC == 8.6.5 , GHC == 8.8.4 , GHC == 8.10.7 , GHC == 9.0.2 , GHC == 9.2.8 , GHC == 9.4.8 , GHC == 9.6.5 , GHC == 9.8.2 , GHC == 9.10.1
extra-source-files:
    README.md
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/HaskellZhangSong/derive-topdown

library
  exposed-modules:
      Data.Derive.Superclass
      Data.Derive.TopDown.IsInstance
      Data.Derive.TopDown.Instance
      Data.Derive.TopDown.CxtGen
      Data.Derive.TopDown.Standalone
      Data.Derive.TopDown.TH
      Data.Derive.TopDown
  other-modules:
      Data.Derive.TopDown.Lib
  hs-source-dirs:
      src
  default-extensions:
      TemplateHaskell , StandaloneDeriving , CPP
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
  build-depends:
      base >=4.8 && <5
    , containers
    , mtl
    , primitive
    , syb
    , template-haskell
    , th-abstraction
    , th-expand-syns
    , transformers
  default-language: Haskell2010

test-suite derive-topdown-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Arity
      Derive
      Generic
      Instance
      Template
      Types
      Utils
      Paths_derive_topdown
  hs-source-dirs:
      test
  ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
  build-depends:
      HUnit
    , base >=4.8 && <5
    , binary
    , containers
    , derive-topdown
    , haskell-src
    , mtl
    , primitive
    , syb
    , template-haskell
    , th-abstraction
    , th-expand-syns
    , transformers
  default-language: Haskell2010
  if impl(ghc >= 8.6.1)
    ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wno-missing-signatures -Wno-unticked-promoted-constructors -Wno-orphans -Wno-missing-export-lists -Wno-star-is-type
  else
    ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wno-missing-signatures -Wno-unticked-promoted-constructors -Wno-orphans -Wno-missing-export-lists