deriving-compat 0.5.1 → 0.5.2
raw patch · 3 files changed
+10/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- deriving-compat.cabal +1/−1
- src/Data/Deriving/Via/Internal.hs +5/−0
CHANGELOG.md view
@@ -1,3 +1,7 @@+### 0.5.2 [2018.09.13]+* Fix a bug (on GHC 8.7 and above) in which `deriveGND`/`deriveVia` would+ generate ill-scoped code.+ ### 0.5.1 [2018.07.11] * Have `deriveGND`/`deriveVia` throw an error if an incorrect number of arguments are supplied to the type class.
deriving-compat.cabal view
@@ -1,5 +1,5 @@ name: deriving-compat-version: 0.5.1+version: 0.5.2 synopsis: Backports of GHC deriving extensions description: Provides Template Haskell functions that mimic deriving extensions that were introduced or modified in recent versions
src/Data/Deriving/Via/Internal.hs view
@@ -184,7 +184,12 @@ changeLast (x:xs) x' = x : changeLast xs x' stripOuterForallT :: Type -> Type+#if __GLASGOW_HASKELL__ < 807+-- Before GHC 8.7, TH-reified classes would put a redundant forall/class+-- context in front of each method's type signature, so we have to strip them+-- off here. stripOuterForallT (ForallT _ _ ty) = ty+#endif stripOuterForallT ty = ty decomposeType :: Type -> (Cxt, Type)