You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-forensics/quickfuzz/files/quickfuzz-9999-megadeth-ghc...

13 lines
579 B

diff --git a/Megadeth/Prim.hs b/Megadeth/Prim.hs
index 2f39336..7911bc3 100644
--- a/bundled/megadeth/Megadeth/Prim.hs
+++ b/bundled/megadeth/Megadeth/Prim.hs
@@ -82,2 +82,7 @@ simpleConView tyName c =
ForallC _ _ innerCon -> simpleConView tyName innerCon
+#if MIN_VERSION_template_haskell(2,11,0)
+ -- handling: GadtC [Codec.Picture.Metadata.Gamma] [] (AppT (ConT Codec.Picture.Metadata.Keys) (ConT GHC.Types.Double))
+ GadtC [n] sts _ -> let ts = map snd sts
+ in SimpleCon n (count ts) ts
+#endif
_ -> error $ "simpleConView: failed on " ++ show c