This project is mirrored from https://github.com/kolmodin/binary. Pull mirroring updated .
  1. 12 Nov, 2020 1 commit
  2. 11 Mar, 2019 1 commit
    • Alec Theriault's avatar
      Haddock markup fixes · 722622d8
      Alec Theriault authored
        * Use the standard `@since` notation (since it plays well with
          re-exports in other packages)
        * Use `@ ... @` for monospacing things that aren't identifiers
        * Qualify some linked identifiers (so that they actually link)
      722622d8
  3. 08 Jan, 2017 1 commit
  4. 01 Jun, 2016 2 commits
  5. 27 May, 2016 1 commit
  6. 21 May, 2016 1 commit
  7. 01 May, 2016 1 commit
  8. 26 Jan, 2016 1 commit
  9. 20 Dec, 2015 1 commit
  10. 15 Nov, 2015 1 commit
  11. 13 Nov, 2015 1 commit
  12. 12 Nov, 2015 1 commit
  13. 30 Jul, 2015 1 commit
    • Lennart Kolmodin's avatar
      Mark INLINEs with a phase to remove warning. · 112a1a5d
      Lennart Kolmodin authored
      The warnings are like this;
      Rule "getWord16le/readN" may never fire
        because ‘getWord16le’ might inline first
      
      The RULES do the same thing as the inlining, so either one is fine.
      Specifying a phase removes the warning.
      112a1a5d
  14. 06 Jun, 2015 1 commit
  15. 30 May, 2015 1 commit
    • Lennart Kolmodin's avatar
      Simplify the skip, get*LazyByteString* functions. · 6c9c47f8
      Lennart Kolmodin authored
      Affects;
       - skip
       - getLazyByteString
       - getLazyByteStringNul
       - getRemainingLazyByteString
      
      These functions all read input chunks until some condition,
      reading enough bytes, reaching a NUL character, or it has consumed all
      bytes. They're now implemented by withInputChunks.
      This fixes a bug where the position in the input previously wasn't
      correctly reported if you ran out of input bytes.
      
      Tests have been added for getLazyByteString and skip to Action.hs.
      Tests for getLazyByteStringNul and getRemainingLazyByteString already
      exist in QC.hs.
      6c9c47f8
  16. 20 Mar, 2014 1 commit
    • Lennart Kolmodin's avatar
      Add function 'label'. · ab88a9db
      Lennart Kolmodin authored
      'label :: String -> Get a -> Get a' adds the given string to
      the error message string if the given decoder fails.
      Fixes #16.
      ab88a9db
  17. 27 Feb, 2014 1 commit
  18. 07 Feb, 2014 1 commit
  19. 13 Nov, 2013 1 commit
  20. 12 Nov, 2013 6 commits
  21. 11 Sep, 2013 1 commit
  22. 20 Apr, 2013 1 commit
  23. 01 Mar, 2013 1 commit
  24. 24 Feb, 2013 1 commit
  25. 23 Feb, 2013 1 commit
  26. 17 Feb, 2013 1 commit
  27. 16 Feb, 2013 1 commit
    • Lennart Kolmodin's avatar
      Implement lookAhead. · ebe4289c
      Lennart Kolmodin authored
      Issue #17. Test present, documentation still missing.
      This function was removed with the 0.6.* branch, and had quite few users.
      The plan was to use <|> instead, but lookAhead was missed since it
      offers some functionality that <|> cannot provide without larger restructuring of the application.
      lookAhead can be implemented in binary without affecting any other functionality,
      so here it is again.
      
      This also makes 0.6.* more backwards compatible with earlier versions,
      this saving the developer from #if MIN_VERSION hacks.
      ebe4289c
  28. 14 Feb, 2013 1 commit
  29. 13 Feb, 2013 2 commits
  30. 21 Nov, 2012 2 commits
    • tibbe's avatar
      Small documentation tweaks · c50a1227
      tibbe authored
      c50a1227
    • tibbe's avatar
      Add runGetOrFail · 4c688652
      tibbe authored
      runGetOrFail provides a compromise between the simple runGet interface
      and the fully general runGetIncremental interface. It takes all input up
      front but it does allow callers to gracefully handle parse errors.
      4c688652
  31. 04 Oct, 2012 1 commit
    • Lennart Kolmodin's avatar
      Fix a bug related to <|> and bytesRead. · 7ca1d43a
      Lennart Kolmodin authored
      The wrong offset was returned when the first function in a try
      operation was bytesRead, and the current chunk was non-empty.
      In that case, the chunk would have been considered to be consumed
      although it was not.
      7ca1d43a
  32. 16 Sep, 2012 1 commit