Commit baaf4e89 authored by Joachim Breitner's avatar Joachim Breitner
Browse files

Adjust test suite to new Language Pragma warnigns

(this is related to #3647)
parent bd598da4
Roles5.hs:3:8:
Illegal role annotation
Perhaps you intended to use -XRoleAnnotations
Perhaps you intended to use RoleAnnotations
In the data type declaration for ‛T’
Roles5.hs:4:9:
Illegal role annotation
Perhaps you intended to use -XRoleAnnotations
Perhaps you intended to use RoleAnnotations
In the declaration for class C
Roles5.hs:5:8:
Illegal role annotation
Perhaps you intended to use -XRoleAnnotations
Perhaps you intended to use RoleAnnotations
In the declaration for type synonym ‛S’
......@@ -3,5 +3,5 @@ T1133A.hs:6:28:
Can't make a derived instance of ‛Enum X’:
‛X’ must be an enumeration type
(an enumeration consists of one or more nullary, non-GADT constructors)
Try -XGeneralizedNewtypeDeriving for GHC's newtype-deriving extension
Try GeneralizedNewtypeDeriving for GHC's newtype-deriving extension
In the newtype declaration for ‛X’
T2604.hs:7:35:
Can't make a derived instance of ‛Typeable * (DList a)’:
You need -XDeriveDataTypeable to derive an instance for this class
You need DeriveDataTypeable to derive an instance for this class
In the data declaration for ‛DList’
T2604.hs:9:38:
Can't make a derived instance of ‛Typeable * (NList a)’:
You need -XDeriveDataTypeable to derive an instance for this class
You need DeriveDataTypeable to derive an instance for this class
In the newtype declaration for ‛NList’
......@@ -2,5 +2,5 @@
T3833.hs:9:1:
Can't make a derived instance of ‛Monoid (DecodeMap e)’:
‛Monoid’ is not a derivable class
Try -XGeneralizedNewtypeDeriving for GHC's newtype-deriving extension
Try GeneralizedNewtypeDeriving for GHC's newtype-deriving extension
In the stand-alone deriving instance for ‛Monoid (DecodeMap e)’
......@@ -2,5 +2,5 @@
T3834.hs:8:1:
Can't make a derived instance of ‛C T’:
‛C’ is not a derivable class
Try -XGeneralizedNewtypeDeriving for GHC's newtype-deriving extension
Try GeneralizedNewtypeDeriving for GHC's newtype-deriving extension
In the stand-alone deriving instance for ‛C T’
drvfail-functor1.hs:6:14:
Can't make a derived instance of ‛Functor List’:
You need -XDeriveFunctor to derive an instance for this class
You need DeriveFunctor to derive an instance for this class
In the data declaration for ‛List’
......@@ -3,7 +3,7 @@ drvfail015.hs:10:19:
Illegal instance declaration for ‛Eq T’
(All instance types must be of the form (T t1 ... tn)
where T is not a synonym.
Use -XTypeSynonymInstances if you want to disable this.)
Use TypeSynonymInstances if you want to disable this.)
In the stand-alone deriving instance for ‛Eq T’
drvfail015.hs:13:1:
......
......@@ -2,6 +2,6 @@
gadtSyntaxFail001.hs:8:5:
Data constructor ‛C2’ has existential type variables, a context, or a specialised result type
C2 :: forall a. a -> Char -> Foo a Int
(Use -XExistentialQuantification or -XGADTs to allow this)
(Use ExistentialQuantification or GADTs to allow this)
In the definition of data constructor ‛C2’
In the data declaration for ‛Foo’
......@@ -2,6 +2,6 @@
gadtSyntaxFail002.hs:8:5:
Data constructor ‛C2’ has existential type variables, a context, or a specialised result type
C2 :: forall a. a -> Char -> Foo a a
(Use -XExistentialQuantification or -XGADTs to allow this)
(Use ExistentialQuantification or GADTs to allow this)
In the definition of data constructor ‛C2’
In the data declaration for ‛Foo’
......@@ -2,6 +2,6 @@
gadtSyntaxFail003.hs:7:5:
Data constructor ‛C1’ has existential type variables, a context, or a specialised result type
C1 :: forall b a c. a -> Int -> c -> Foo b a
(Use -XExistentialQuantification or -XGADTs to allow this)
(Use ExistentialQuantification or GADTs to allow this)
In the definition of data constructor ‛C1’
In the data declaration for ‛Foo’
GenShouldFail0.hs:9:1:
Can't make a derived instance of ‛Generic X’:
You need -XDeriveGeneric to derive an instance for this class
You need DeriveGeneric to derive an instance for this class
In the stand-alone deriving instance for ‛Generic X’
GenShouldFail1_0.hs:9:1:
Can't make a derived instance of ‛Generic1 X’:
You need -XDeriveGeneric to derive an instance for this class
You need DeriveGeneric to derive an instance for this class
In the stand-alone deriving instance for ‛Generic1 X’
Boot.hs:5:13:
Not a data constructor: ‛forall’
Perhaps you intended to use -XExistentialQuantification
Perhaps you intended to use ExistentialQuantification
......@@ -4,7 +4,7 @@
(All instance types must be of the form (T a1 ... an)
where a1 ... an are *distinct type variables*,
and each type variable appears at most once in the instance head.
Use -XFlexibleInstances if you want to disable this.)
Use FlexibleInstances if you want to disable this.)
In the instance declaration for ‛C [Int]’
<interactive>:7:10:
......
<interactive>:5:1:
Illegal generalised algebraic data declaration for ‛T’
(Use -XGADTs to allow GADTs)
(Use GADTs to allow GADTs)
In the data declaration for ‛T’
ghci057.hs:3:3:
Data constructor ‛C’ has existential type variables, a context, or a specialised result type
C :: T Int
(Use -XExistentialQuantification or -XGADTs to allow this)
(Use ExistentialQuantification or GADTs to allow this)
In the definition of data constructor ‛C’
In the data declaration for ‛T’
ghci057.hs:3:3:
Data constructor ‛C’ has existential type variables, a context, or a specialised result type
C :: T Int
(Use -XExistentialQuantification or -XGADTs to allow this)
(Use ExistentialQuantification or GADTs to allow this)
In the definition of data constructor ‛C’
In the data declaration for ‛T’
......@@ -2,17 +2,17 @@
NotRelaxedExamples.hs:9:15:
Nested type family application
in the type family application: F1 (F1 Char)
(Use -XUndecidableInstances to permit this)
(Use UndecidableInstances to permit this)
In the type instance declaration for ‛F1’
NotRelaxedExamples.hs:10:15:
Application is no smaller than the instance head
in the type family application: F2 [x]
(Use -XUndecidableInstances to permit this)
(Use UndecidableInstances to permit this)
In the type instance declaration for ‛F2’
NotRelaxedExamples.hs:11:15:
Application is no smaller than the instance head
in the type family application: F3 [Char]
(Use -XUndecidableInstances to permit this)
(Use UndecidableInstances to permit this)
In the type instance declaration for ‛F3’
SimpleFail15.hs:5:8:
Illegal polymorphic or qualified type: a ~ b => t
Perhaps you intended to use -XRankNTypes or -XRank2Types
Perhaps you intended to use RankNTypes or Rank2Types
In the type signature for ‛foo’:
foo :: (a, b) -> (a ~ b => t) -> (a, b)
......@@ -11,7 +11,7 @@ T4485.hs:47:15:
(IdentityT IO) (XMLGenT Identity ())
-- Defined at T4485.hs:42:10
(The choice depends on the instantiation of ‛m0’
To pick the first instance above, use -XIncoherentInstances
To pick the first instance above, use IncoherentInstances
when compiling the other instance declarations)
In the expression: asChild
In the expression: asChild $ (genElement "foo")
......
......@@ -2,6 +2,6 @@
T5934.hs:12:7:
Cannot instantiate unification variable ‛a0’
with a type involving foralls: (forall s. GenST s) -> Int
Perhaps you want -XImpredicativeTypes
Perhaps you want ImpredicativeTypes
In the expression: 0
In an equation for ‛run’: run = 0
......@@ -2,17 +2,17 @@
TyFamUndec.hs:6:15:
Variable ‛b’ occurs more often than in the instance head
in the type family application: T (b, b)
(Use -XUndecidableInstances to permit this)
(Use UndecidableInstances to permit this)
In the type instance declaration for ‛T’
TyFamUndec.hs:7:15:
Application is no smaller than the instance head
in the type family application: T (a, Maybe b)
(Use -XUndecidableInstances to permit this)
(Use UndecidableInstances to permit this)
In the type instance declaration for ‛T’
TyFamUndec.hs:8:15:
Nested type family application
in the type family application: T (a, T b)
(Use -XUndecidableInstances to permit this)
(Use UndecidableInstances to permit this)
In the type instance declaration for ‛T’
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment