packages feed

hora-2.2.1: hora.cabal

name:                hora
version:             2.2.1
build-type:          Simple
cabal-version:       >=1.10

synopsis:            date time
description:         convenient type, timestamp, timezone, format
author:              Imants Cekusins
maintainer:          Imants Cekusins
category:            System, Time
license:             PublicDomain
license-file:        PublicDomain

extra-source-files:  changelog.md, README.md, 
                test/TimeSeriesData/ChileContinental,
                test/TimeSeriesData/ROC
                

homepage:            https://github.com/ciez/hora
source-repository   head
   type: git
   location: https://github.com/ciez/hora.git

flag legacy_libc
   description: set this flag to True if you see this error message :
         cbits-unix/init.c:3:10: error:
         fatal error: sys/random.h: No such file or directory
              3 | #include <sys/random.h>
                |          ^~~~~~~~~

         how to set this flag to true:
            in cabal.project or cabal.project.local
               add this line (0 indent):
                   constraints: hora +legacy_libc
   default: False
   manual: True


library
  exposed-modules:
          Data.Time.Hora.Span
          Data.Time.Hora.Future
          Data.Time.Hora.Stamp
          Data.Time.Hora.Part
          Data.Time.Hora.Format
          Data.Time.Hora.Type
          Data.Time.Hora.Zone
          Data.Time.Hora.Some

  other-modules:
          Data.Time.Hora.Internal.DatePartSmall
          Data.Time.Hora.Internal.FromIntegral
          Data.Time.Hora.Internal.Pad
          Data.Time.Hora.Internal.Span

  ghc-options:  -fwarn-unused-imports

  build-depends:       base >=4.7 && <5.0,
                       time,
                       timezone-series,
                       binary


  hs-source-dirs:      src
  default-language:    Haskell2010
  default-extensions:   FlexibleInstances
                        MultiParamTypeClasses
                        TypeSynonymInstances
                        BangPatterns
                        InstanceSigs
                        OverloadedStrings
                        FunctionalDependencies
                        StandaloneDeriving
                        ScopedTypeVariables
                        ConstraintKinds
                        GeneralizedNewtypeDeriving
                        RecordWildCards
                        DeriveGeneric
                        DeriveFunctor
                        MultiWayIf


test-suite spec
  default-language:     Haskell2010
  type: exitcode-stdio-1.0
  ghc-options:  -fwarn-unused-imports
  hs-source-dirs: test, src
  default-extensions:   FlexibleInstances
                        MultiParamTypeClasses
                        TypeSynonymInstances
                        BangPatterns
                        InstanceSigs
                        OverloadedStrings
                        FunctionalDependencies
                        StandaloneDeriving
                        ScopedTypeVariables
                        ConstraintKinds
                        GeneralizedNewtypeDeriving
                        RecordWildCards
                        DeriveGeneric
                        DeriveFunctor
                        MultiWayIf

  main-is: Main.hs
  other-modules:
           Data.Time.Hora.Format
           Data.Time.Hora.Future
           Data.Time.Hora.Internal.DatePartSmall
           Data.Time.Hora.Internal.FromIntegral
           Data.Time.Hora.Internal.Pad
           Data.Time.Hora.Internal.Span
           Data.Time.Hora.Part
           Data.Time.Hora.Some
           Data.Time.Hora.Span
           Data.Time.Hora.Stamp
           Data.Time.Hora.Type
           Data.Time.Hora.Zone
           Test.TestAncientDate
           Test.TestCheckOverflow
           Test.TestConvert
           Test.TestDatePart
           Test.TestDatePartSmall
           Test.TestDatePartSmallConvert
           Test.TestDatePartSmallDoc
           Test.TestDiffTime
           Test.TestDmyHm
           Test.TestFormat
           Test.TestFuture
           Test.TestPico
           Test.TestPico2
           Test.TestRoundtripPicoMilli
           Test.TestSome
           Test.TestStamp
           Test.TestStorageSize
           Test.TestTime
           Test.TestUTCTimeBin
           Test.TestUtc
           Test.TestZone

  build-depends:  base >=4.7 && <5.0,
                  hspec >= 2.1.7,
                  QuickCheck >= 2.8.1,
                  time,
                  timezone-series,
                  timezone-olson,
                  binary,
                  bytestring

  if flag(legacy_libc)
      build-depends: splitmix <= 0.1.1.0