Building instant-generics-0.5...
/opt/ghc/8.0.1/bin/ghc-pkg init dist/dist-sandbox-1a704d6f/package.conf.inplace
Preprocessing library instant-generics-0.5...
Building library...
creating dist/dist-sandbox-1a704d6f/build
/opt/ghc/8.0.1/bin/ghc --make -fbuilding-cabal-package -O -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi -outputdir dist/dist-sandbox-1a704d6f/build -odir dist/dist-sandbox-1a704d6f/build -hidir dist/dist-sandbox-1a704d6f/build -stubdir dist/dist-sandbox-1a704d6f/build -i -idist/dist-sandbox-1a704d6f/build -isrc -idist/dist-sandbox-1a704d6f/build/autogen -Idist/dist-sandbox-1a704d6f/build/autogen -Idist/dist-sandbox-1a704d6f/build -optP-include -optPdist/dist-sandbox-1a704d6f/build/autogen/cabal_macros.h -this-unit-id instant-generics-0.5-DvvHUg9GuuTJYIaUcXJmdk -hide-all-packages -no-user-package-db -package-db /tmp/extra28344172154/.cabal-sandbox/x86_64-linux-ghc-8.0.0.20160221-packages.conf.d -package-db dist/dist-sandbox-1a704d6f/package.conf.inplace -package-id base-4.9.0.0 -package-id containers-0.5.7.1 -package-id syb-0.6-C65vWCsht6A8uLstpQIXyj -package-id template-haskell-2.11.0.0 -XHaskell98 Generics.Instant Generics.Instant.Base Generics.Instant.TH Generics.Instant.Instances Generics.Instant.Functions Generics.Instant.Functions.Show Generics.Instant.Functions.Empty Generics.Instant.Functions.Enum Generics.Instant.Functions.Eq -Wall
src/Generics/Instant/Functions/Show.hs:4:14: warning:
-XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
src/Generics/Instant/Functions/Empty.hs:4:14: warning:
-XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
src/Generics/Instant/Functions/Enum.hs:6:14: warning:
-XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
src/Generics/Instant/Functions/Eq.hs:3:14: warning:
-XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
[1 of 9] Compiling Generics.Instant.Base ( src/Generics/Instant/Base.hs, dist/dist-sandbox-1a704d6f/build/Generics/Instant/Base.o )
[2 of 9] Compiling Generics.Instant.Instances ( src/Generics/Instant/Instances.hs, dist/dist-sandbox-1a704d6f/build/Generics/Instant/Instances.o )
[3 of 9] Compiling Generics.Instant.TH ( src/Generics/Instant/TH.hs, dist/dist-sandbox-1a704d6f/build/Generics/Instant/TH.o )
src/Generics/Instant/TH.hs:74:22: error:
• The constructor ‘DataD’ should have 6 arguments, but has been given 5
• In the pattern: DataD _ _ vs cs _
In the pattern: TyConI (DataD _ _ vs cs _)
In a case alternative: TyConI (DataD _ _ vs cs _) -> (vs, cs)
src/Generics/Instant/TH.hs:238:13: error:
• The constructor ‘DataD’ should have 6 arguments, but has been given 5
• In the pattern: DataD _ n _ cs _
In the pattern: TyConI (DataD _ n _ cs _)
In a case alternative: TyConI (DataD _ n _ cs _) -> mkInstance n cs
src/Generics/Instant/TH.hs:248:24: error:
• The constructor ‘DataD’ should have 6 arguments, but has been given 5
• In the pattern: DataD _ _ tv _ _
In the pattern: TyConI (DataD _ _ tv _ _)
In an equation for ‘typeVariables’:
typeVariables (TyConI (DataD _ _ tv _ _)) = tv
src/Generics/Instant/TH.hs:272:3: error:
• Couldn't match expected type ‘Q Dec’
with actual type ‘CxtQ -> DecQ’
• Probable cause: ‘dataD’ is applied to too few arguments
In the expression: dataD (cxt []) (genName [dt, n]) [] [] []
In an equation for ‘mkConstrData’:
mkConstrData dt (NormalC n _)
= dataD (cxt []) (genName [dt, n]) [] [] []
src/Generics/Instant/TH.hs:272:39: error:
• Couldn't match expected type ‘Maybe Kind’ with actual type ‘[t1]’
• In the fourth argument of ‘dataD’, namely ‘[]’
In the expression: dataD (cxt []) (genName [dt, n]) [] [] []
In an equation for ‘mkConstrData’:
mkConstrData dt (NormalC n _)
= dataD (cxt []) (genName [dt, n]) [] [] []
src/Generics/Instant/TH.hs:299:18: error:
• The constructor ‘DataConI’ should have 3 arguments, but has been given 4
• In the pattern: DataConI _ _ _ f
In a case alternative: DataConI _ _ _ f -> convertFixity f
In the expression:
case i of {
DataConI _ _ _ f -> convertFixity f
_ -> Prefix }
src/Generics/Instant/TH.hs:320:10: error:
• The constructor ‘DataD’ should have 6 arguments, but has been given 5
• In the pattern: DataD _ dt vs cs _
In a case alternative:
(DataD _ dt vs cs _)
-> (foldBal'
sum
(error "Empty datatypes are not supported.")
(map
(repConGADT
(dt, tyVarBndrsToNames vs) repVs (extractIndices vs cs))
cs))
In a stmt of a 'do' block:
case i of {
(DataD _ dt vs cs _)
-> (foldBal'
sum
(error "Empty datatypes are not supported.")
(map
(repConGADT
(dt, tyVarBndrsToNames vs) repVs (extractIndices vs cs))
cs))
(NewtypeD _ dt vs c _)
-> repConGADT
(dt, tyVarBndrsToNames vs) repVs (extractIndices vs [c]) c
(TySynD t _ _) -> error "type synonym?"
_ -> error "unknown construct" }
src/Generics/Instant/TH.hs:412:18: error:
• The constructor ‘DataD’ should have 6 arguments, but has been given 5
• In the pattern: DataD _ n _ cs _
In an equation for ‘genExTyFamInsts’:
genExTyFamInsts (DataD _ n _ cs _)
= fmap concat $ mapM (genExTyFamInsts' n) cs
src/Generics/Instant/TH.hs:514:25: error:
• The constructor ‘DataD’ should have 6 arguments, but has been given 5
• In the pattern: DataD _ dt vs cs _
In the pattern: TyConI (DataD _ dt vs cs _)
In a case alternative:
TyConI (DataD _ dt vs cs _)
-> zipWith
(fromCon wrapE ns (dt, map tyVarBndrToName vs) (length cs))
[1 .. ]
cs
src/Generics/Instant/TH.hs:531:25: error:
• The constructor ‘DataD’ should have 6 arguments, but has been given 5
• In the pattern: DataD _ dt vs cs _
In the pattern: TyConI (DataD _ dt vs cs _)
In a case alternative:
TyConI (DataD _ dt vs cs _)
-> zipWith
(toCon wrapP ns (dt, map tyVarBndrToName vs) (length cs))
[1 .. ]
cs
See also https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#template-haskell-2.11.0.0