git.iko.soy/typeable/haskell-stack-trace-plugin
on master help sign in
Fix overlapping-patterns warning
commitb82ffc1fcf03e76b27d3a3f16a8234535a45da2f authorwaddlaw <ingronze@gmail.com> dateFri 21 May 2021, 15:58 (5 years ago) parent2ab07fb
1 file changed+4
src/StackTrace/Plugin.hs+4
src/StackTrace/Plugin.hs+4
@@ -99,12 +99,16 @@ updateSig _ sig = pure sig
9999updateLHsSigWsType :: Traversal' (LHsSigWcType GhcPs) (LHsSigType GhcPs)
100100updateLHsSigWsType f lhs@HsWC {} =
101101 (\x -> lhs {hswc_body = x}) <$> f (hswc_body lhs)
102+#if __GLASGOW_HASKELL__ < 900
102103updateLHsSigWsType _ lhs = pure lhs
104+#endif
103105
104106updateLHsSigType :: Traversal' (LHsSigType GhcPs) (LHsType GhcPs)
105107updateLHsSigType f lhs@HsIB {} =
106108 (\x -> lhs {hsib_body = x}) <$> f (hsib_body lhs)
109+#if __GLASGOW_HASKELL__ < 900
107110updateLHsSigType _ lhs = pure lhs
111+#endif
108112
109113updateLHsType :: Traversal' (LHsType GhcPs) (HsType GhcPs)
110114updateLHsType = traverse