CIFASIS / QuickFuzz

An experimental grammar fuzzer in Haskell using QuickCheck
http://QuickFuzz.org
GNU General Public License v3.0
199 stars 45 forks source link

Adapt to template-haskell-2.11 changes (Kind filed in constructors) #44

Closed trofi closed 8 years ago

trofi commented 8 years ago

ghc-8's template-haskell-2.11 added support for Kind polymorphism. That led to addition of Kind field in constructor which causes build failures:

src/DeriveArbitrary.hs:81:17: error: • The constructor ‘DataD’ should have 6 arguments, but has been given 5 • In the pattern: DataD params constructors In the pattern: TyConI (DataD params constructors )

Change introduces CPP macro to get support for both ghc-7.10 and and ghc-8.

Signed-off-by: Sergei Trofimovich slyfox@gentoo.org