Silence a GHC 8.2 warning.
The warnings were about NoMonoLocalBinds making type inference
fragile:
tests/V1/tests.hs:1876:17: warning: [-Wsimplifiable-class-constraints]
• The constraint ‘SOP.All SOP.SListI (SOP.GCode a)’
matches an instance declaration
instance forall k (f :: k -> Constraint) (xs :: [k]).
(Generics.SOP.Constraint.AllF f xs, SOP.SListI xs) =>
SOP.All f xs
-- Defined in ‘Generics.SOP.Constraint’
This makes type inference for inner bindings fragile;
either use MonoLocalBinds, or simplify it using the instance
• In the type signature:
sopArbitrary :: forall a.
(Generic a,
SOP.GTo a,
SOP.All SOP.SListI (SOP.GCode a),
SOP.All2 Arbitrary (SOP.GCode a)) =>
Gen a
commit57f18064bf4a0d62fdc52b4a17735a31eaf423c9
authorMikhail Glushenkov <mikhail.glushenkov@gmail.com>
dateMon 22 May 2017, 20:06 (9 years ago)
parent1c5dff5
tests/V1/tests.hs+3
@@ -12,6 +12,9 @@
1212#if __GLASGOW_HASKELL__ < 800
1313{-# OPTIONS_GHC -fcontext-stack=100 #-}
1414#endif
15+#if __GLASGOW_HASKELL__ >= 802
16+{-# LANGUAGE MonoLocalBinds #-}
17+#endif
1518module Main where
1619
1720import Control.Applicative
tests/V5/tests.hs+3
@@ -12,6 +12,9 @@
1212#if __GLASGOW_HASKELL__ < 800
1313{-# OPTIONS_GHC -fcontext-stack=100 #-}
1414#endif
15+#if __GLASGOW_HASKELL__ >= 802
16+{-# LANGUAGE MonoLocalBinds #-}
17+#endif
1518module Main where
1619
1720import Control.Applicative