name:                 log-utils
version:              0.2.2
synopsis:             Utils for working with logs
description:          Two utilities for working with logs:
                      log-server and log-fetcher.
homepage:             https://github.com/scrive/log-utils
license:              BSD3
license-file:         LICENSE
author:               Scrive AB
maintainer:           Andrzej Rybczak <andrzej@scrive.com>
copyright:            Scrive AB
category:             Data
build-type:           Simple
cabal-version:        >=1.10
tested-with:          GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
extra-source-files:   CHANGELOG.md,
                      README.md

source-repository head
  type:     git
  location: https://github.com/scrive/log-utils.git

executable log-server
  hs-source-dirs:     inc log-server
  ghc-options:        -Wall -O2 -funbox-strict-fields -threaded
  main-is:            LogServer.hs
  other-modules:      Handlers
                      LogServerConf
                      SQL

  build-depends:        base >= 4.6 && < 5
                      , aeson >= 0.7
                      , bytestring
                      , data-default
                      , exceptions >= 0.6
                      , hpqtypes >= 1.5
                      , http-types
                      , invariant
                      , kontra-config
                      , lifted-base
                      , log >= 0.5.4
                      , monad-control
                      , random
                      , text
                      , transformers-base
                      , unjson
                      , vector
                      , wai
                      , warp

  default-language:   Haskell2010

  default-extensions: DataKinds,
                      DeriveDataTypeable,
                      FlexibleContexts,
                      LambdaCase,
                      NoImplicitPrelude,
                      OverloadedStrings,
                      RankNTypes,
                      RecordWildCards,
                      ScopedTypeVariables,
                      TypeOperators

executable log-fetcher
  hs-source-dirs:     inc log-fetcher
  ghc-options:        -Wall -O2 -funbox-strict-fields -threaded
  main-is:            LogFetcher.hs
  other-modules:      SQL

  build-depends:        base >= 4.6 && < 5
                      , aeson >= 0.7
                      , bytestring
                      , cmdargs
                      , data-default
                      , exceptions >= 0.6
                      , hpqtypes >= 1.5
                      , invariant
                      , lifted-base
                      , log >= 0.4
                      , monad-control
                      , random
                      , text
                      , time >= 1.5
                      , transformers
                      , transformers-base
                      , unjson

  default-language:   Haskell2010

  default-extensions: DataKinds,
                      DeriveDataTypeable,
                      FlexibleContexts,
                      LambdaCase,
                      NoImplicitPrelude,
                      OverloadedStrings,
                      RankNTypes,
                      RecordWildCards,
                      ScopedTypeVariables,
                      TypeOperators