hinterface 0.5.0.2 → 0.6.0.0
raw patch · 4 files changed
+57/−55 lines, 4 filesdep ~QuickCheckdep ~arraydep ~async
Dependency ranges changed: QuickCheck, array, async, binary, bytestring, containers, cryptonite, exceptions, hinterface, hspec, lifted-async, lifted-base, memory, monad-control, monad-logger, mtl, network, random, resourcet, safe-exceptions, stm, text, transformers, transformers-base, vector
Files
- README.md +1/−1
- hinterface.cabal +45/−45
- src/Util/Binary.hs +7/−0
- stack.yaml +4/−9
README.md view
@@ -1,4 +1,4 @@-[](https://travis-ci.org/LTI2000/hinterface)+[](https://travis-ci.org/lindenbaum/hinterface) # hinterface - Haskell / Erlang interoperability library
hinterface.cabal view
@@ -1,12 +1,12 @@-name: hinterface-version: 0.5.0.2 cabal-version: >=1.22-build-type: Simple+name: hinterface+version: 0.6.0.0 license: BSD3 license-file: LICENSE-copyright: 2016 Timo Koepke, Sven Heyll+copyright: 2016-2018 Timo Koepke, Sven Heyll maintainer: timo.koepke@googlemail.com, sven.heyll@gmail.com-homepage: https://github.com/LTI2000/hinterface+author: Timo Koepke, Sven Heyll+homepage: https://github.com/lindenbaum/hinterface synopsis: Haskell / Erlang interoperability library description: A library for building nodes of a distributed Erlang system in Haskell.@@ -16,7 +16,7 @@ In it's preliminary state hinterface supports of Erlangs binary terms and a subset of the distribution protocol. category: Language-author: Timo Koepke, Sven Heyll+build-type: Simple extra-source-files: README.md stack.yaml@@ -26,7 +26,7 @@ source-repository head type: git- location: https://github.com/LTI2000/hinterface.git+ location: https://github.com/lindenbaum/hinterface.git library exposed-modules:@@ -46,56 +46,56 @@ Foreign.Erlang.ControlMessage Foreign.Erlang.Mailbox Foreign.Erlang.Connection- build-depends:- QuickCheck >=2.9.2,- array >=0.5.1.1,- async >=2.1.1,- base >=4.9 && <5,- binary >=0.8.3.0,- bytestring >=0.10.8.1,- containers >=0.5.7.1,- cryptonite >=0.21,- exceptions >=0.8.3,- lifted-async >=0.9.1.1,- lifted-base >=0.2.3.10,- memory >=0.14.2,- monad-control >=1.0.1.0,- monad-logger >=0.3.21,- mtl >=2.2.1,- network >=2.6.3.1,- random >=1.1,- resourcet >=1.1.9,- safe-exceptions >=0.1.5.0,- stm >=2.4.4.1,- text >=1.2.2.1,- transformers >=0.5.2.0,- transformers-base >=0.4.4,- vector >=0.11.0.0+ hs-source-dirs: src default-language: Haskell2010 default-extensions: OverloadedStrings NamedFieldPuns FlexibleContexts- hs-source-dirs: src ghc-options: -Wall -O2 -funbox-strict-fields+ build-depends:+ QuickCheck >=2.11.3 && <2.12,+ array >=0.5.2.0 && <0.6,+ async >=2.2.1 && <2.3,+ base >=4.9 && <5,+ binary >=0.8.5.1 && <0.9,+ bytestring >=0.10.8.2 && <0.11,+ containers >=0.5.11.0 && <0.6,+ cryptonite ==0.25.*,+ exceptions >=0.10.0 && <0.11,+ lifted-async >=0.10.0.2 && <0.11,+ lifted-base >=0.2.3.12 && <0.3,+ memory >=0.14.16 && <0.15,+ monad-control >=1.0.2.3 && <1.1,+ monad-logger >=0.3.29 && <0.4,+ mtl >=2.2.2 && <2.3,+ network >=2.6.3.6 && <2.7,+ random ==1.1.*,+ resourcet >=1.2.1 && <1.3,+ safe-exceptions >=0.1.7.0 && <0.2,+ stm >=2.4.5.0 && <2.5,+ text >=1.2.3.0 && <1.3,+ transformers >=0.5.5.0 && <0.6,+ transformers-base >=0.4.5.2 && <0.5,+ vector >=0.12.0.1 && <0.13 test-suite hinterface-test type: exitcode-stdio-1.0 main-is: Spec.hs- build-depends:- QuickCheck >=2.9.2,- async >=2.1.1,- base >=4.9 && <5,- binary >=0.8.3.0,- bytestring >=0.10.8.1,- hinterface >=0.5.0.2,- hspec >=2.4.3,- monad-logger >=0.3.21,- transformers >=0.5.2.0- default-language: Haskell2010- default-extensions: OverloadedStrings NamedFieldPuns hs-source-dirs: test other-modules: Foreign.Erlang.NodeDataSpec Foreign.Erlang.HandshakeSpec Foreign.Erlang.ControlMessageSpec Foreign.Erlang.TermSpec+ default-language: Haskell2010+ default-extensions: OverloadedStrings NamedFieldPuns ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N+ build-depends:+ QuickCheck >=2.11.3 && <2.12,+ async >=2.2.1 && <2.3,+ base >=4.9 && <5,+ binary >=0.8.5.1 && <0.9,+ bytestring >=0.10.8.2 && <0.11,+ hinterface -any,+ hspec >=2.5.5 && <2.6,+ monad-logger >=0.3.29 && <0.4,+ transformers >=0.5.5.0 && <0.6
src/Util/Binary.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} module Util.Binary ( runGetA , BinaryGetError(..)@@ -36,7 +37,9 @@ import Data.Int (Int64) import Data.Word +#if !MIN_VERSION_binary(0,8,5) import Util.FloatCast+#endif import Util.IOExtra --------------------------------------------------------------------------------@@ -68,6 +71,7 @@ runPutA :: (LBS.ByteString -> m ()) -> Put -> m () runPutA = (. runPut) +#if !MIN_VERSION_binary(0,8,5) -------------------------------------------------------------------------------- ------------------------------------------------------------------------ -- Floats/Doubles@@ -106,6 +110,7 @@ putDoublehost = putWord64host . doubleToWord {-# INLINE putDoublehost #-}+#endif -------------------------------------------------------------------------------- putLength16beByteString :: BS.ByteString -> Put@@ -141,6 +146,7 @@ getChar8 :: Get Char getChar8 = (chr . fromIntegral) <$> getWord8 +#if !MIN_VERSION_binary(0,8,5) ------------------------------------------------------------------------ -- Double/Float reads -- | Read a 'Float' in big endian IEEE-754 format.@@ -178,6 +184,7 @@ getDoublehost = wordToDouble <$> getWord64host {-# INLINE getDoublehost #-}+#endif -------------------------------------------------------------------------------- getLength8ByteString :: Get BS.ByteString
stack.yaml view
@@ -1,12 +1,7 @@-resolver: lts-8.6--packages:-- '.'--extra-deps: []- flags: {}- extra-package-dbs: []-+packages:+- . pvp-bounds: lower+extra-deps: []+resolver: lts-12.9