packages feed

hs-di-0.3.0: hs-di.cabal

name:                hs-di
version:             0.3.0
synopsis:            Dependency Injection library for Haskell
description:         Dependency Injection library for Haskell to allow powerful unit testing and mocking (compile-time type-checked)
homepage:            https://github.com/Wizek/hs-di#readme
license:             BSD3
license-file:        LICENSE
author:              Milan Nagy
maintainer:          123.wizek@gmail.com
copyright:           2016 Milan Nagy
category:            Testing, Control, Development, Dependency Injection, Template Haskell
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10

library
  hs-source-dirs:      src, .
  other-modules:
    Common
  exposed-modules:
    DependencyInjector
    DI
  build-depends:
    base >= 4.7 && < 5
    , template-haskell
    , compose-ltr
    , haskell-src-meta
    , containers
  default-language:    Haskell2010
  -- default-extensions:
  --   TemplateHaskell
  --   QuasiQuotes

  ghc-options:
    -- -fdefer-type-errors

executable hs-di-cases
  -- type:                exitcode-stdio-1.0
  main-is:             Main.hs
  hs-source-dirs:      src, ., test, app
  build-depends:
    base >= 4.7 && < 5
    , template-haskell
    , compose-ltr
    , haskell-src-meta
    , containers
    , time
    -- , hs-di
  default-language:    Haskell2010
  default-extensions:
    TemplateHaskell
    QuasiQuotes
  ghc-options:
    -- -ddump-splices
    -- -ddump-to-file
    -- -fdefer-type-errors

test-suite hs-di-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test, .
  other-modules:
    Common
    Assert
    Gradual
    MainSpec
    SpecCommon
    SimpleDefs
    GradualSpec
    NotSoEasyToTestCode
    DefsToTestModuleSupport
    DefsToTestIdiomaticModuleSupport
  main-is:             Spec.hs
  build-depends:
    base
    , hs-di
    , hspec
    , HUnit
    , hspec-core
    , hspec-expectations
    , QuickCheck
    , template-haskell
    , time
    , MissingH
    , compose-ltr
    , neat-interpolation
    , text
    , deepseq
    , haskell-src-meta
    , ghcid
    , foreign-store
    , interpolatedstring-perl6
    , interpolate
    , regex-tdfa
  ghc-options:
    -threaded
    -rtsopts
    -with-rtsopts=-N
    -O0

    -- TODO:
    -- 'ghc-options: -fdefer-type-errors' is fine during development but is not
    -- appropriate for a distributed package. Alternatively, if you want to use this,
    -- make it conditional based on a Cabal configuration flag (with 'manual: True'
    -- and 'default: False') and enable that flag during development.
    -- -fdefer-type-errors
    -- -ddump-splices
    -- -ddump-to-file

    -- -fforce-recomp
  default-language:    Haskell2010
  default-extensions:
    TemplateHaskell
    QuasiQuotes
    LambdaCase
    ViewPatterns
    ScopedTypeVariables

source-repository head
  type:     git
  location: https://github.com/Wizek/hs-di