packages feed

homplexity-0.4.8.0: homplexity.cabal

cabal-version: 1.12

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

name:           homplexity
version:        0.4.8.0
synopsis:       Haskell code quality tool
description:    Homplexity aims to measure code complexity,
                warning about fragments that might have higher defect probability
                due to bad coding style on-the-large:
                .
                * too large functions
                .
                * too deeply nested conditions
                .
                * too few comments
category:       Language, Tools
homepage:       https://gitlab.com/migamake/homplexity
bug-reports:    https://gitlab.com/migamake/homplexity/issues
author:         Michal J. Gajda
maintainer:     mjgajda@migamake.com
copyright:      Copyright by Michal J. Gajda and contributors '2015-'2020 https://gitlab.com/migamake/homplexity/-/graphs/master
license:        BSD3
license-file:   LICENSE
tested-with:    GHC==8.4.4 GHC==8.6.5 GHC==8.8.2
build-type:     Simple
extra-source-files:
    README.md
    changelog.md

source-repository head
  type: git
  location: https://gitlab.com/migamake/homplexity.git

flag html
  description: Enable HTML output via blaze-html
  manual: False
  default: True

flag static
  description: Build static binary
  manual: True
  default: False

library
  exposed-modules:
      Language.Haskell.Homplexity.Assessment
      Language.Haskell.Homplexity.CabalFiles
      Language.Haskell.Homplexity.CodeFragment
      Language.Haskell.Homplexity.Comments
      Language.Haskell.Homplexity.Cyclomatic
      Language.Haskell.Homplexity.Message
      Language.Haskell.Homplexity.Metric
      Language.Haskell.Homplexity.Parse
      Language.Haskell.Homplexity.SrcSlice
      Language.Haskell.Homplexity.RecordFieldsCount
      Language.Haskell.Homplexity.TypeClassComplexity
      Language.Haskell.Homplexity.TypeComplexity
      Language.Haskell.Homplexity.Utilities
  other-modules:
      Paths_homplexity
  hs-source-dirs:
      lib
  other-extensions: BangPatterns DeriveDataTypeable FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving IncoherentInstances MultiParamTypeClasses OverlappingInstances RecordWildCards ScopedTypeVariables StandaloneDeriving TemplateHaskell TypeFamilies TypeSynonymInstances UndecidableInstances ViewPatterns
  build-depends:
      base >=4.5 && <4.16
    , bytestring
    , containers >=0.3 && <0.7
    , cpphs >=1.5 && <1.21
    , deepseq >=1.3 && <1.7
    , directory >=1.1 && <1.4
    , filepath >=1.2 && <1.5
    , haskell-src-exts >=1.20 && <1.24
    , hflags >=0.3 && <0.5
    , template-haskell >=2.6 && <2.18
    , uniplate >=1.4 && <1.7
  if flag(static)
    ghc-options: -fPIC
    ld-options: -static
  if impl(ghc >=8.8.1)
    build-depends:
        Cabal >=3.0.0.0
  else
    build-depends:
        Cabal >=2.2.0.0
  if flag(html)
    cpp-options: -DHTML_OUTPUT
    build-depends:
        blaze-html >=0.9 && <1
      , blaze-markup >=0.8 && <0.9
  default-language: Haskell2010

executable homplexity-cli
  main-is: Homplexity.hs
  other-modules:
      Paths_homplexity
  hs-source-dirs:
      app/
  build-depends:
      base >=4.5 && <4.16
    , containers >=0.3 && <0.7
    , cpphs >=1.5 && <1.21
    , deepseq >=1.3 && <1.7
    , directory >=1.1 && <1.4
    , filepath >=1.2 && <1.5
    , githash >=0.1.2.0 && <1.0
    , haskell-src-exts >=1.20 && <1.24
    , hflags >=0.3 && <0.5
    , homplexity
    , template-haskell >=2.6 && <2.18
    , uniplate >=1.4 && <1.7
  if flag(static)
    ghc-options: -fPIC
    ld-options: -static
  if flag(html)
    cpp-options: -DHTML_OUTPUT
    build-depends:
        blaze-html >=0.9 && <1
      , bytestring >=0.10 && <0.11
  default-language: Haskell2010

test-suite homplexity-tests
  type: exitcode-stdio-1.0
  main-is: Tests.hs
  other-modules:
      Test.Metrics.TypeClassComplexitySpec
      Test.Parse.CommentsSpec
      Test.Parse.ExtensionsSpec
      Test.Utilities
      Test.Utils
      Paths_homplexity
  hs-source-dirs:
      tests
  ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.5 && <4.16
    , filepath >=1.2 && <1.5
    , haskell-src-exts >=1.20 && <1.24
    , homplexity
    , template-haskell >=2.6 && <2.18
  if flag(static)
    ghc-options: -fPIC
    ld-options: -static
  if impl(ghc >=8.8.0)
    build-depends:
        hspec >=2.7.0
  else
    build-depends:
        hspec <2.6.0
  default-language: Haskell2010