name: serialise version: 0.2.0.0 x-revision: 1 synopsis: A binary serialisation library for Haskell values. description: This package (formerly @binary-serialise-cbor@) provides pure, efficient serialization of Haskell values directly into @ByteString@s for storage or transmission purposes. By providing a set of type class instances, you can also serialise any custom data type you have as well. . The underlying binary format used is the 'Concise Binary Object Representation', or CBOR, specified in RFC 7049. As a result, serialised Haskell values have implicit structure outside of the Haskell program itself, meaning they can be inspected or analyzed with custom tools. . An implementation of the standard bijection between CBOR and JSON is provided by the [cborg-json](/package/cborg-json) package. Also see [cbor-tool](/package/cbor-tool) for a convenient command-line utility for working with CBOR data. homepage: https://github.com/well-typed/cborg license: BSD3 license-file: LICENSE.txt author: Duncan Coutts maintainer: duncan@community.haskell.org, ben@smart-cactus.org bug-reports: https://github.com/well-typed/cborg/issues copyright: 2015-2017 Duncan Coutts, 2015-2017 Well-Typed LLP, 2015 IRIS Connect Ltd cabal-version: >=1.10 category: Codec build-type: Simple extra-source-files: tests/test-vectors/appendix_a.json tests/test-vectors/README.md ChangeLog.md source-repository head type: git location: https://github.com/well-typed/cborg.git -------------------------------------------------------------------------------- -- Flags flag newtime15 default: True manual: False description: Use the new time 1.5 library library default-language: Haskell2010 ghc-options: -Wall hs-source-dirs: src exposed-modules: Codec.Serialise Codec.Serialise.Class Codec.Serialise.Decoding Codec.Serialise.Encoding Codec.Serialise.IO Codec.Serialise.Properties Codec.Serialise.Tutorial Codec.Serialise.Internal.GeneralisedUTF8 build-depends: array >= 0.4 && < 0.6, base >= 4.6 && < 5.0, bytestring >= 0.10.4 && < 0.11, cborg == 0.2.*, containers >= 0.5 && < 0.6, ghc-prim >= 0.3 && < 0.6, half >= 0.2.2.3 && < 0.4, hashable >= 1.2 && < 2.0, primitive >= 0.5 && < 0.7, text >= 1.1 && < 1.3, unordered-containers >= 0.2 && < 0.3, vector >= 0.10 && < 0.13 if flag(newtime15) build-depends: time >= 1.5 && < 1.9 else build-depends: time >= 1.4 && < 1.5, old-locale if impl(ghc >= 8.0) ghc-options: -Wcompat -Wnoncanonical-monad-instances -Wnoncanonical-monadfail-instances -------------------------------------------------------------------------------- -- Tests test-suite tests type: exitcode-stdio-1.0 hs-source-dirs: tests main-is: Main.hs default-language: Haskell2010 ghc-options: -Wall -fno-warn-orphans -threaded -rtsopts "-with-rtsopts=-N" other-modules: Tests.CBOR Tests.IO Tests.Negative Tests.Orphanage Tests.Serialise Tests.Serialise.Canonical Tests.Regress Tests.Regress.Issue13 Tests.Regress.Issue67 Tests.Regress.Issue80 Tests.Regress.Issue106 Tests.Regress.Issue135 Tests.Regress.FlatTerm Tests.Reference Tests.Reference.Implementation Tests.Deriving Tests.GeneralisedUTF8 build-depends: array >= 0.4 && < 0.6, base >= 4.6 && < 5.0, binary >= 0.7 && < 0.10, bytestring >= 0.10.4 && < 0.11, directory >= 1.0 && < 1.4, filepath >= 1.0 && < 1.5, ghc-prim >= 0.3 && < 0.6, text >= 1.1 && < 1.3, time >= 1.4 && < 1.9, containers >= 0.5 && < 0.6, unordered-containers >= 0.2 && < 0.3, hashable >= 1.2 && < 2.0, primitive >= 0.5 && < 0.7, cborg, serialise, aeson >= 0.7 && < 1.3, base64-bytestring >= 1.0 && < 1.1, base16-bytestring >= 0.1 && < 0.2, deepseq >= 1.0 && < 1.5, half >= 0.2.2.3 && < 0.4, QuickCheck >= 2.9 && < 2.11, scientific >= 0.3 && < 0.4, tasty >= 0.11 && < 0.13, tasty-hunit >= 0.9 && < 0.10, tasty-quickcheck >= 0.8 && < 0.10, quickcheck-instances >= 0.3.12 && < 0.4, vector >= 0.10 && < 0.13 -------------------------------------------------------------------------------- -- Benchmarks benchmark instances type: exitcode-stdio-1.0 hs-source-dirs: bench/instances main-is: Main.hs default-language: Haskell2010 ghc-options: -Wall -rtsopts -fno-cse -fno-ignore-asserts -fno-warn-orphans other-modules: Instances.Integer Instances.Vector Instances.Time build-depends: base >= 4.6 && < 5.0, binary >= 0.7 && < 0.10, bytestring >= 0.10.4 && < 0.11, vector >= 0.10 && < 0.13, cborg, serialise, deepseq >= 1.0 && < 1.5, criterion >= 1.0 && < 1.3 if flag(newtime15) build-depends: time >= 1.5 && < 1.9 else build-depends: time >= 1.4 && < 1.5, old-locale benchmark micro type: exitcode-stdio-1.0 hs-source-dirs: bench/micro main-is: Main.hs default-language: Haskell2010 ghc-options: -Wall -rtsopts -fno-cse -fno-ignore-asserts -fno-warn-orphans other-modules: Micro Micro.Types Micro.Load Micro.DeepSeq Micro.MemSize Micro.ReadShow Micro.PkgAesonGeneric Micro.PkgAesonTH Micro.PkgBinary Micro.PkgCereal Micro.PkgStore Micro.CBOR SimpleVersus build-depends: base >= 4.6 && < 5.0, binary >= 0.7 && < 0.10, bytestring >= 0.10.4 && < 0.11, ghc-prim >= 0.3 && < 0.6, vector >= 0.10 && < 0.13, cborg, serialise, aeson >= 0.7 && < 1.3, deepseq >= 1.0 && < 1.5, criterion >= 1.0 && < 1.3, cereal >= 0.5.2.0 && < 0.6, cereal-vector >= 0.2 && < 0.3, store >= 0.4 && < 0.5 benchmark versus type: exitcode-stdio-1.0 hs-source-dirs: bench/versus main-is: Main.hs default-language: Haskell2010 ghc-options: -Wall -rtsopts -fno-cse -fno-ignore-asserts -fno-warn-orphans other-modules: Utils -- Suite #1 Mini -- Suite #2 Macro Macro.Types Macro.Load Macro.DeepSeq Macro.MemSize Macro.ReadShow Macro.PkgAesonGeneric Macro.PkgAesonTH Macro.PkgBinary Macro.PkgCereal Macro.PkgStore Macro.CBOR build-depends: array >= 0.4 && < 0.6, base >= 4.6 && < 5.0, binary >= 0.7 && < 0.10, bytestring >= 0.10.4 && < 0.11, directory >= 1.0 && < 1.4, ghc-prim >= 0.3 && < 0.6, text >= 1.1 && < 1.3, vector >= 0.10 && < 0.13, cborg, serialise, filepath >= 1.0 && < 1.5, containers >= 0.5 && < 0.6, deepseq >= 1.0 && < 1.5, aeson >= 0.7 && < 1.3, cereal >= 0.5.2.0 && < 0.6, half >= 0.2.2.3 && < 0.4, tar >= 0.4 && < 0.6, zlib >= 0.5 && < 0.7, pretty >= 1.0 && < 1.2, criterion >= 1.0 && < 1.3, store >= 0.4 && < 0.5 if flag(newtime15) build-depends: time >= 1.5 && < 1.9 else build-depends: time >= 1.4 && < 1.5, old-locale