This project is mirrored from https://github.com/kolmodin/binary. Pull mirroring updated .
  1. 26 Jan, 2016 2 commits
  2. 25 Jan, 2016 2 commits
  3. 23 Jan, 2016 1 commit
  4. 22 Jan, 2016 1 commit
  5. 21 Jan, 2016 2 commits
  6. 18 Jan, 2016 1 commit
  7. 20 Dec, 2015 9 commits
  8. 19 Dec, 2015 3 commits
  9. 18 Dec, 2015 2 commits
    • Lennart Kolmodin's avatar
      Merge pull request #95 from ezyang/binary-splitg · 91529586
      Lennart Kolmodin authored
      Split GBinary into GBinaryGet and GBinaryPut, speeds up compilation.
      91529586
    • Edward Z. Yang's avatar
      Split GBinary into GBinaryGet and GBinaryPut, speeds up compilation. · c641061f
      Edward Z. Yang authored
      
      
      Consider:
      
          {-# LANGUAGE DeriveGeneric #-}
          module A where
          import Data.Binary
          import GHC.Generics
          data T = T
           () () () () () () () () () ()
           () () () () () () () () () ()
           () () () () () () () () () ()
           () () () () () () () () () ()
           () () () () () () () () () ()
           () () () () () () () () () ()
           () () () () () () () () () ()
           () () () () () () () () () ()
           () () () () () () () () () ()
           () () () () () () () () () ()
           deriving Generic
          instance Binary T
      
      Without this patch, on GHC 7.10.2, building this -O2 takes 6.7s.  With
      this patch, it takes 1.7s.  Amazing.  (There are modest improvements
      with other versions of GHC too.)
      Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
      c641061f
  10. 15 Nov, 2015 2 commits
  11. 13 Nov, 2015 2 commits
  12. 12 Nov, 2015 5 commits
  13. 11 Nov, 2015 5 commits
  14. 29 Oct, 2015 2 commits
  15. 23 Oct, 2015 1 commit
    • Brian McKenna's avatar
      Add Binary Void instance · 57cf1f04
      Brian McKenna authored
      This is so that we can write and read things like [Void], or (Expr Void)
      - something I'm actually doing in Morte.
      
      https://github.com/Gabriel439/Haskell-Morte-Library/pull/26
      
      The reader always fails if you actually try to get an instance of it.
      Trying to access a void value should not happen for well-formed
      instances, for example:
      
          *Data.Binary Data.Void> decode $ encode ([] :: [Void]) :: [Void]
          []
      57cf1f04