packages feed

cereal-time-0.1.0.0: cereal-time.cabal

name:                cereal-time
version:             0.1.0.0
synopsis:            Serialize instances for types from `time` package.
-- description:
license:             BSD3
license-file:        LICENSE
author:              Al Zohali
maintainer:          Al Zohali <zohl@fmap.me>
-- copyright:
category:            Data
build-type:          Simple
cabal-version:       >=1.10

extra-source-files:
  CHANGELOG.md

source-repository head
  type:     git
  location: https://github.com/zohl/cereal-time.git

flag dev
  description:        Turn on development settings.
  manual:             True
  default:            False


library
  exposed-modules:
    Data.Time.Calendar.Serialize
    Data.Time.Clock.Serialize
    Data.Time.Clock.TAI.Serialize
    Data.Time.Format.Serialize
    Data.Time.LocalTime.Serialize

  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall

  hs-source-dirs:      src
  default-language:    Haskell2010

  build-depends: base   >= 4.7  && < 5.0
               , cereal >= 0.5  && < 0.6
               , time   >= 1.5  && < 1.8.1



test-suite tests
  type:           exitcode-stdio-1.0
  main-is:        Main.hs

  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall

  hs-source-dirs: tests
  default-language:    Haskell2010

  build-depends: base           >= 4.7  && < 5.0
               , QuickCheck     >= 2.4  && < 3.0
               , cereal         >= 0.5  && < 0.6
               , cereal-time
               , hspec          >= 2.0  && < 3.0
               , time           >= 1.6  && < 1.9