packages feed

binrep-0.8.0: binrep.cabal

cabal-version: 1.12

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

name:           binrep
version:        0.8.0
synopsis:       Encode precise binary representations directly in types
description:    Please see README.md.
category:       Data, Serialization, Generics
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.4.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.CBLen
      Binrep.Common.Class.TypeErrors
      Binrep.Common.Via.Generically.NonSum
      Binrep.Common.Via.Prim
      Binrep.Generic
      Binrep.Get
      Binrep.Get.Error
      Binrep.Get.Struct
      Binrep.Put
      Binrep.Put.Struct
      Binrep.Test
      Binrep.Type.Derived.NullTermPadded
      Binrep.Type.Magic
      Binrep.Type.NullPadded
      Binrep.Type.NullTerminated
      Binrep.Type.Prefix.Count
      Binrep.Type.Prefix.Size
      Binrep.Type.Sized
      Binrep.Type.Text
      Binrep.Type.Text.Encoding.Ascii
      Binrep.Type.Text.Encoding.ShiftJis
      Binrep.Type.Text.Encoding.Utf16
      Binrep.Type.Text.Encoding.Utf32
      Binrep.Type.Text.Encoding.Utf8
      Binrep.Type.Text.Internal
      Binrep.Type.Thin
      Binrep.Util
      Binrep.Util.ByteOrder
      Binrep.Util.Generic
      Binrep.Util.Prefix
      Raehik.Compat.FlatParse.Basic.Prim
      Raehik.Compat.FlatParse.Basic.WithLength
      Util.TypeNats
  other-modules:
      Paths_binrep
  hs-source-dirs:
      src
  default-extensions:
      LambdaCase
      NoStarIsType
      DerivingVia
      DeriveAnyClass
      GADTs
      RoleAnnotations
      DefaultSignatures
      TypeFamilies
      DataKinds
      MagicHash
  ghc-options: -Wall
  build-depends:
      base >=4.14 && <5
    , bytestring >=0.11 && <0.13
    , bytezap >=1.2.0 && <1.3
    , deepseq >=1.4.6.1 && <1.6
    , defun-core ==0.1.*
    , flatparse >=0.5.0.2 && <0.6
    , generic-data-functions >=0.5.0 && <0.6
    , generic-type-asserts >=0.3.0 && <0.4
    , generic-type-functions >=0.1.0 && <0.2
    , parser-combinators >=1.3.0 && <1.4
    , refined1 ==0.9.*
    , strongweak >=0.6.0 && <0.7
    , text >=1.2.5.0 && <2.1
    , type-level-bytestrings >=0.1.0 && <0.2
  default-language: GHC2021
  if flag(icu)
    cpp-options: -DHAVE_ICU
    build-depends:
        text-icu >=0.7.0.0 && <0.9

test-suite spec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      ArbitraryOrphans
      Binrep.LawsSpec
      Paths_binrep
  hs-source-dirs:
      test
  default-extensions:
      LambdaCase
      NoStarIsType
      DerivingVia
      DeriveAnyClass
      GADTs
      RoleAnnotations
      DefaultSignatures
      TypeFamilies
      DataKinds
      MagicHash
  ghc-options: -Wall
  build-tool-depends:
      hspec-discover:hspec-discover >=2.7 && <2.12
  build-depends:
      QuickCheck >=2.14.2 && <2.15
    , base >=4.14 && <5
    , binrep
    , bytestring >=0.11 && <0.13
    , bytezap >=1.2.0 && <1.3
    , deepseq >=1.4.6.1 && <1.6
    , defun-core ==0.1.*
    , flatparse >=0.5.0.2 && <0.6
    , generic-data-functions >=0.5.0 && <0.6
    , generic-random >=1.5.0.1 && <1.6
    , generic-type-asserts >=0.3.0 && <0.4
    , generic-type-functions >=0.1.0 && <0.2
    , hspec >=2.7 && <2.12
    , parser-combinators >=1.3.0 && <1.4
    , quickcheck-instances >=0.3.26 && <0.4
    , refined1 ==0.9.*
    , strongweak >=0.6.0 && <0.7
    , text >=1.2.5.0 && <2.1
    , type-level-bytestrings >=0.1.0 && <0.2
  default-language: GHC2021
  if flag(icu)
    cpp-options: -DHAVE_ICU
    build-depends:
        text-icu >=0.7.0.0 && <0.9

benchmark bench
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      Paths_binrep
  hs-source-dirs:
      bench
  default-extensions:
      LambdaCase
      NoStarIsType
      DerivingVia
      DeriveAnyClass
      GADTs
      RoleAnnotations
      DefaultSignatures
      TypeFamilies
      DataKinds
      MagicHash
  ghc-options: -Wall
  build-depends:
      base >=4.14 && <5
    , binrep
    , bytestring >=0.11 && <0.13
    , bytezap >=1.2.0 && <1.3
    , deepseq >=1.4.6.1 && <1.6
    , defun-core ==0.1.*
    , flatparse >=0.5.0.2 && <0.6
    , gauge
    , generic-data-functions >=0.5.0 && <0.6
    , generic-type-asserts >=0.3.0 && <0.4
    , generic-type-functions >=0.1.0 && <0.2
    , parser-combinators >=1.3.0 && <1.4
    , refined1 ==0.9.*
    , strongweak >=0.6.0 && <0.7
    , text >=1.2.5.0 && <2.1
    , type-level-bytestrings >=0.1.0 && <0.2
  default-language: GHC2021
  if flag(icu)
    cpp-options: -DHAVE_ICU
    build-depends:
        text-icu >=0.7.0.0 && <0.9