summaryrefslogtreecommitdiffhomepage
path: root/debug-me.cabal
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-04-21 12:16:38 -0400
committerJoey Hess <joeyh@joeyh.name>2017-04-21 13:19:06 -0400
commite336a4fdf3d55f01b8c2871ceb906544a493eeb7 (patch)
treeb3af043b4323b0f353baef44439d786ae6d55bd2 /debug-me.cabal
parentc4a04ead453bf783b79c5c0b263f657275794b25 (diff)
downloaddebug-me-e336a4fdf3d55f01b8c2871ceb906544a493eeb7.tar.gz
use cereal for efficient serialization for wire format
I tried both binary and cereal. For a ActivityMessage that takes 341 bytes in JSON and has a dataSize of 129, both used 165 bytes. Went with cereal since lazy bytestrings are not needed, and I might want to use https://hackage.haskell.org/package/safecopy later. (Perhaps I should be using protocol buffers or something to make it easier for non-haskell implementations? But that would complicate things a lot.)
Diffstat (limited to 'debug-me.cabal')
-rw-r--r--debug-me.cabal9
1 files changed, 6 insertions, 3 deletions
diff --git a/debug-me.cabal b/debug-me.cabal
index 05ab1e9..5042ee3 100644
--- a/debug-me.cabal
+++ b/debug-me.cabal
@@ -22,7 +22,7 @@ Executable debug-me
Main-Is: debug-me.hs
GHC-Options: -threaded -Wall -fno-warn-tabs -O2
Build-Depends:
- base (>= 4.5 && < 5.0)
+ base (>= 4.9 && < 5.0)
, bytestring == 0.10.*
, cryptonite (>= 0.20)
, unix (>= 2.7)
@@ -33,24 +33,27 @@ Executable debug-me
, terminal-size (>= 0.3)
, aeson (>= 0.11 && < 1.1)
, sandi (>= 0.4)
- , text (>= 1.2)
+ , text (>= 1.2.2)
+ , cereal (>= 0.5)
, optparse-applicative (>= 0.12)
, graphviz (== 2999.18.*)
, time (>= 1.6)
, unbounded-delays (>= 0.1)
, memory (>= 0.13)
+ --, websockets (>= 0.9)
+ --, wai-websockets (>= 3.0)
Other-Modules:
CmdLine
Crypto
Graphviz
Hash
- Json
Log
Memory
Pty
Replay
Session
Types
+ Serialization
Val
source-repository head