Debian Codegraph @

CHANGES.markdown

raw
1 ## Changes in 0.9.3 [2024.12.06]
2 - Backport new instances from GHC 9.12/`base-4.21`:
3 * `MonadFix` instance for `(,) a`
4 * `Eq1`, `Ord1`, `Read1`, and `Show1` instances for basic `GHC.Generics`
5 representation types
6 * `Show` instance for `UAddr`
7 - Drop support for pre-8.0 versions of GHC.
8
9 ## Changes in 0.9.2 [2024.04.30]
10 - Backport new instances from GHC 9.10/`base-4.20`:
11 * `Fractional`, `RealFrac`, `Floating`, and `RealFloat` instances for `Compose`
12
13 ## Changes in 0.9.1 [2023.10.11]
14 - Backport new instances from GHC 9.8/`base-4.19`:
15 * `Eq` and `Ord` instances for `SChar`, `SNat`, and `SSymbol`
16 * `Enum`, `Bounded`, `Num`, `Real`, and `Integral` instances for `Compose`
17
18 ## Changes in 0.9.0 [2023.03.05]
19 - Adapt to recent changes to `Down` instances:
20 * The `Bounded` instance for `Down` was changed in `base-4.15.0.0` to swap
21 the values of `minBound` and `maxBound` for the underlying type. This
22 change has now been propagated to `base-orphans`.
23 * The `Enum` instance for `Down` was removed in `base-4.15.0.0`, but a
24 different version of the instance was added back in `base-4.18.0.0`, where
25 `succ` and `pred` are swapped. We have changed the backported version of
26 this instance in `base-orphans` to match the behavior of the instance
27 added in `base-4.18.0.0`.
28 * The `Integral` instance for `Down` was removed from `base` entirely in
29 `base-4.15.0.0`. We have finally removed it from `base-orphans` in this
30 release, as it actively makes it more difficult to define the
31 aforementioned `Enum` instance.
32
33 ## Changes in 0.8.8.1 [2023.03.05]
34 - Fix GHC 9.4 build error that was accidentally introduced in
35 `base-orphans-0.8.8`.
36
37 ## Changes in 0.8.8 [2023.03.05]
38 - Backport new instances from GHC 9.6.1/`base-4.18.0.0`:
39 * `Functor` instances for the `(,,,,) a b c d`, `(,,,,,) a b c d e`, and
40 `(,,,,,) a b c d e f` tuple types.
41 * `Eq` and `Ord` instances for `Generically1`
42
43 ## Changes in 0.8.7 [2022.08.11]
44 - Backport new instances from GHC 9.2.2/`base-4.16.1.0`:
45 * `Ix` instances for various integral types in `Foreign.C.Types`,
46 `Foreign.Ptr`, and `System.Posix.Types`. For a complete list of such types,
47 see https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7385.
48 - Backport a bugfix for the `Ord1 Down` instance from GHC 9.4/`base-4.17` such
49 that it now uses reverse sort order.
50
51 ## Changes in 0.8.6 [2021.10.29]
52 - Backport `Eq`, `Ord`, `Bounded`, `Enum`, and `Ix` instances for `Solo`,
53 introduced in GHC 9.2/`base-4.16`
54 - Remove the backported `Eq1` and `Ord1` instances for `Fixed` that were
55 introduced in `base-orphans-0.8.5`. While these briefly appeared in a
56 release candidate version of GHC 9.2.1, they were ultimately removed from
57 the final 9.2.1 release. This release of `base-orphans` synchronizes with
58 that change.
59
60 ## Changes in 0.8.5 [2021.08.29]
61 - Backport new instances from GHC 9.2/`base-4.16`
62 * `Eq1`, `Read1`, and `Show1` instances for `Complex`
63 * `Eq1` and `Ord1` instances for `Fixed`
64 * `Eq{1,2}`, `Ord{1,2}`, `Show{1,2}`, and `Read{1,2}` instances for `(,,)`
65 and `(,,,)`
66 * `Semigroup` and `Monoid` instances for `Data.Functor.Product` and
67 `Data.Functor.Compose`
68
69 ## Changes in 0.8.4 [2020.12.09]
70 - Backport the `Ord` instances for `TyCon` and `TypeRep` to be available on
71 GHC 7.0.
72
73 ## Changes in 0.8.3 [2020.09.30]
74 - Backport new instances from GHC 9.0/`base-4.15`
75 * `MonadFix` and `MonadZip` instances for `Complex`
76 * `Ix` instances for tuples of size 6 through 15
77
78 ## Changes in 0.8.2 [2020.01.27]
79 - Backport new instances from GHC 8.10/`base-4.14`
80 * `Bits`, `Bounded`, `Enum`, `FiniteBits`, `Floating`, `Fractional`,
81 `Integral`, `Ix`, `Real`, `RealFrac`, `RealFloat` and `Storable` instances
82 for `Data.Ord.Down`
83 * `Functor`, `Applicative`, `Monad`, `Alternative`, and `MonadPlus` instances
84 for `Kleisli`
85 * `Functor`, `Applicative`, and `Monad` instances for
86 `(,,) a b` and `(,,,) a b c`
87 * `Data` instances for `WrappedArrow` and `WrappedMonad`
88 * `Data` and `IsList` instances for `ZipList`
89 * `TestEquality` instance for `Compose`
90 - Backport the `Typeable (() :: Constraint)` instance to be available on
91 GHC 7.8.
92
93 ## Changes in 0.8.1 [2019.03.25]
94 - Ensure that the test suite passes non-negative numbers to `Bits` methods
95 that require them, such as `bit`, `setBit`, `clearBit`, `complementBit`,
96 and `testBit`.
97
98 ## Changes in 0.8 [2018.07.02]
99 - Backported new instance from GHC 8.6/`base-4.12`
100 * Data types in `GHC.Generics`:
101 - `Applicative` instance for `K1`
102 - `Semigroup` instances for `U1`, `Par1`, `Rec1`, `K1`, `M1`, `(:*:)`, `(:.:)`, and `V1`
103 - `Monoid` instances for `U1`, `Par1`, `Rec1`, `K1`, `M1`, `(:*:)`, and `(:.:)`
104 * `Foldable` and `Traversable` instances for `Data.Monoid.Alt`
105 * `MonadFix`, `MonadZip`, `Data`, `Foldable`, `Traversable`, `Eq1`, `Ord1`,
106 `Read1`, and `Show1` instances for `Data.Ord.Down`
107
108 ## Changes in 0.7 [2018.03.08]
109 - Backported new instances from GHC 8.4/`base-4.11`
110 * `Alternative` instance for `ZipList`
111 * `Data` instance for `IntPtr` and `WordPtr`
112 * `Num`, `Functor`, `Applicative`, `Monad`, `Semigroup`, and `Monoid`
113 instances for `Data.Ord.Down`
114 * `MonadFail`, `Semigroup`, and `Monoid` instances for strict `ST`
115
116 ## Changes in 0.6 [2017.04.10]
117 - Backported new instances from GHC 8.2/`base-4.10`
118 (see https://github.com/haskell-compat/base-orphans/issues/39):
119 * `Data` instance for `Const`
120 * `Eq1`, `Ord1`, `Read1`, and `Show1` instances for `NonEmpty`
121 * `Semigroup` instances for `IO`, `Event`, and `Lifetime`
122 - Backported `Typeable` instances for `(:+:)`, `(:*:)`, `(:.:)`, `M1`, `Rec1`,
123 `ArrowMonad`, `Kleisli`, `WrappedArrow`, `WrappedMonad`, and `Any` on GHC
124 7.6 and earlier
125 - Backported `Data` instances for `(:+:)`, `(:*:)`, `(:.:)`, `M1`, and `Rec1`
126 on GHC 7.6 and earlier
127
128 ## Changes in 0.5.4
129 - Backported `Bits`, `FiniteBits`, `Floating`, `Fractional`, `Integral`,
130 `IsString`, `Num`, `Real`, `RealFloat`, and `RealFrac` instances for
131 `Identity` and `Const` (introduced in `base-4.9`)
132
133 ## Changes in 0.5.3
134 - Backported `Alternative`, `MonadPlus` and `MonadZip` instances for `U1` and
135 `Proxy`, and made the `Functor`, `Foldable`, `Traversable`, `Alternative`,
136 and `Monad` instances for `U1` lazier to correspond with `base-4.9`
137
138 ## Changes in 0.5.2
139 - Backported `Enum`, `Bounded`, `Ix`, `Functor`, `Applicative`, `Monad`,
140 `MonadFix`, `MonadPlus`, `MonadZip`, `Foldable`, `Traversable`, and
141 `Data` instances for datatypes in the `GHC.Generics` module (introduced in
142 `base-4.9`)
143
144 ## Changes in 0.5.1
145 - The `Storable` instances for `Complex` and `Ratio` are now exactly as lazy
146 as their counterparts in `base` (see issue
147 [#36](https://github.com/haskell-compat/base-orphans/issues/36))
148
149 ## Changes in 0.5.0
150 - GHC 8.0 compatibility
151 - Backported instances introduced in GHC 8.0/`base-4.9`
152 (see https://github.com/haskell-compat/base-orphans/issues/32)
153
154 ## Changes in 0.4.5
155 - Import `Control.Monad.Instances` (which exports `Functor` and `Monad`
156 instances for `(->) r`, and `Functor` instances for `(,) a` and `Either a`)
157 on GHCs before 7.6. This ensures that these instances will always be in
158 scope, and you won't have to import a module which is deprecated on recent
159 GHC releases.
160 - Fix build on GHC HEAD (again)
161
162 ## Changes in 0.4.4
163 - Fix build on GHC HEAD
164
165 ## Changes in 0.4.3
166 - Fix build on OSes where `HTYPE_DEV_T = Int32` (e.g., OS X)
167
168 ## Changes in 0.4.2
169 - `Functor` instances for `Handler`
170 - `Functor`. `Applicative`, `Alternative`, and `MonadPlus` instances for
171 `ArrowMonad`
172 - Expose `Read` and `Show` instances for `Down` on GHCs before 7.8
173 - `Bits`, `Bounded`, and `Integral` instances for `CDev`
174
175 ## Changes in 0.4.1
176 - Fixed imports on GHC < 7.8 on Windows
177
178 ## Changes in 0.4.0
179 - Removed all `Generic` and `Generic1` instances. These have been moved to the
180 `generic-deriving` library.
181
182 ## Changes in 0.3.3
183 - `Typeable` instances for `(~)`, `Any`, `Constraint`, `CSigset`, `Handler`,
184 `Opaque`, `SPEC`, and every promotable data constructor in `base`
185
186 ## Changes in 0.3.2
187 - `Storable (Complex a)` instance no longer requires a `RealFloat a`
188 constraint if using `base-4.4` or later
189
190 ## Changes in 0.3.1
191 - `Functor`, `Applicative`, and `Monad` instances for `First` and `Last`
192
193 ## Changes in 0.3.0
194 - `Show` instance for `Fingerprint`
195 - `Data.Orphans` is now `Trustworthy`
196 - Backported the `Generic` and `Generic1` instances available in `base-4.7.0.0`
197 to GHC 7.2, 7.4, and 7.6, namely
198 * `Const`, `WrappedMonad`, and `ZipList` from `Control.Applicative`
199 * `WrappedArrow` from `Control.Category`
200 * `All`, `Any`, `Dual`, `Endo`, `First`, `Last`, `Product`, and `Sum` from
201 `Data.Monoid`
202 * `U1`, `Par1`, `Rec1`, `K1`, `M1`, `(:+:)`, `(:*:)`, `(:.:)`, `Arity`,
203 `Associativity`, and `Fixity` from `GHC.Generics`
204
205 ## Changes in 0.2.0
206 - Drop GHC 6.12 (and `base-4.2.0.0`) compatibility
207 - Fix Windows, GHCJS build
208 - `Read` instance for `Fixed`
209 - `Applicative` instances for strict and lazy `ST`
210 - `Typeable` instance for `SampleVar`
211 - `Applicative` and `Alternative` instances for `ReadP` and `ReadPrec`
212 - `Typeable` instance for `KProxy`
213 - `Typeable` instances for more data types in `GHC.`-prefixed modules
214 - `Generic` instances for `Arity`, `Associativity`, and `Fixity` from
215 the `GHC.Generics` module
216 - Corrected the `Generic` instance for `(:*:)` to work around GHC bug #9830