Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .hgignore

This file was deleted.

47 changes: 11 additions & 36 deletions binary.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ version: 0.8.9.2
license: BSD-3-Clause
license-file: LICENSE
author: Lennart Kolmodin <kolmodin@gmail.com>
maintainer: Lennart Kolmodin, Don Stewart <dons00@gmail.com>
homepage: https://github.com/kolmodin/binary
maintainer: konsumlamm <konsumlamm@gmail.com>
homepage: https://github.com/haskell/binary
description: Efficient, pure binary serialisation using lazy ByteStrings.
Haskell values may be encoded to and from binary formats,
written to disk as binary, or sent over the network.
Expand All @@ -38,10 +38,10 @@ extra-doc-files:

source-repository head
type: git
location: git://github.com/kolmodin/binary.git
location: https://github.com/haskell/binary.git

library
build-depends: base >= 4.5.0.0 && < 5, bytestring >= 0.10.4, containers, array
build-depends: base >= 4.9 && < 5, bytestring >= 0.10.4, containers, array
hs-source-dirs: src
exposed-modules: Data.Binary,
Data.Binary.Put,
Expand All @@ -53,9 +53,6 @@ library
Data.Binary.Internal,
Data.Binary.Generic,
Data.Binary.FloatCast
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim

ghc-options: -O2 -Wall -fliberate-case-threshold=1000

Expand All @@ -71,7 +68,7 @@ test-suite qc
Action
Arbitrary
build-depends:
base >= 4.5.0.0 && < 5,
base >= 4.9 && < 5,
base-orphans >=0.8.1 && <0.9,
binary,
bytestring >= 0.10.4,
Expand All @@ -83,18 +80,14 @@ test-suite qc
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -Wall -O2 -threaded
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010


test-suite read-write-file
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: File.hs
build-depends:
base >= 4.5.0.0 && < 5,
base >= 4.9 && < 5,
binary,
bytestring >= 0.10.4,
Cabal,
Expand All @@ -105,9 +98,6 @@ test-suite read-write-file
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -Wall
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010


Expand All @@ -118,17 +108,14 @@ benchmark throughput
other-modules:
MemBench
build-depends:
base >= 4.5.0.0 && < 5,
base >= 4.9 && < 5,
binary,
bytestring >= 0.10.4
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
c-sources: benchmarks/CBenchmark.c
include-dirs: benchmarks
ghc-options: -O2
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010

benchmark get
Expand All @@ -137,7 +124,7 @@ benchmark get
main-is: Get.hs
build-depends:
attoparsec,
base >= 4.5.0.0 && < 5,
base >= 4.9 && < 5,
binary,
bytestring >= 0.10.4,
cereal,
Expand All @@ -147,35 +134,29 @@ benchmark get
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2 -Wall
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010

benchmark put
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Put.hs
build-depends:
base >= 4.5.0.0 && < 5,
base >= 4.9 && < 5,
binary,
bytestring >= 0.10.4,
deepseq,
tasty-bench
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2 -Wall
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010

benchmark generics-bench
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: GenericsBench.hs
build-depends:
base >= 4.5.0.0 && < 5,
base >= 4.9 && < 5,
binary,
bytestring >= 0.10.4,
-- The benchmark already depended on 'generic-deriving' transitively. That's
Expand All @@ -195,17 +176,14 @@ benchmark generics-bench
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2 -Wall
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010

benchmark builder
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: Builder.hs
build-depends:
base >= 4.5.0.0 && < 5,
base >= 4.9 && < 5,
binary,
bytestring >= 0.10.4,
deepseq,
Expand All @@ -214,7 +192,4 @@ benchmark builder
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2
if impl(ghc <= 7.6)
-- prior to ghc-7.4 generics lived in ghc-prim
build-depends: ghc-prim
default-language: Haskell2010
5 changes: 1 addition & 4 deletions src/Data/Binary/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE Trustworthy #-}

#if __GLASGOW_HASKELL__ >= 706
{-# LANGUAGE PolyKinds #-}
#endif
{-# LANGUAGE Trustworthy #-}

Check warning on line 7 in src/Data/Binary/Class.hs

View workflow job for this annotation

GitHub Actions / build (8.0.2)

‘Data.Binary.Class’ is marked as Trustworthy but has been inferred as safe!

Check warning on line 7 in src/Data/Binary/Class.hs

View workflow job for this annotation

GitHub Actions / build (8.0.2)

‘Data.Binary.Class’ is marked as Trustworthy but has been inferred as safe!

#if MIN_VERSION_base(4,16,0)
#define HAS_TYPELITS_CHAR
Expand Down Expand Up @@ -827,9 +824,9 @@

#if __GLASGOW_HASKELL__ < 901
-- | @since 0.8.4.0
instance Binary a => Binary (Semigroup.Option a) where

Check warning on line 827 in src/Data/Binary/Class.hs

View workflow job for this annotation

GitHub Actions / build (9.0.2)

In the use of type constructor or class ‘Option’

Check warning on line 827 in src/Data/Binary/Class.hs

View workflow job for this annotation

GitHub Actions / build (9.0.2)

In the use of type constructor or class ‘Option’
get = fmap Semigroup.Option get

Check warning on line 828 in src/Data/Binary/Class.hs

View workflow job for this annotation

GitHub Actions / build (9.0.2)

In the use of data constructor ‘Option’

Check warning on line 828 in src/Data/Binary/Class.hs

View workflow job for this annotation

GitHub Actions / build (9.0.2)

In the use of data constructor ‘Option’
put = put . Semigroup.getOption

Check warning on line 829 in src/Data/Binary/Class.hs

View workflow job for this annotation

GitHub Actions / build (9.0.2)

In the use of ‘getOption’ (imported from Data.Semigroup):

Check warning on line 829 in src/Data/Binary/Class.hs

View workflow job for this annotation

GitHub Actions / build (9.0.2)

In the use of ‘getOption’ (imported from Data.Semigroup):
#endif

-- | @since 0.8.4.0
Expand Down
Loading