packages feed

CBOR 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+29/−12 lines, 3 filesdep +CBORdep ~binary

Dependencies added: CBOR

Dependency ranges changed: binary

Files

CBOR.cabal view
@@ -1,5 +1,5 @@ name:                CBOR-version:             0.1.0.0+version:             0.1.0.1 synopsis:            Encode/Decode values to/from CBOR description:         Provides a simple type to represent CBOR values as well                       as instances of the Get and Put classes from the binary @@ -17,12 +17,14 @@ cabal-version:       >=1.10  library-  exposed-modules:   Data.CBOR, Data.Binary.CBOR-  other-modules:     Data.CBOR.Util+  exposed-modules:     Data.CBOR+                     , Data.Binary.CBOR+  other-modules:       Data.CBOR.Util+                     , Data.Binary.IEEE754.HalfFloat   ghc-options:       -Wall -O2   build-depends:       base >=4.6 && < 5                      , bytestring >= 0.10-                     , binary >= 0.7+                     , binary >= 0.6                      , binary-bits >= 0.3                      , data-binary-ieee754 >= 0.4                        @@ -31,12 +33,14 @@  test-suite tests   type:              exitcode-stdio-1.0-  hs-source-dirs:    test, src+  hs-source-dirs:    test   main-is:           Suite.hs   default-language:    Haskell2010+  ghc-options:       -fhpc   build-depends:       base >= 4.6 && < 5                      , bytestring >= 0.10-                     , binary >= 0.7+                     , CBOR+                     , binary >= 0.6                      , binary-bits >= 0.3                      , data-binary-ieee754 >= 0.4                      , test-framework >= 0.3.3@@ -45,14 +49,11 @@  test-suite doctests   type:              exitcode-stdio-1.0-  hs-source-dirs:    test, src+  hs-source-dirs:    test   main-is:           doctests.hs   default-language:    Haskell2010+  ghc-options:       -fhpc   build-depends:       base >= 4.6 && < 5-                     , bytestring >= 0.10-                     , binary >= 0.7-                     , binary-bits >= 0.3-                     , data-binary-ieee754 >= 0.4                      , doctest >= 0.9  source-repository head
README.md view
@@ -1,6 +1,7 @@ CBOR ====+[![Hackage Version](http://img.shields.io/hackage/v/CBOR.svg)](http://hackage.haskell.org/package/CBOR) -Haskell encoder/decoder for CBOR encoding.+Haskell encoder/decoder for CBOR encoding. Now on Hackage.  See http://tools.ietf.org/html/rfc7049 for details.
+ src/Data/Binary/IEEE754/HalfFloat.hs view
@@ -0,0 +1,15 @@+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+-- | Provides Get and Put instances for the opaque HalfFloat type.+module Data.Binary.IEEE754.HalfFloat where++import Data.CBOR+import Data.Binary+import Data.Binary.Get+import Data.Binary.Put+import Control.Applicative++putFloat16be :: HalfFloat -> Put+putFloat16be (HF x) = putWord16be x++getFloat16be :: Get HalfFloat+getFloat16be = HF <$> getWord16be