changelog.md 3.35 KB
Newer Older
Lennart Kolmodin's avatar
Lennart Kolmodin committed
1
2
3
binary
======

Lennart Kolmodin's avatar
Lennart Kolmodin committed
4
5
6
7
8
binary-0.8.2.0
--------------

- When using GHC >= 8, `Data.Binary.Get.Get` implements MonadFail and delegates its `fail` to `MonadFail.fail`.

9
binary-0.8.1.0
Lennart Kolmodin's avatar
Lennart Kolmodin committed
10
11
12
--------------

- Add binary instance for `Data.ByteString.Short`.
Lennart Kolmodin's avatar
Lennart Kolmodin committed
13
- Add get/put functions for all Int sizes to `Data.Binary.Builder`, `Data.Binary.Get` and `Data.Binary.Put`.
Lennart Kolmodin's avatar
Lennart Kolmodin committed
14

Lennart Kolmodin's avatar
Lennart Kolmodin committed
15
16
17
18
19
binary-0.8.0.1
--------------

- Address compiler warnings.

Oleg Grenrus's avatar
Oleg Grenrus committed
20
21
22
23
binary-0.8.0.0
--------------

- Added binary instance for `Version` from `Data.Version`.
24
25
- Added binary instance for `Void` from GHC 7.10.1.
- Added binary instance for `(Data.Fixed a)` from GHC 7.8.1.
Lennart Kolmodin's avatar
Lennart Kolmodin committed
26
- Added semigroup instance for `Data.Binary.Builder` from GHC 8.0.
Oleg Grenrus's avatar
Oleg Grenrus committed
27

Lennart Kolmodin's avatar
Lennart Kolmodin committed
28
29
30
31
32
binary-0.7.6.1
--------------

- Fix compilation for GHC == 7.2.*.

Lennart Kolmodin's avatar
Lennart Kolmodin committed
33
34
35
36
37
binary-0.7.6.0
--------------

- Added binary instance for GHC.Fingerprint (from GHC >= 7.4).

Lennart Kolmodin's avatar
Lennart Kolmodin committed
38
39
40
41
42
43
44
45
46
47
binary-0.7.5.0
--------------

- Fix performance bug that was noticable when you get a big strict ByteString
  and the input to the decoder consists of many small chunks.
    - https://github.com/kolmodin/binary/issues/73
    - https://github.com/kolmodin/binary/pull/76
- Fix memory leak when decoding Double and Float.
    - Commit 497a181c083fa9faf7fa3aa64d1d8deb9ac76ecb
- We now require QuickCheck >= 2.8. Remove our version of arbitrarySizedNatural.
48

Lennart Kolmodin's avatar
Lennart Kolmodin committed
49
50
51
52
53
54
55
binary-0.7.4.0
--------------

- Some invalid UTF-8 strings caused an exception when decoded. Those errors will
  now now fail in the Get monad instead. See #70.
  Patch contributed by @ttuegel.

56
57
58
59
60
binary-0.7.3.0
--------------

- Add Binary instance for Natural (only with base > 4.8).

61
62
63
64
65
66
67
68
69
binary-0.7.2.3
--------------

- Remove INLINEs from GBinary/GSum methods. These interact very badly with the
  GHC 7.9.x simplifier. See also;
     - https://github.com/kolmodin/binary/pull/62
     - https://ghc.haskell.org/trac/ghc/ticket/9630
     - https://ghc.haskell.org/trac/ghc/ticket/9583

Lennart Kolmodin's avatar
Lennart Kolmodin committed
70
71
72
73
74
binary-0.7.2.2
--------------

- Make import of GHC.Base future-proof (https://github.com/kolmodin/binary/pull/59).

Lennart Kolmodin's avatar
Lennart Kolmodin committed
75
76
77
binary-0.7.2.1
--------------

Lennart Kolmodin's avatar
Lennart Kolmodin committed
78
- Fix to compile on GHC 6.10.4 and older (https://github.com/kolmodin/binary/issues/55).
Lennart Kolmodin's avatar
Lennart Kolmodin committed
79

80
binary-0.7.2.0
Lennart Kolmodin's avatar
Lennart Kolmodin committed
81
--------------
Lennart Kolmodin's avatar
Lennart Kolmodin committed
82
83
84
85

- Add `isolate :: Int -> Get a -> Get a`.
- Add `label :: String -> Get a -> Get a`.

Lennart Kolmodin's avatar
Lennart Kolmodin committed
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
binary-0.7.1.0
--------------

- Add `lookAheadE :: Get (Either a b) -> Get (Either a b)`.
- Add MonadPlus instance for Get. 


binary-0.7.0.1
--------------

- Updates to documentation.

binary-0.7.0.0
--------------

- Add `lookAhead :: Get a -> Get a`.
- Add `lookAheadM :: Get (Maybe a) -> Get (Maybe a)`.
- Add Alternative instance for Get (provides `<|>`).
- Add `decodeOrFail :: Binary a => L.ByteString -> Either (L.ByteString, ByteOffset, String) (L.ByteString, ByteOffset, a)`
- Add `decodeFileOrFail :: Binary a => FilePath -> IO (Either (ByteOffset, String) a)`.
- Remove `Ord` class constraint from `Set` and `Map` Binary instances.

binary-0.6.4
------------

- Add `runGetOrFail :: Get a -> L.ByteString -> Either (L.ByteString, ByteOffset, String) (L.ByteString, ByteOffset, a)`.

binary-0.6.3
------------

- Documentation tweeks, internal restructuring, more tests.

binary-0.6.2
------------

- `some` and `many` more efficient.
- Fix bug where `bytesRead` returned the wrong value.
- Documentation improvements.

binary-0.6.1
------------

- Fix bug where a decoder could return with `Partial` after the previous reply was `Nothing`.

binary-0.6.0.0
--------------