packages feed

binrep-0.3.0: binrep.cabal

cabal-version: 1.12

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

name:           binrep
version:        0.3.0
synopsis:       Encode precise binary representations directly in types
description:    Please see README.md.
category:       Data, Serialization
homepage:       https://github.com/raehik/binrep#readme
bug-reports:    https://github.com/raehik/binrep/issues
author:         Ben Orchard
maintainer:     Ben Orchard <thefirstmuffinman@gmail.com>
license:        MIT
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC ==9.2.4
extra-source-files:
    README.md
    CHANGELOG.md

source-repository head
  type: git
  location: https://github.com/raehik/binrep

flag icu
  description: use text-icu package (requires ICU library)
  manual: True
  default: True

library
  exposed-modules:
      Binrep
      Binrep.BLen
      Binrep.BLen.Internal.AsBLen
      Binrep.Example
      Binrep.Example.FileTable
      Binrep.Example.Tar
      Binrep.Example.Tiff
      Binrep.Example.Wav
      Binrep.Extra.HexByteString
      Binrep.Generic
      Binrep.Generic.BLen
      Binrep.Generic.CBLen
      Binrep.Generic.Get
      Binrep.Generic.Internal
      Binrep.Generic.Put
      Binrep.Get
      Binrep.Put
      Binrep.Type.AsciiNat
      Binrep.Type.Byte
      Binrep.Type.ByteString
      Binrep.Type.Common
      Binrep.Type.Int
      Binrep.Type.LenPfx
      Binrep.Type.Magic
      Binrep.Type.Magic.UTF8
      Binrep.Type.NullPadded
      Binrep.Type.Sized
      Binrep.Type.Text
      Binrep.Type.Varint
      Binrep.Type.Vector
      Binrep.Util
      Data.Aeson.Extra.SizedVector
      Haskpatch.Format.Bps
      Haskpatch.Format.Vcdiff
      Util.Generic
  other-modules:
      Paths_binrep
  hs-source-dirs:
      src
  default-extensions:
      EmptyCase
      LambdaCase
      InstanceSigs
      BangPatterns
      ExplicitNamespaces
      DerivingStrategies
      DerivingVia
      StandaloneDeriving
      DeriveAnyClass
      DeriveGeneric
      DeriveDataTypeable
      DeriveFunctor
      DeriveFoldable
      DeriveTraversable
      DeriveLift
      FlexibleContexts
      FlexibleInstances
      MultiParamTypeClasses
      GADTs
      PolyKinds
      RoleAnnotations
      RankNTypes
      TypeApplications
      DefaultSignatures
      TypeFamilies
      DataKinds
      MagicHash
      ImportQualifiedPost
      StandaloneKindSignatures
      BinaryLiterals
      ScopedTypeVariables
      TypeOperators
  ghc-options: -Wall
  build-depends:
      aeson ==2.0.*
    , base >=4.14 && <5
    , bytestring ==0.11.*
    , either >=5.0.1.1 && <5.1
    , flatparse >=0.3.5.0 && <0.4
    , mason >=0.2.5 && <0.3
    , megaparsec >=9.2.0 && <9.3
    , refined ==0.7.*
    , strongweak >=0.3.1 && <0.4
    , text >=1.2 && <2.1
    , vector >=0.12.3.1 && <0.13
    , vector-sized >=1.5.0 && <1.6
  if flag(icu)
    cpp-options: -DHAVE_ICU
    build-depends:
        text-icu >=0.8.0.1 && <0.9
  default-language: Haskell2010

test-suite spec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      ArbitraryOrphans
      Binrep.Extra.HexByteStringSpec
      Binrep.LawsSpec
      Paths_binrep
  hs-source-dirs:
      test
  default-extensions:
      EmptyCase
      LambdaCase
      InstanceSigs
      BangPatterns
      ExplicitNamespaces
      DerivingStrategies
      DerivingVia
      StandaloneDeriving
      DeriveAnyClass
      DeriveGeneric
      DeriveDataTypeable
      DeriveFunctor
      DeriveFoldable
      DeriveTraversable
      DeriveLift
      FlexibleContexts
      FlexibleInstances
      MultiParamTypeClasses
      GADTs
      PolyKinds
      RoleAnnotations
      RankNTypes
      TypeApplications
      DefaultSignatures
      TypeFamilies
      DataKinds
      MagicHash
      ImportQualifiedPost
      StandaloneKindSignatures
      BinaryLiterals
      ScopedTypeVariables
      TypeOperators
  ghc-options: -Wall
  build-tool-depends:
      hspec-discover:hspec-discover >=2.7 && <2.10
  build-depends:
      QuickCheck >=2.14.2 && <2.15
    , aeson ==2.0.*
    , base >=4.14 && <5
    , binrep
    , bytestring ==0.11.*
    , either >=5.0.1.1 && <5.1
    , flatparse >=0.3.5.0 && <0.4
    , generic-random >=1.5.0.1 && <1.6
    , hspec >=2.7 && <2.10
    , mason >=0.2.5 && <0.3
    , megaparsec >=9.2.0 && <9.3
    , quickcheck-instances >=0.3.26 && <0.4
    , refined ==0.7.*
    , strongweak >=0.3.1 && <0.4
    , text >=1.2 && <2.1
    , vector >=0.12.3.1 && <0.13
    , vector-sized >=1.5.0 && <1.6
  if flag(icu)
    cpp-options: -DHAVE_ICU
    build-depends:
        text-icu >=0.8.0.1 && <0.9
  default-language: Haskell2010