packages feed

arbor-monad-logger-0.1.1.1: arbor-monad-logger.cabal

cabal-version:  2.2
name:           arbor-monad-logger
version:        0.1.1.1
description:    Please see the README on GitHub at <https://github.com/packetloop/arbor-monad-logger#readme>
homepage:       https://github.com/packetloop/arbor-monad-logger#readme
bug-reports:    https://github.com/packetloop/arbor-monad-logger/issues
author:         Arbor Networks
maintainer:     mayhem@arbor.net
copyright:      2018-2019 Arbor Networks
license:        MIT
license-file:   LICENSE
build-type:     Simple
synopsis:       Simple logging library
category:       Logging
extra-source-files:
    ChangeLog.md
    README.md

source-repository head
  type: git
  location: https://github.com/packetloop/arbor-monad-logger

common base                 { build-depends: base                 >= 4          && < 5      }

common bytestring           { build-depends: bytestring           >= 0.10.0.0   && < 0.11   }
common fast-logger          { build-depends: fast-logger          >= 2.4.11     && < 2.5    }
common hedgehog             { build-depends: hedgehog             >= 0.6.1      && < 0.7    }
common hspec                { build-depends: hspec                >= 2.6.1      && < 2.7    }
common hw-hspec-hedgehog    { build-depends: hw-hspec-hedgehog    >= 0.1.0.4    && < 0.2    }
common monad-logger         { build-depends: monad-logger         >= 0.3.28.5   && < 0.4    }
common mtl                  { build-depends: mtl                  >= 2.2        && < 2.3    }
common text                 { build-depends: text                 >= 1.2.3.0    && < 1.3    }
common optparse-applicative { build-depends: optparse-applicative >= 0.14       && < 0.15   }

common common
  default-language: Haskell2010

library
  import:   base, common
          , bytestring
          , fast-logger
          , monad-logger
          , optparse-applicative
          , text
  hs-source-dirs:   src
  other-modules:
  exposed-modules:
      Arbor.Monad.Logger
      Arbor.Monad.Logger.Options
      Arbor.Monad.Logger.Types

test-suite arbor-monad-logger-test
  import:   base, common
          , hedgehog
          , hspec
          , hw-hspec-hedgehog
  type:               exitcode-stdio-1.0
  main-is:            Spec.hs
  hs-source-dirs:     test
  default-extensions: BangPatterns FlexibleContexts FlexibleInstances GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings TupleSections
  ghc-options:        -threaded -rtsopts -with-rtsopts=-N
  build-depends:      arbor-monad-logger

executable arbor-monad-logger-example
  import:   base, common
          , mtl
  main-is:            Main.hs
  other-modules:      AppEnv
  hs-source-dirs:     app
  ghc-options:        -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -O2 -msse4.2 -rtsopts -threaded
  build-depends:      arbor-monad-logger