diff options
Diffstat (limited to 'testsuite/tests/typecheck')
316 files changed, 1135 insertions, 1135 deletions
diff --git a/testsuite/tests/typecheck/bug1465/bug1465.stderr b/testsuite/tests/typecheck/bug1465/bug1465.stderr index 44b3de11c1..118d070075 100644 --- a/testsuite/tests/typecheck/bug1465/bug1465.stderr +++ b/testsuite/tests/typecheck/bug1465/bug1465.stderr @@ -1,8 +1,8 @@ C.hs:6:11: - Couldn't match expected type ‛bug1465-1.0:A.T’ - with actual type ‛A.T’ - NB: ‛bug1465-1.0:A.T’ is defined in ‛A’ in package ‛bug1465-1.0’ - ‛A.T’ is defined in ‛A’ in package ‛bug1465-2.0’ + Couldn't match expected type ‘bug1465-1.0:A.T’ + with actual type ‘A.T’ + NB: ‘bug1465-1.0:A.T’ is defined in ‘A’ in package ‘bug1465-1.0’ + ‘A.T’ is defined in ‘A’ in package ‘bug1465-2.0’ In the expression: B2.f In the expression: [B1.f, B2.f] diff --git a/testsuite/tests/typecheck/prog001/typecheck.prog001.stderr-ghc b/testsuite/tests/typecheck/prog001/typecheck.prog001.stderr-ghc index d13e8c9175..70e210fa3e 100644 --- a/testsuite/tests/typecheck/prog001/typecheck.prog001.stderr-ghc +++ b/testsuite/tests/typecheck/prog001/typecheck.prog001.stderr-ghc @@ -1,5 +1,5 @@ B.hs:7:10: Warning: No explicit implementation for - ‛row’ - In the instance declaration for ‛Matrix Bool Val’ + ‘row’ + In the instance declaration for ‘Matrix Bool Val’ diff --git a/testsuite/tests/typecheck/should_compile/FD1.stderr b/testsuite/tests/typecheck/should_compile/FD1.stderr index 5fa16fdf15..98ed785956 100644 --- a/testsuite/tests/typecheck/should_compile/FD1.stderr +++ b/testsuite/tests/typecheck/should_compile/FD1.stderr @@ -5,9 +5,9 @@ FD1.hs:16:1: bound by the type signature for plus :: E a (Int -> Int) => Int -> a at FD1.hs:15:9-38 - ‛a’ is a rigid type variable bound by + ‘a’ is a rigid type variable bound by the type signature for plus :: E a (Int -> Int) => Int -> a at FD1.hs:15:9 Relevant bindings include plus :: Int -> a (bound at FD1.hs:16:1) - The equation(s) for ‛plus’ have two arguments, - but its type ‛Int -> a’ has only one + The equation(s) for ‘plus’ have two arguments, + but its type ‘Int -> a’ has only one diff --git a/testsuite/tests/typecheck/should_compile/FD2.stderr b/testsuite/tests/typecheck/should_compile/FD2.stderr index 679f05ddeb..06e5afd730 100644 --- a/testsuite/tests/typecheck/should_compile/FD2.stderr +++ b/testsuite/tests/typecheck/should_compile/FD2.stderr @@ -2,7 +2,7 @@ FD2.hs:26:34: Could not deduce (e ~ e1) from the context (Foldable a) - bound by the class declaration for ‛Foldable’ + bound by the class declaration for ‘Foldable’ at FD2.hs:(17,1)-(26,39) or from (Elem a e) bound by the type signature for @@ -12,11 +12,11 @@ FD2.hs:26:34: bound by the type signature for mf :: Elem a e1 => e1 -> Maybe e1 -> Maybe e1 at FD2.hs:24:18-54 - ‛e’ is a rigid type variable bound by + ‘e’ is a rigid type variable bound by the type signature for foldr1 :: Elem a e => (e -> e -> e) -> a -> e at FD2.hs:21:13 - ‛e1’ is a rigid type variable bound by + ‘e1’ is a rigid type variable bound by the type signature for mf :: Elem a e1 => e1 -> Maybe e1 -> Maybe e1 at FD2.hs:24:18 @@ -26,5 +26,5 @@ FD2.hs:26:34: mf :: e1 -> Maybe e1 -> Maybe e1 (bound at FD2.hs:25:12) f :: e -> e -> e (bound at FD2.hs:22:10) foldr1 :: (e -> e -> e) -> a -> e (bound at FD2.hs:22:3) - In the first argument of ‛Just’, namely ‛(f x y)’ + In the first argument of ‘Just’, namely ‘(f x y)’ In the expression: Just (f x y) diff --git a/testsuite/tests/typecheck/should_compile/FD3.stderr b/testsuite/tests/typecheck/should_compile/FD3.stderr index 664fd35553..d2364921f6 100644 --- a/testsuite/tests/typecheck/should_compile/FD3.stderr +++ b/testsuite/tests/typecheck/should_compile/FD3.stderr @@ -1,5 +1,5 @@ FD3.hs:15:15:
- No instance for (MkA (String, a) a) arising from a use of ‛mkA’
+ No instance for (MkA (String, a) a) arising from a use of ‘mkA’
In the expression: mkA a
- In an equation for ‛translate’: translate a = mkA a
+ In an equation for ‘translate’: translate a = mkA a
diff --git a/testsuite/tests/typecheck/should_compile/HasKey.stderr-ghc b/testsuite/tests/typecheck/should_compile/HasKey.stderr-ghc index 54607457e5..dd4d290cda 100644 --- a/testsuite/tests/typecheck/should_compile/HasKey.stderr-ghc +++ b/testsuite/tests/typecheck/should_compile/HasKey.stderr-ghc @@ -1,5 +1,5 @@ HasKey.hs:22:10: Warning: No explicit implementation for - either ‛compare’ or ‛<=’ - In the instance declaration for ‛Ord (Keyed x)’ + either ‘compare’ or ‘<=’ + In the instance declaration for ‘Ord (Keyed x)’ diff --git a/testsuite/tests/typecheck/should_compile/T2494.stderr b/testsuite/tests/typecheck/should_compile/T2494.stderr index 201230b1a5..dee00ab6b4 100644 --- a/testsuite/tests/typecheck/should_compile/T2494.stderr +++ b/testsuite/tests/typecheck/should_compile/T2494.stderr @@ -1,9 +1,9 @@ T2494.hs:15:14:
- Couldn't match type ‛b’ with ‛a’
- ‛b’ is a rigid type variable bound by
+ Couldn't match type ‘b’ with ‘a’
+ ‘b’ is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:14:16
- ‛a’ is a rigid type variable bound by
+ ‘a’ is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:13:16
Expected type: Maybe (m a) -> Maybe (m a)
Actual type: Maybe (m b) -> Maybe (m b)
@@ -13,14 +13,14 @@ T2494.hs:15:14: g :: forall (m :: * -> *). Monad m => Maybe (m b) -> Maybe (m b)
(bound at T2494.hs:14:11)
x :: Maybe a (bound at T2494.hs:14:65)
- In the first argument of ‛foo’, namely ‛g’
- In the second argument of ‛foo’, namely ‛(foo g x)’
+ In the first argument of ‘foo’, namely ‘g’
+ In the second argument of ‘foo’, namely ‘(foo g x)’
T2494.hs:15:30:
- Couldn't match type ‛b’ with ‛a’
- ‛b’ is a rigid type variable bound by
+ Couldn't match type ‘b’ with ‘a’
+ ‘b’ is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:14:16
- ‛a’ is a rigid type variable bound by
+ ‘a’ is a rigid type variable bound by
the RULE "foo/foo" at T2494.hs:13:16
Expected type: Maybe (m a) -> Maybe (m a)
Actual type: Maybe (m b) -> Maybe (m b)
@@ -30,5 +30,5 @@ T2494.hs:15:30: g :: forall (m :: * -> *). Monad m => Maybe (m b) -> Maybe (m b)
(bound at T2494.hs:14:11)
x :: Maybe a (bound at T2494.hs:14:65)
- In the second argument of ‛(.)’, namely ‛g’
- In the first argument of ‛foo’, namely ‛(f . g)’
+ In the second argument of ‘(.)’, namely ‘g’
+ In the first argument of ‘foo’, namely ‘(f . g)’
diff --git a/testsuite/tests/typecheck/should_compile/T2497.stderr b/testsuite/tests/typecheck/should_compile/T2497.stderr index 7ee9bee08e..cd7ad8bc20 100644 --- a/testsuite/tests/typecheck/should_compile/T2497.stderr +++ b/testsuite/tests/typecheck/should_compile/T2497.stderr @@ -1,2 +1,2 @@ -T2497.hs:18:1: Warning: Defined but not used: ‛beq’ +T2497.hs:18:1: Warning: Defined but not used: ‘beq’ diff --git a/testsuite/tests/typecheck/should_compile/T5481.stderr b/testsuite/tests/typecheck/should_compile/T5481.stderr index bf59427da6..df5d23b360 100644 --- a/testsuite/tests/typecheck/should_compile/T5481.stderr +++ b/testsuite/tests/typecheck/should_compile/T5481.stderr @@ -1,8 +1,8 @@ T5481.hs:6:5: - The RHS of an associated type declaration mentions type variable ‛b’ + The RHS of an associated type declaration mentions type variable ‘b’ All such variables must be bound on the LHS T5481.hs:8:5: - The RHS of an associated type declaration mentions type variable ‛a’ + The RHS of an associated type declaration mentions type variable ‘a’ All such variables must be bound on the LHS diff --git a/testsuite/tests/typecheck/should_compile/T7050.stderr b/testsuite/tests/typecheck/should_compile/T7050.stderr index 860c90757f..a7154f67ac 100644 --- a/testsuite/tests/typecheck/should_compile/T7050.stderr +++ b/testsuite/tests/typecheck/should_compile/T7050.stderr @@ -1,5 +1,5 @@ T7050.hs:3:14: Warning: - Ignoring unusable UNPACK pragma on the first argument of ‛Foo’ - In the definition of data constructor ‛Foo’ - In the data declaration for ‛Foo’ + Ignoring unusable UNPACK pragma on the first argument of ‘Foo’ + In the definition of data constructor ‘Foo’ + In the data declaration for ‘Foo’ diff --git a/testsuite/tests/typecheck/should_compile/T7562.stderr b/testsuite/tests/typecheck/should_compile/T7562.stderr index 36f1de5780..fb663fc639 100644 --- a/testsuite/tests/typecheck/should_compile/T7562.stderr +++ b/testsuite/tests/typecheck/should_compile/T7562.stderr @@ -1,5 +1,5 @@ T7562.hs:3:14: Warning: - UNPACK pragma lacks '!' on the first argument of ‛Pair2’ - In the definition of data constructor ‛Pair2’ - In the data declaration for ‛Pair2’ + UNPACK pragma lacks '!' on the first argument of ‘Pair2’ + In the definition of data constructor ‘Pair2’ + In the data declaration for ‘Pair2’ diff --git a/testsuite/tests/typecheck/should_compile/T7903.stderr-ghc b/testsuite/tests/typecheck/should_compile/T7903.stderr-ghc index 594196a06c..2214c3531f 100644 --- a/testsuite/tests/typecheck/should_compile/T7903.stderr-ghc +++ b/testsuite/tests/typecheck/should_compile/T7903.stderr-ghc @@ -1,10 +1,10 @@ T7903.hs:5:10: Warning: No explicit implementation for - either ‛==’ or ‛/=’ - In the instance declaration for ‛Eq (a -> b)’ + either ‘==’ or ‘/=’ + In the instance declaration for ‘Eq (a -> b)’ T7903.hs:6:10: Warning: No explicit implementation for - either ‛compare’ or ‛<=’ - In the instance declaration for ‛Ord (a -> b)’ + either ‘compare’ or ‘<=’ + In the instance declaration for ‘Ord (a -> b)’ diff --git a/testsuite/tests/typecheck/should_compile/holes.stderr b/testsuite/tests/typecheck/should_compile/holes.stderr index 2985863b63..da1408ff09 100644 --- a/testsuite/tests/typecheck/should_compile/holes.stderr +++ b/testsuite/tests/typecheck/should_compile/holes.stderr @@ -1,33 +1,33 @@ holes.hs:3:5: Warning: - Found hole ‛_’ with type: t - Where: ‛t’ is a rigid type variable bound by + Found hole ‘_’ with type: t + Where: ‘t’ is a rigid type variable bound by the inferred type of f :: t at holes.hs:3:1 Relevant bindings include f :: t (bound at holes.hs:3:1) In the expression: _ - In an equation for ‛f’: f = _ + In an equation for ‘f’: f = _ holes.hs:6:7: Warning: - Found hole ‛_’ with type: Char + Found hole ‘_’ with type: Char Relevant bindings include x :: Int (bound at holes.hs:6:3) g :: Int -> Char (bound at holes.hs:6:1) In the expression: _ - In an equation for ‛g’: g x = _ + In an equation for ‘g’: g x = _ holes.hs:8:5: Warning: - Found hole ‛_’ with type: [Char] + Found hole ‘_’ with type: [Char] Relevant bindings include h :: [Char] (bound at holes.hs:8:1) - In the first argument of ‛(++)’, namely ‛_’ + In the first argument of ‘(++)’, namely ‘_’ In the expression: _ ++ "a" - In an equation for ‛h’: h = _ ++ "a" + In an equation for ‘h’: h = _ ++ "a" holes.hs:11:15: Warning: - Found hole ‛_’ with type: b0 - Where: ‛b0’ is an ambiguous type variable + Found hole ‘_’ with type: b0 + Where: ‘b0’ is an ambiguous type variable Relevant bindings include y :: [a] (bound at holes.hs:11:3) z :: [a] -> [a] (bound at holes.hs:11:1) - In the second argument of ‛const’, namely ‛_’ + In the second argument of ‘const’, namely ‘_’ In the expression: const y _ - In an equation for ‛z’: z y = const y _ + In an equation for ‘z’: z y = const y _ diff --git a/testsuite/tests/typecheck/should_compile/holes2.stderr b/testsuite/tests/typecheck/should_compile/holes2.stderr index d75b5f3f1a..e953827e4a 100644 --- a/testsuite/tests/typecheck/should_compile/holes2.stderr +++ b/testsuite/tests/typecheck/should_compile/holes2.stderr @@ -1,20 +1,20 @@ holes2.hs:3:5: Warning: - No instance for (Show a0) arising from a use of ‛show’ - The type variable ‛a0’ is ambiguous + No instance for (Show a0) arising from a use of ‘show’ + The type variable ‘a0’ is ambiguous Note: there are several potential instances: - instance Show Double -- Defined in ‛GHC.Float’ - instance Show Float -- Defined in ‛GHC.Float’ + instance Show Double -- Defined in ‘GHC.Float’ + instance Show Float -- Defined in ‘GHC.Float’ instance (Integral a, Show a) => Show (GHC.Real.Ratio a) - -- Defined in ‛GHC.Real’ + -- Defined in ‘GHC.Real’ ...plus 24 others In the expression: show _ - In an equation for ‛f’: f = show _ + In an equation for ‘f’: f = show _ holes2.hs:3:10: Warning: - Found hole ‛_’ with type: a0 - Where: ‛a0’ is an ambiguous type variable + Found hole ‘_’ with type: a0 + Where: ‘a0’ is an ambiguous type variable Relevant bindings include f :: String (bound at holes2.hs:3:1) - In the first argument of ‛show’, namely ‛_’ + In the first argument of ‘show’, namely ‘_’ In the expression: show _ - In an equation for ‛f’: f = show _ + In an equation for ‘f’: f = show _ diff --git a/testsuite/tests/typecheck/should_compile/holes3.stderr b/testsuite/tests/typecheck/should_compile/holes3.stderr index abfeab0e4a..e203acaa74 100644 --- a/testsuite/tests/typecheck/should_compile/holes3.stderr +++ b/testsuite/tests/typecheck/should_compile/holes3.stderr @@ -1,33 +1,33 @@ holes3.hs:3:5: - Found hole ‛_’ with type: t - Where: ‛t’ is a rigid type variable bound by + Found hole ‘_’ with type: t + Where: ‘t’ is a rigid type variable bound by the inferred type of f :: t at holes3.hs:3:1 Relevant bindings include f :: t (bound at holes3.hs:3:1) In the expression: _ - In an equation for ‛f’: f = _ + In an equation for ‘f’: f = _ holes3.hs:6:7: - Found hole ‛_gr’ with type: Char + Found hole ‘_gr’ with type: Char Relevant bindings include x :: Int (bound at holes3.hs:6:3) g :: Int -> Char (bound at holes3.hs:6:1) In the expression: _gr - In an equation for ‛g’: g x = _gr + In an equation for ‘g’: g x = _gr holes3.hs:8:5: - Found hole ‛_aa’ with type: [Char] + Found hole ‘_aa’ with type: [Char] Relevant bindings include h :: [Char] (bound at holes3.hs:8:1) - In the first argument of ‛(++)’, namely ‛_aa’ + In the first argument of ‘(++)’, namely ‘_aa’ In the expression: _aa ++ "a" - In an equation for ‛h’: h = _aa ++ "a" + In an equation for ‘h’: h = _aa ++ "a" holes3.hs:11:15: - Found hole ‛_x’ with type: b0 - Where: ‛b0’ is an ambiguous type variable + Found hole ‘_x’ with type: b0 + Where: ‘b0’ is an ambiguous type variable Relevant bindings include y :: [a] (bound at holes3.hs:11:3) z :: [a] -> [a] (bound at holes3.hs:11:1) - In the second argument of ‛const’, namely ‛_x’ + In the second argument of ‘const’, namely ‘_x’ In the expression: const y _x - In an equation for ‛z’: z y = const y _x + In an equation for ‘z’: z y = const y _x diff --git a/testsuite/tests/typecheck/should_compile/tc056.stderr b/testsuite/tests/typecheck/should_compile/tc056.stderr index c05f9b3bc2..0c8f669b30 100644 --- a/testsuite/tests/typecheck/should_compile/tc056.stderr +++ b/testsuite/tests/typecheck/should_compile/tc056.stderr @@ -3,4 +3,4 @@ tc056.hs:16:10: Warning: Duplicate constraint(s): Eq' a In the context: (Eq' a, Eq' a) While checking an instance declaration - In the instance declaration for ‛Eq' [a]’ + In the instance declaration for ‘Eq' [a]’ diff --git a/testsuite/tests/typecheck/should_compile/tc078.stderr-ghc b/testsuite/tests/typecheck/should_compile/tc078.stderr-ghc index 5eae74e23f..bb5d9f566e 100644 --- a/testsuite/tests/typecheck/should_compile/tc078.stderr-ghc +++ b/testsuite/tests/typecheck/should_compile/tc078.stderr-ghc @@ -1,10 +1,10 @@ tc078.hs:7:10: Warning: No explicit implementation for - either ‛==’ or ‛/=’ - In the instance declaration for ‛Eq (Bar a)’ + either ‘==’ or ‘/=’ + In the instance declaration for ‘Eq (Bar a)’ tc078.hs:8:10: Warning: No explicit implementation for - either ‛compare’ or ‛<=’ - In the instance declaration for ‛Ord (Bar a)’ + either ‘compare’ or ‘<=’ + In the instance declaration for ‘Ord (Bar a)’ diff --git a/testsuite/tests/typecheck/should_compile/tc115.stderr-ghc b/testsuite/tests/typecheck/should_compile/tc115.stderr-ghc index c9f18fb3c0..e90ef21e12 100644 --- a/testsuite/tests/typecheck/should_compile/tc115.stderr-ghc +++ b/testsuite/tests/typecheck/should_compile/tc115.stderr-ghc @@ -1,5 +1,5 @@ tc115.hs:12:10: Warning: No explicit implementation for - ‛foo’ - In the instance declaration for ‛Foo [m a] (m a)’ + ‘foo’ + In the instance declaration for ‘Foo [m a] (m a)’ diff --git a/testsuite/tests/typecheck/should_compile/tc116.stderr-ghc b/testsuite/tests/typecheck/should_compile/tc116.stderr-ghc index 641f541290..91fa0a1130 100644 --- a/testsuite/tests/typecheck/should_compile/tc116.stderr-ghc +++ b/testsuite/tests/typecheck/should_compile/tc116.stderr-ghc @@ -1,5 +1,5 @@ tc116.hs:12:10: Warning: No explicit implementation for - ‛foo’ - In the instance declaration for ‛Foo [m a] (m a)’ + ‘foo’ + In the instance declaration for ‘Foo [m a] (m a)’ diff --git a/testsuite/tests/typecheck/should_compile/tc125.stderr-ghc b/testsuite/tests/typecheck/should_compile/tc125.stderr-ghc index 5b92b3321e..5631c08a1c 100644 --- a/testsuite/tests/typecheck/should_compile/tc125.stderr-ghc +++ b/testsuite/tests/typecheck/should_compile/tc125.stderr-ghc @@ -1,25 +1,25 @@ tc125.hs:16:10: Warning: No explicit implementation for - ‛add’ - In the instance declaration for ‛Add Z a a’ + ‘add’ + In the instance declaration for ‘Add Z a a’ tc125.hs:17:10: Warning: No explicit implementation for - ‛add’ - In the instance declaration for ‛Add (S a) b (S c)’ + ‘add’ + In the instance declaration for ‘Add (S a) b (S c)’ tc125.hs:21:10: Warning: No explicit implementation for - ‛mul’ - In the instance declaration for ‛Mul Z a Z’ + ‘mul’ + In the instance declaration for ‘Mul Z a Z’ tc125.hs:22:10: Warning: No explicit implementation for - ‛mul’ - In the instance declaration for ‛Mul (S a) b d’ + ‘mul’ + In the instance declaration for ‘Mul (S a) b d’ tc125.hs:29:10: Warning: No explicit implementation for - ‛add’ - In the instance declaration for ‛Add (Q a b) (Q c d) (Q ad_bc bd)’ + ‘add’ + In the instance declaration for ‘Add (Q a b) (Q c d) (Q ad_bc bd)’ diff --git a/testsuite/tests/typecheck/should_compile/tc126.stderr-ghc b/testsuite/tests/typecheck/should_compile/tc126.stderr-ghc index 1e84ac3d95..4adc2a29f4 100644 --- a/testsuite/tests/typecheck/should_compile/tc126.stderr-ghc +++ b/testsuite/tests/typecheck/should_compile/tc126.stderr-ghc @@ -1,10 +1,10 @@ tc126.hs:15:25: Warning: No explicit implementation for - ‛bug’ - In the instance declaration for ‛Bug (Int -> r) Int r’ + ‘bug’ + In the instance declaration for ‘Bug (Int -> r) Int r’ tc126.hs:16:10: Warning: No explicit implementation for - ‛bug’ - In the instance declaration for ‛Bug f (c a) (c r)’ + ‘bug’ + In the instance declaration for ‘Bug f (c a) (c r)’ diff --git a/testsuite/tests/typecheck/should_compile/tc141.stderr b/testsuite/tests/typecheck/should_compile/tc141.stderr index b63aa997ce..9279d033b5 100644 --- a/testsuite/tests/typecheck/should_compile/tc141.stderr +++ b/testsuite/tests/typecheck/should_compile/tc141.stderr @@ -1,14 +1,14 @@ tc141.hs:11:12: - You cannot bind scoped type variable ‛a’ + You cannot bind scoped type variable ‘a’ in a pattern binding signature In the pattern: p :: a In the pattern: (p :: a, q :: a) In a pattern binding: (p :: a, q :: a) = x tc141.hs:11:31: - Couldn't match expected type ‛a1’ with actual type ‛a’ - because type variable ‛a1’ would escape its scope + Couldn't match expected type ‘a1’ with actual type ‘a’ + because type variable ‘a1’ would escape its scope This (rigid, skolem) type variable is bound by an expression type signature: a1 at tc141.hs:11:31-34 @@ -21,7 +21,7 @@ tc141.hs:11:31: In the expression: (q :: a, p) tc141.hs:13:13: - You cannot bind scoped type variable ‛a’ + You cannot bind scoped type variable ‘a’ in a pattern binding signature In the pattern: y :: a In a pattern binding: y :: a = a @@ -33,8 +33,8 @@ tc141.hs:13:13: in v tc141.hs:15:18: - Couldn't match expected type ‛a2’ with actual type ‛t’ - because type variable ‛a2’ would escape its scope + Couldn't match expected type ‘a2’ with actual type ‘t’ + because type variable ‘a2’ would escape its scope This (rigid, skolem) type variable is bound by the type signature for v :: a2 at tc141.hs:14:19 @@ -43,4 +43,4 @@ tc141.hs:15:18: b :: t (bound at tc141.hs:13:5) g :: a -> t -> a1 (bound at tc141.hs:13:1) In the expression: b - In an equation for ‛v’: v = b + In an equation for ‘v’: v = b diff --git a/testsuite/tests/typecheck/should_compile/tc161.stderr-ghc b/testsuite/tests/typecheck/should_compile/tc161.stderr-ghc index a91168c22a..163fde19cd 100644 --- a/testsuite/tests/typecheck/should_compile/tc161.stderr-ghc +++ b/testsuite/tests/typecheck/should_compile/tc161.stderr-ghc @@ -1,5 +1,5 @@ tc161.hs:17:10: Warning: No explicit implementation for - ‛op’ - In the instance declaration for ‛Foo Int’ + ‘op’ + In the instance declaration for ‘Foo Int’ diff --git a/testsuite/tests/typecheck/should_compile/tc167.stderr b/testsuite/tests/typecheck/should_compile/tc167.stderr index 32d0c80c43..5d869af801 100644 --- a/testsuite/tests/typecheck/should_compile/tc167.stderr +++ b/testsuite/tests/typecheck/should_compile/tc167.stderr @@ -1,5 +1,5 @@ tc167.hs:8:15:
- Expecting a lifted type, but ‛Int#’ is unlifted
- In the type ‛(->) Int#’
- In the type declaration for ‛T’
+ Expecting a lifted type, but ‘Int#’ is unlifted
+ In the type ‘(->) Int#’
+ In the type declaration for ‘T’
diff --git a/testsuite/tests/typecheck/should_compile/tc168.stderr b/testsuite/tests/typecheck/should_compile/tc168.stderr index 6fbc96f934..de1467b2b4 100644 --- a/testsuite/tests/typecheck/should_compile/tc168.stderr +++ b/testsuite/tests/typecheck/should_compile/tc168.stderr @@ -1,11 +1,11 @@ tc168.hs:17:1: Could not deduce (C a1 (a, b0)) - arising from the ambiguity check for ‛g’ + arising from the ambiguity check for ‘g’ from the context (C a1 (a, b)) - bound by the inferred type for ‛g’: C a1 (a, b) => a1 -> a + bound by the inferred type for ‘g’: C a1 (a, b) => a1 -> a at tc168.hs:17:1-16 - The type variable ‛b0’ is ambiguous - When checking that ‛g’ - has the inferred type ‛forall a b a1. C a1 (a, b) => a1 -> a’ + The type variable ‘b0’ is ambiguous + When checking that ‘g’ + has the inferred type ‘forall a b a1. C a1 (a, b) => a1 -> a’ Probable cause: the inferred type is ambiguous diff --git a/testsuite/tests/typecheck/should_compile/tc175.stderr b/testsuite/tests/typecheck/should_compile/tc175.stderr index 982cee89b7..b7a0eedb68 100644 --- a/testsuite/tests/typecheck/should_compile/tc175.stderr +++ b/testsuite/tests/typecheck/should_compile/tc175.stderr @@ -1,5 +1,5 @@ tc175.hs:13:10: Warning: No explicit implementation for - either ‛showsPrec’ or ‛show’ - In the instance declaration for ‛Show (a -> b)’ + either ‘showsPrec’ or ‘show’ + In the instance declaration for ‘Show (a -> b)’ diff --git a/testsuite/tests/typecheck/should_compile/tc211.stderr b/testsuite/tests/typecheck/should_compile/tc211.stderr index 00e1d0351d..bdc5bd1879 100644 --- a/testsuite/tests/typecheck/should_compile/tc211.stderr +++ b/testsuite/tests/typecheck/should_compile/tc211.stderr @@ -1,73 +1,73 @@ tc211.hs:15:22: - Couldn't match type ‛forall a6. a6 -> a6’ with ‛a -> a’ + Couldn't match type ‘forall a6. a6 -> a6’ with ‘a -> a’ Expected type: [a -> a] Actual type: [forall a. a -> a] - In the first argument of ‛head’, namely ‛foo’ - In the first argument of ‛(:) :: + In the first argument of ‘head’, namely ‘foo’ + In the first argument of ‘(:) :: (forall a. a -> a) -> [forall a. a -> a] -> [forall a. a -> a]’, namely - ‛(head foo)’ + ‘(head foo)’ tc211.hs:48:19: - Could not deduce (Num a2) arising from the literal ‛3’ + Could not deduce (Num a2) arising from the literal ‘3’ from the context (Num a) bound by the inferred type of h1 :: Num a => (forall a1. a1 -> a1) -> a at tc211.hs:(47,1)-(49,9) - The type variable ‛a2’ is ambiguous + The type variable ‘a2’ is ambiguous Relevant bindings include y :: Pair a2 (Pair a3 b1) (bound at tc211.hs:48:10) Note: there are several potential instances: - instance Num Double -- Defined in ‛GHC.Float’ - instance Num Float -- Defined in ‛GHC.Float’ + instance Num Double -- Defined in ‘GHC.Float’ + instance Num Float -- Defined in ‘GHC.Float’ instance Integral a => Num (GHC.Real.Ratio a) - -- Defined in ‛GHC.Real’ + -- Defined in ‘GHC.Real’ ...plus three others - In the first argument of ‛g’, namely ‛3’ - In the first argument of ‛P’, namely ‛(g 3)’ + In the first argument of ‘g’, namely ‘3’ + In the first argument of ‘P’, namely ‘(g 3)’ In the expression: P (g 3) (g (P 3 4)) tc211.hs:48:28: - Could not deduce (Num a3) arising from the literal ‛3’ + Could not deduce (Num a3) arising from the literal ‘3’ from the context (Num a) bound by the inferred type of h1 :: Num a => (forall a1. a1 -> a1) -> a at tc211.hs:(47,1)-(49,9) - The type variable ‛a3’ is ambiguous + The type variable ‘a3’ is ambiguous Relevant bindings include y :: Pair a2 (Pair a3 b1) (bound at tc211.hs:48:10) Note: there are several potential instances: - instance Num Double -- Defined in ‛GHC.Float’ - instance Num Float -- Defined in ‛GHC.Float’ + instance Num Double -- Defined in ‘GHC.Float’ + instance Num Float -- Defined in ‘GHC.Float’ instance Integral a => Num (GHC.Real.Ratio a) - -- Defined in ‛GHC.Real’ + -- Defined in ‘GHC.Real’ ...plus three others - In the first argument of ‛P’, namely ‛3’ - In the first argument of ‛g’, namely ‛(P 3 4)’ - In the second argument of ‛P’, namely ‛(g (P 3 4))’ + In the first argument of ‘P’, namely ‘3’ + In the first argument of ‘g’, namely ‘(P 3 4)’ + In the second argument of ‘P’, namely ‘(g (P 3 4))’ tc211.hs:48:30: - Could not deduce (Num b1) arising from the literal ‛4’ + Could not deduce (Num b1) arising from the literal ‘4’ from the context (Num a) bound by the inferred type of h1 :: Num a => (forall a1. a1 -> a1) -> a at tc211.hs:(47,1)-(49,9) - The type variable ‛b1’ is ambiguous + The type variable ‘b1’ is ambiguous Relevant bindings include y :: Pair a2 (Pair a3 b1) (bound at tc211.hs:48:10) Note: there are several potential instances: - instance Num Double -- Defined in ‛GHC.Float’ - instance Num Float -- Defined in ‛GHC.Float’ + instance Num Double -- Defined in ‘GHC.Float’ + instance Num Float -- Defined in ‘GHC.Float’ instance Integral a => Num (GHC.Real.Ratio a) - -- Defined in ‛GHC.Real’ + -- Defined in ‘GHC.Real’ ...plus three others - In the second argument of ‛P’, namely ‛4’ - In the first argument of ‛g’, namely ‛(P 3 4)’ - In the second argument of ‛P’, namely ‛(g (P 3 4))’ + In the second argument of ‘P’, namely ‘4’ + In the first argument of ‘g’, namely ‘(P 3 4)’ + In the second argument of ‘P’, namely ‘(g (P 3 4))’ tc211.hs:70:9: - Couldn't match type ‛forall a7. a7 -> a7’ with ‛a6 -> a6’ + Couldn't match type ‘forall a7. a7 -> a7’ with ‘a6 -> a6’ Expected type: List (forall a. a -> a) -> (forall a. a -> a) -> a6 -> a6 Actual type: List (forall a. a -> a) diff --git a/testsuite/tests/typecheck/should_compile/tc254.stderr b/testsuite/tests/typecheck/should_compile/tc254.stderr index a721c7e3b4..885b505828 100644 --- a/testsuite/tests/typecheck/should_compile/tc254.stderr +++ b/testsuite/tests/typecheck/should_compile/tc254.stderr @@ -1,4 +1,4 @@ tc254.hs:8:1: Warning: - No explicit associated type or default declaration for ‛Typ’ - In the instance declaration for ‛Cls Int’ + No explicit associated type or default declaration for ‘Typ’ + In the instance declaration for ‘Cls Int’ diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef01.stderr b/testsuite/tests/typecheck/should_fail/AssocTyDef01.stderr index e342e900a6..b865437c86 100644 --- a/testsuite/tests/typecheck/should_fail/AssocTyDef01.stderr +++ b/testsuite/tests/typecheck/should_fail/AssocTyDef01.stderr @@ -1,3 +1,3 @@ AssocTyDef01.hs:9:10: - ‛OtherType’ is not a (visible) associated type of class ‛Cls’ + ‘OtherType’ is not a (visible) associated type of class ‘Cls’ diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef02.stderr b/testsuite/tests/typecheck/should_fail/AssocTyDef02.stderr index 749e42c991..9b3ac0e364 100644 --- a/testsuite/tests/typecheck/should_fail/AssocTyDef02.stderr +++ b/testsuite/tests/typecheck/should_fail/AssocTyDef02.stderr @@ -1,6 +1,6 @@ AssocTyDef02.hs:6:10: Type indexes must match class instance head - Found ‛[b]’ but expected ‛a’ - In the type synonym instance default declaration for ‛Typ’ - In the class declaration for ‛Cls’ + Found ‘[b]’ but expected ‘a’ + In the type synonym instance default declaration for ‘Typ’ + In the class declaration for ‘Cls’ diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef03.stderr b/testsuite/tests/typecheck/should_fail/AssocTyDef03.stderr index 82e9b0f3a3..e62a2afcc5 100644 --- a/testsuite/tests/typecheck/should_fail/AssocTyDef03.stderr +++ b/testsuite/tests/typecheck/should_fail/AssocTyDef03.stderr @@ -1,5 +1,5 @@ AssocTyDef03.hs:6:5: Wrong category of family instance; declaration was for a data type - In the type instance declaration for ‛Typ’ - In the class declaration for ‛Cls’ + In the type instance declaration for ‘Typ’ + In the class declaration for ‘Cls’ diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef04.stderr b/testsuite/tests/typecheck/should_fail/AssocTyDef04.stderr index b03eb045e5..550d09895f 100644 --- a/testsuite/tests/typecheck/should_fail/AssocTyDef04.stderr +++ b/testsuite/tests/typecheck/should_fail/AssocTyDef04.stderr @@ -1,7 +1,7 @@ AssocTyDef04.hs:6:18: - Expecting one more argument to ‛Maybe’ - Expected kind ‛*’, but ‛Maybe’ has kind ‛* -> *’ - In the type ‛Maybe’ - In the type instance declaration for ‛Typ’ - In the class declaration for ‛Cls’ + Expecting one more argument to ‘Maybe’ + Expected kind ‘*’, but ‘Maybe’ has kind ‘* -> *’ + In the type ‘Maybe’ + In the type instance declaration for ‘Typ’ + In the class declaration for ‘Cls’ diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef05.stderr b/testsuite/tests/typecheck/should_fail/AssocTyDef05.stderr index 5d003e9a42..8f5b5a5316 100644 --- a/testsuite/tests/typecheck/should_fail/AssocTyDef05.stderr +++ b/testsuite/tests/typecheck/should_fail/AssocTyDef05.stderr @@ -1,5 +1,5 @@ AssocTyDef05.hs:6:10: Number of parameters must match family declaration; expected 1 - In the type synonym instance default declaration for ‛Typ’ - In the class declaration for ‛Cls’ + In the type synonym instance default declaration for ‘Typ’ + In the class declaration for ‘Cls’ diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef06.stderr b/testsuite/tests/typecheck/should_fail/AssocTyDef06.stderr index fb7f91033c..29db541832 100644 --- a/testsuite/tests/typecheck/should_fail/AssocTyDef06.stderr +++ b/testsuite/tests/typecheck/should_fail/AssocTyDef06.stderr @@ -1,5 +1,5 @@ AssocTyDef06.hs:6:10: Number of parameters must match family declaration; expected no more than 1 - In the type instance declaration for ‛Typ’ - In the class declaration for ‛Cls’ + In the type instance declaration for ‘Typ’ + In the class declaration for ‘Cls’ diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef07.stderr b/testsuite/tests/typecheck/should_fail/AssocTyDef07.stderr index 151f5a9b8f..c4498ed583 100644 --- a/testsuite/tests/typecheck/should_fail/AssocTyDef07.stderr +++ b/testsuite/tests/typecheck/should_fail/AssocTyDef07.stderr @@ -1,3 +1,3 @@ AssocTyDef07.hs:5:10: - ‛Typ’ is not a (visible) associated type of class ‛Cls’ + ‘Typ’ is not a (visible) associated type of class ‘Cls’ diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef08.stderr b/testsuite/tests/typecheck/should_fail/AssocTyDef08.stderr index 97147c7dfd..d63d369570 100644 --- a/testsuite/tests/typecheck/should_fail/AssocTyDef08.stderr +++ b/testsuite/tests/typecheck/should_fail/AssocTyDef08.stderr @@ -1,3 +1,3 @@ AssocTyDef08.hs:4:10: - ‛Typ’ is not a (visible) associated type of class ‛Cls’ + ‘Typ’ is not a (visible) associated type of class ‘Cls’ diff --git a/testsuite/tests/typecheck/should_fail/AssocTyDef09.stderr b/testsuite/tests/typecheck/should_fail/AssocTyDef09.stderr index 3f8c113289..c6dfdeb0da 100644 --- a/testsuite/tests/typecheck/should_fail/AssocTyDef09.stderr +++ b/testsuite/tests/typecheck/should_fail/AssocTyDef09.stderr @@ -1,3 +1,3 @@ AssocTyDef09.hs:8:10: - ‛OtherType’ is not a (visible) associated type of class ‛Cls’ + ‘OtherType’ is not a (visible) associated type of class ‘Cls’ diff --git a/testsuite/tests/typecheck/should_fail/ContextStack1.stderr b/testsuite/tests/typecheck/should_fail/ContextStack1.stderr index 425c79a2fe..d11a6255ed 100644 --- a/testsuite/tests/typecheck/should_fail/ContextStack1.stderr +++ b/testsuite/tests/typecheck/should_fail/ContextStack1.stderr @@ -4,4 +4,4 @@ ContextStack1.hs:10:5: Use -fcontext-stack=N to increase stack size to N Cls [[[[[[[[[[[()]]]]]]]]]]] In the expression: meth - In an equation for ‛t’: t = meth + In an equation for ‘t’: t = meth diff --git a/testsuite/tests/typecheck/should_fail/ContextStack2.stderr b/testsuite/tests/typecheck/should_fail/ContextStack2.stderr index 210e22d8db..a9c5cbc13a 100644 --- a/testsuite/tests/typecheck/should_fail/ContextStack2.stderr +++ b/testsuite/tests/typecheck/should_fail/ContextStack2.stderr @@ -6,4 +6,4 @@ ContextStack2.hs:8:6: TF (TF (TF (TF (TF (TF (TF (TF (TF (TF (TF Int))))))))))) ~ TF (TF (TF (TF (TF (TF (TF (TF (TF (TF a))))))))) In the ambiguity check for: forall a. a ~ TF (a, Int) => Int - In the type signature for ‛t’: t :: a ~ TF (a, Int) => Int + In the type signature for ‘t’: t :: a ~ TF (a, Int) => Int diff --git a/testsuite/tests/typecheck/should_fail/FDsFromGivens.stderr b/testsuite/tests/typecheck/should_fail/FDsFromGivens.stderr index cb47049f06..56d3006260 100644 --- a/testsuite/tests/typecheck/should_fail/FDsFromGivens.stderr +++ b/testsuite/tests/typecheck/should_fail/FDsFromGivens.stderr @@ -1,10 +1,10 @@ FDsFromGivens.hs:21:15:
- Could not deduce (C Char [a]) arising from a use of ‛f’
+ Could not deduce (C Char [a]) arising from a use of ‘f’
from the context (C Char Char)
bound by a pattern with constructor
KCC :: C Char Char => () -> KCC,
- in an equation for ‛bar’
+ in an equation for ‘bar’
at FDsFromGivens.hs:21:6-10
In the expression: f
- In an equation for ‛bar’: bar (KCC _) = f
+ In an equation for ‘bar’: bar (KCC _) = f
diff --git a/testsuite/tests/typecheck/should_fail/FailDueToGivenOverlapping.stderr b/testsuite/tests/typecheck/should_fail/FailDueToGivenOverlapping.stderr index 74e0bc7341..5ccc035c76 100644 --- a/testsuite/tests/typecheck/should_fail/FailDueToGivenOverlapping.stderr +++ b/testsuite/tests/typecheck/should_fail/FailDueToGivenOverlapping.stderr @@ -1,12 +1,12 @@ FailDueToGivenOverlapping.hs:27:9: - Overlapping instances for E [t0] arising from a use of ‛eop’ + Overlapping instances for E [t0] arising from a use of ‘eop’ Matching givens (or their superclasses): (E [Int]) bound by the type signature for bar :: E [Int] => () -> () at FailDueToGivenOverlapping.hs:26:8-26 Matching instances: instance E [a] -- Defined at FailDueToGivenOverlapping.hs:21:10 - (The choice depends on the instantiation of ‛t0’) + (The choice depends on the instantiation of ‘t0’) In the expression: eop [undefined] - In an equation for ‛bar’: bar _ = eop [undefined] + In an equation for ‘bar’: bar _ = eop [undefined] diff --git a/testsuite/tests/typecheck/should_fail/FrozenErrorTests.stderr b/testsuite/tests/typecheck/should_fail/FrozenErrorTests.stderr index 471643b574..848920c181 100644 --- a/testsuite/tests/typecheck/should_fail/FrozenErrorTests.stderr +++ b/testsuite/tests/typecheck/should_fail/FrozenErrorTests.stderr @@ -1,6 +1,6 @@ FrozenErrorTests.hs:12:12:
- Couldn't match type ‛Int’ with ‛Bool’
+ Couldn't match type ‘Int’ with ‘Bool’
Inaccessible code in
a pattern with constructor
MkT3 :: forall a. a ~ Bool => T a,
@@ -16,38 +16,38 @@ FrozenErrorTests.hs:26:9: Relevant bindings include
test1 :: a (bound at FrozenErrorTests.hs:26:1)
In the expression: goo1 False undefined
- In an equation for ‛test1’: test1 = goo1 False undefined
+ In an equation for ‘test1’: test1 = goo1 False undefined
FrozenErrorTests.hs:29:15:
- Couldn't match type ‛Int’ with ‛[Int]’
+ Couldn't match type ‘Int’ with ‘[Int]’
Expected type: [[Int]]
Actual type: F [Int] Bool
- In the first argument of ‛goo2’, namely ‛(goo1 False undefined)’
+ In the first argument of ‘goo2’, namely ‘(goo1 False undefined)’
In the expression: goo2 (goo1 False undefined)
- In an equation for ‛test2’: test2 = goo2 (goo1 False undefined)
+ In an equation for ‘test2’: test2 = goo2 (goo1 False undefined)
FrozenErrorTests.hs:30:9:
- Couldn't match type ‛[Int]’ with ‛Int’
+ Couldn't match type ‘[Int]’ with ‘Int’
Expected type: [[Int]]
Actual type: F [Int] Bool
In the expression: goo1 False (goo2 undefined)
- In an equation for ‛test3’: test3 = goo1 False (goo2 undefined)
+ In an equation for ‘test3’: test3 = goo1 False (goo2 undefined)
FrozenErrorTests.hs:45:15:
- Couldn't match type ‛T2 c c’ with ‛M (T2 (T2 c c) c)’
+ Couldn't match type ‘T2 c c’ with ‘M (T2 (T2 c c) c)’
Expected type: T2 (M (T2 (T2 c c) c)) (T2 (T2 c c) c)
Actual type: F (T2 (T2 c c) c) Bool
Relevant bindings include
test4 :: T2 (T2 c c) c (bound at FrozenErrorTests.hs:45:1)
- In the first argument of ‛goo4’, namely ‛(goo3 False undefined)’
+ In the first argument of ‘goo4’, namely ‘(goo3 False undefined)’
In the expression: goo4 (goo3 False undefined)
- In an equation for ‛test4’: test4 = goo4 (goo3 False undefined)
+ In an equation for ‘test4’: test4 = goo4 (goo3 False undefined)
FrozenErrorTests.hs:46:9:
- Couldn't match type ‛T2 c c’ with ‛M (T2 (T2 c c) c)’
+ Couldn't match type ‘T2 c c’ with ‘M (T2 (T2 c c) c)’
Expected type: T2 (M (T2 (T2 c c) c)) (T2 (T2 c c) c)
Actual type: F (T2 (T2 c c) c) Bool
Relevant bindings include
test5 :: T2 (T2 c c) c (bound at FrozenErrorTests.hs:46:1)
In the expression: goo3 False (goo4 undefined)
- In an equation for ‛test5’: test5 = goo3 False (goo4 undefined)
+ In an equation for ‘test5’: test5 = goo3 False (goo4 undefined)
diff --git a/testsuite/tests/typecheck/should_fail/IPFail.stderr b/testsuite/tests/typecheck/should_fail/IPFail.stderr index 127693a5ca..c617cfb776 100644 --- a/testsuite/tests/typecheck/should_fail/IPFail.stderr +++ b/testsuite/tests/typecheck/should_fail/IPFail.stderr @@ -1,9 +1,9 @@ IPFail.hs:6:18: - Could not deduce (Num Bool) arising from the literal ‛5’ + Could not deduce (Num Bool) arising from the literal ‘5’ from the context (?x::Int) bound by the type signature for f0 :: (?x::Int) => () -> Bool at IPFail.hs:5:7-31 In the expression: 5 In the expression: let ?x = 5 in ?x - In an equation for ‛f0’: f0 () = let ?x = 5 in ?x + In an equation for ‘f0’: f0 () = let ?x = 5 in ?x diff --git a/testsuite/tests/typecheck/should_fail/LongWayOverlapping.stderr b/testsuite/tests/typecheck/should_fail/LongWayOverlapping.stderr index d50cc847dd..753ee0f2af 100644 --- a/testsuite/tests/typecheck/should_fail/LongWayOverlapping.stderr +++ b/testsuite/tests/typecheck/should_fail/LongWayOverlapping.stderr @@ -1,7 +1,7 @@ LongWayOverlapping.hs:23:11: No instance for (EmbAsChild [Char] Char) - arising from a use of ‛emb’ + arising from a use of ‘emb’ In the expression: emb 'c' - In an equation for ‛emb’: emb _ = emb 'c' - In the instance declaration for ‛EmbAsChild [Char] Bool’ + In an equation for ‘emb’: emb _ = emb 'c' + In the instance declaration for ‘EmbAsChild [Char] Bool’ diff --git a/testsuite/tests/typecheck/should_fail/SCLoop.stderr b/testsuite/tests/typecheck/should_fail/SCLoop.stderr index 309dd91af0..90fe75cd3e 100644 --- a/testsuite/tests/typecheck/should_fail/SCLoop.stderr +++ b/testsuite/tests/typecheck/should_fail/SCLoop.stderr @@ -1,5 +1,5 @@ SCLoop.hs:22:7: - No instance for (SC ()) arising from a use of ‛op’ + No instance for (SC ()) arising from a use of ‘op’ In the expression: op () ([Just True]) - In an equation for ‛foo’: foo = op () ([Just True]) + In an equation for ‘foo’: foo = op () ([Just True]) diff --git a/testsuite/tests/typecheck/should_fail/SilentParametersOverlapping.stderr b/testsuite/tests/typecheck/should_fail/SilentParametersOverlapping.stderr index 255e6513eb..62d1c7820b 100644 --- a/testsuite/tests/typecheck/should_fail/SilentParametersOverlapping.stderr +++ b/testsuite/tests/typecheck/should_fail/SilentParametersOverlapping.stderr @@ -1,13 +1,13 @@ SilentParametersOverlapping.hs:15:9: - Overlapping instances for C [(t0, t1)] arising from a use of ‛c’ + Overlapping instances for C [(t0, t1)] arising from a use of ‘c’ Matching givens (or their superclasses): (C [(a, b)]) bound by the instance declaration at SilentParametersOverlapping.hs:14:37-45 Matching instances: instance C [a] -- Defined at SilentParametersOverlapping.hs:11:10 - (The choice depends on the instantiation of ‛t0, t1’) + (The choice depends on the instantiation of ‘t0, t1’) In the expression: c [(undefined, undefined)] - In an equation for ‛b’: b x = c [(undefined, undefined)] - In the instance declaration for ‛B [(a, b)]’ + In an equation for ‘b’: b x = c [(undefined, undefined)] + In the instance declaration for ‘B [(a, b)]’ diff --git a/testsuite/tests/typecheck/should_fail/T1595.stderr b/testsuite/tests/typecheck/should_fail/T1595.stderr index a84903ded7..1f999c636b 100644 --- a/testsuite/tests/typecheck/should_fail/T1595.stderr +++ b/testsuite/tests/typecheck/should_fail/T1595.stderr @@ -1,6 +1,6 @@ T1595.hs:8:15: - Not in scope: type constructor or class ‛DoesNotExist’ + Not in scope: type constructor or class ‘DoesNotExist’ T1595.hs:13:22: - Not in scope: type constructor or class ‛DoesNotExist’ + Not in scope: type constructor or class ‘DoesNotExist’ diff --git a/testsuite/tests/typecheck/should_fail/T1633.stderr b/testsuite/tests/typecheck/should_fail/T1633.stderr index 8a01bd9fd6..63eced334d 100644 --- a/testsuite/tests/typecheck/should_fail/T1633.stderr +++ b/testsuite/tests/typecheck/should_fail/T1633.stderr @@ -1,5 +1,5 @@ T1633.hs:6:18: - The first argument of ‛Functor’ should have kind ‛* -> *’, - but ‛Bool’ has kind ‛*’ - In the instance declaration for ‛Functor Bool’ + The first argument of ‘Functor’ should have kind ‘* -> *’, + but ‘Bool’ has kind ‘*’ + In the instance declaration for ‘Functor Bool’ diff --git a/testsuite/tests/typecheck/should_fail/T1897a.stderr b/testsuite/tests/typecheck/should_fail/T1897a.stderr index b495f17b1c..8a9e23bb9d 100644 --- a/testsuite/tests/typecheck/should_fail/T1897a.stderr +++ b/testsuite/tests/typecheck/should_fail/T1897a.stderr @@ -1,11 +1,11 @@ T1897a.hs:9:1: Could not deduce (Wob a0 b) - arising from the ambiguity check for ‛foo’ + arising from the ambiguity check for ‘foo’ from the context (Wob a b) - bound by the inferred type for ‛foo’: Wob a b => b -> [b] + bound by the inferred type for ‘foo’: Wob a b => b -> [b] at T1897a.hs:9:1-24 - The type variable ‛a0’ is ambiguous - When checking that ‛foo’ - has the inferred type ‛forall a b. Wob a b => b -> [b]’ + The type variable ‘a0’ is ambiguous + When checking that ‘foo’ + has the inferred type ‘forall a b. Wob a b => b -> [b]’ Probable cause: the inferred type is ambiguous diff --git a/testsuite/tests/typecheck/should_fail/T1899.stderr b/testsuite/tests/typecheck/should_fail/T1899.stderr index 55fc356324..a8baba78cc 100644 --- a/testsuite/tests/typecheck/should_fail/T1899.stderr +++ b/testsuite/tests/typecheck/should_fail/T1899.stderr @@ -1,11 +1,11 @@ T1899.hs:12:29: - Couldn't match expected type ‛a’ with actual type ‛Proposition a0’ - ‛a’ is a rigid type variable bound by + Couldn't match expected type ‘a’ with actual type ‘Proposition a0’ + ‘a’ is a rigid type variable bound by the type signature for transRHS :: [a] -> Int -> Constraint a at T1899.hs:9:14 Relevant bindings include varSet :: [a] (bound at T1899.hs:10:11) transRHS :: [a] -> Int -> Constraint a (bound at T1899.hs:10:2) - In the first argument of ‛Prop’, namely ‛(Auxiliary undefined)’ + In the first argument of ‘Prop’, namely ‘(Auxiliary undefined)’ In the expression: Prop (Auxiliary undefined) diff --git a/testsuite/tests/typecheck/should_fail/T2126.stderr b/testsuite/tests/typecheck/should_fail/T2126.stderr index 1e0a72df2e..c910148317 100644 --- a/testsuite/tests/typecheck/should_fail/T2126.stderr +++ b/testsuite/tests/typecheck/should_fail/T2126.stderr @@ -1,4 +1,4 @@ T2126.hs:5:1: - A newtype must have exactly one constructor, but ‛X’ has none - In the newtype declaration for ‛X’ + A newtype must have exactly one constructor, but ‘X’ has none + In the newtype declaration for ‘X’ diff --git a/testsuite/tests/typecheck/should_fail/T2247.stderr b/testsuite/tests/typecheck/should_fail/T2247.stderr index 6a99d541d6..edf4246b46 100644 --- a/testsuite/tests/typecheck/should_fail/T2247.stderr +++ b/testsuite/tests/typecheck/should_fail/T2247.stderr @@ -1,7 +1,7 @@ T2247.hs:6:10: - Illegal instance declaration for ‛FD a b’ - The liberal coverage condition fails in class ‛FD’ - for functional dependency: ‛a -> b’ - Reason: lhs type ‛a’ does not determine rhs type ‛b’ - In the instance declaration for ‛FD a b’ + Illegal instance declaration for ‘FD a b’ + The liberal coverage condition fails in class ‘FD’ + for functional dependency: ‘a -> b’ + Reason: lhs type ‘a’ does not determine rhs type ‘b’ + In the instance declaration for ‘FD a b’ diff --git a/testsuite/tests/typecheck/should_fail/T2354.stderr b/testsuite/tests/typecheck/should_fail/T2354.stderr index cc0fac9794..5c5fcfcf0e 100644 --- a/testsuite/tests/typecheck/should_fail/T2354.stderr +++ b/testsuite/tests/typecheck/should_fail/T2354.stderr @@ -1,6 +1,6 @@ T2354.hs:4:3: - The NOINLINE pragma for default method ‛toInt’ lacks an accompanying binding + The NOINLINE pragma for default method ‘toInt’ lacks an accompanying binding T2354.hs:6:3: - The NOINLINE pragma for default method ‛fromInt’ lacks an accompanying binding + The NOINLINE pragma for default method ‘fromInt’ lacks an accompanying binding diff --git a/testsuite/tests/typecheck/should_fail/T2414.stderr b/testsuite/tests/typecheck/should_fail/T2414.stderr index cedf04d8cf..7c4310398d 100644 --- a/testsuite/tests/typecheck/should_fail/T2414.stderr +++ b/testsuite/tests/typecheck/should_fail/T2414.stderr @@ -3,5 +3,5 @@ T2414.hs:9:13: Occurs check: cannot construct the infinite type: b0 ~ (Bool, b0) Expected type: b0 -> Maybe (Bool, b0) Actual type: b0 -> Maybe b0 - In the first argument of ‛unfoldr’, namely ‛Just’ + In the first argument of ‘unfoldr’, namely ‘Just’ In the expression: unfoldr Just diff --git a/testsuite/tests/typecheck/should_fail/T2534.stderr b/testsuite/tests/typecheck/should_fail/T2534.stderr index 389b515957..7a0aa3a991 100644 --- a/testsuite/tests/typecheck/should_fail/T2534.stderr +++ b/testsuite/tests/typecheck/should_fail/T2534.stderr @@ -1,8 +1,8 @@ T2534.hs:3:19: - Couldn't match expected type ‛a -> a -> b’ with actual type ‛[t0]’ + Couldn't match expected type ‘a -> a -> b’ with actual type ‘[t0]’ Relevant bindings include foo :: a -> a -> b (bound at T2534.hs:3:1) - In the second argument of ‛foldr’, namely ‛[]’ + In the second argument of ‘foldr’, namely ‘[]’ In the expression: foldr (>>=) [] [] - In an equation for ‛foo’: foo = foldr (>>=) [] [] + In an equation for ‘foo’: foo = foldr (>>=) [] [] diff --git a/testsuite/tests/typecheck/should_fail/T2538.stderr b/testsuite/tests/typecheck/should_fail/T2538.stderr index 9838eb5bff..884eafb271 100644 --- a/testsuite/tests/typecheck/should_fail/T2538.stderr +++ b/testsuite/tests/typecheck/should_fail/T2538.stderr @@ -2,13 +2,13 @@ T2538.hs:6:6: Illegal polymorphic or qualified type: Eq a => a -> a Perhaps you intended to use RankNTypes or Rank2Types - In the type signature for ‛f’: f :: (Eq a => a -> a) -> Int + In the type signature for ‘f’: f :: (Eq a => a -> a) -> Int T2538.hs:9:6: Illegal polymorphic or qualified type: Eq a => a -> a Perhaps you intended to use ImpredicativeTypes - In the type signature for ‛g’: g :: [Eq a => a -> a] -> Int + In the type signature for ‘g’: g :: [Eq a => a -> a] -> Int T2538.hs:12:6: Illegal polymorphic or qualified type: Eq a => a -> a - In the type signature for ‛h’: h :: Ix (Eq a => a -> a) => Int + In the type signature for ‘h’: h :: Ix (Eq a => a -> a) => Int diff --git a/testsuite/tests/typecheck/should_fail/T2688.stderr b/testsuite/tests/typecheck/should_fail/T2688.stderr index 6ee894487d..b117f02f9f 100644 --- a/testsuite/tests/typecheck/should_fail/T2688.stderr +++ b/testsuite/tests/typecheck/should_fail/T2688.stderr @@ -2,15 +2,15 @@ T2688.hs:8:22: Could not deduce (s ~ v) from the context (VectorSpace v s) - bound by the class declaration for ‛VectorSpace’ + bound by the class declaration for ‘VectorSpace’ at T2688.hs:(5,1)-(8,23) - ‛s’ is a rigid type variable bound by - the class declaration for ‛VectorSpace’ at T2688.hs:5:21 - ‛v’ is a rigid type variable bound by - the class declaration for ‛VectorSpace’ at T2688.hs:5:19 + ‘s’ is a rigid type variable bound by + the class declaration for ‘VectorSpace’ at T2688.hs:5:21 + ‘v’ is a rigid type variable bound by + the class declaration for ‘VectorSpace’ at T2688.hs:5:19 Relevant bindings include s :: s (bound at T2688.hs:8:10) v :: v (bound at T2688.hs:8:5) (^/) :: v -> s -> v (bound at T2688.hs:8:5) - In the second argument of ‛(/)’, namely ‛s’ - In the second argument of ‛(*^)’, namely ‛(1 / s)’ + In the second argument of ‘(/)’, namely ‘s’ + In the second argument of ‘(*^)’, namely ‘(1 / s)’ diff --git a/testsuite/tests/typecheck/should_fail/T2714.stderr b/testsuite/tests/typecheck/should_fail/T2714.stderr index 4b42c06440..df64852557 100644 --- a/testsuite/tests/typecheck/should_fail/T2714.stderr +++ b/testsuite/tests/typecheck/should_fail/T2714.stderr @@ -1,7 +1,7 @@ T2714.hs:8:5: - Couldn't match type ‛a’ with ‛f0 b’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘f0 b’ + ‘a’ is a rigid type variable bound by the type signature for f :: ((a -> b) -> b) -> forall c. c -> a at T2714.hs:7:6 Expected type: ((a -> b) -> b) -> c -> a @@ -9,11 +9,11 @@ T2714.hs:8:5: Relevant bindings include f :: ((a -> b) -> b) -> forall c. c -> a (bound at T2714.hs:8:1) In the expression: ffmap - In an equation for ‛f’: f = ffmap + In an equation for ‘f’: f = ffmap T2714.hs:8:5: - Couldn't match type ‛c’ with ‛f0 (a -> b)’ - ‛c’ is a rigid type variable bound by + Couldn't match type ‘c’ with ‘f0 (a -> b)’ + ‘c’ is a rigid type variable bound by the type signature for f :: ((a -> b) -> b) -> c -> a at T2714.hs:8:1 Expected type: ((a -> b) -> b) -> c -> a @@ -21,4 +21,4 @@ T2714.hs:8:5: Relevant bindings include f :: ((a -> b) -> b) -> forall c. c -> a (bound at T2714.hs:8:1) In the expression: ffmap - In an equation for ‛f’: f = ffmap + In an equation for ‘f’: f = ffmap diff --git a/testsuite/tests/typecheck/should_fail/T2806.stderr b/testsuite/tests/typecheck/should_fail/T2806.stderr index b0130e223a..25cc8e65a0 100644 --- a/testsuite/tests/typecheck/should_fail/T2806.stderr +++ b/testsuite/tests/typecheck/should_fail/T2806.stderr @@ -2,7 +2,7 @@ T2806.hs:12:11: Pattern bindings containing unlifted types should use an outermost bang pattern: (I# _x) = 4 - In an equation for ‛foo’: + In an equation for ‘foo’: foo = 3 where diff --git a/testsuite/tests/typecheck/should_fail/T2846b.stderr b/testsuite/tests/typecheck/should_fail/T2846b.stderr index 23b6a6a0e2..34d24ae8f6 100644 --- a/testsuite/tests/typecheck/should_fail/T2846b.stderr +++ b/testsuite/tests/typecheck/should_fail/T2846b.stderr @@ -1,5 +1,5 @@ T2846b.hs:5:5: - No instance for (Show (Num a0 => a0)) arising from a use of ‛show’ + No instance for (Show (Num a0 => a0)) arising from a use of ‘show’ In the expression: show ([1, 2, 3] :: [Num a => a]) - In an equation for ‛f’: f = show ([1, 2, 3] :: [Num a => a]) + In an equation for ‘f’: f = show ([1, 2, 3] :: [Num a => a]) diff --git a/testsuite/tests/typecheck/should_fail/T2994.stderr b/testsuite/tests/typecheck/should_fail/T2994.stderr index 2794cb2afc..83e96b45da 100644 --- a/testsuite/tests/typecheck/should_fail/T2994.stderr +++ b/testsuite/tests/typecheck/should_fail/T2994.stderr @@ -1,16 +1,16 @@ T2994.hs:11:10: - Expecting one more argument to ‛MonadReader Int’ + Expecting one more argument to ‘MonadReader Int’ Expected a constraint, - but ‛MonadReader Int’ has kind ‛* -> Constraint’ - In the instance declaration for ‛MonadReader Int’ + but ‘MonadReader Int’ has kind ‘* -> Constraint’ + In the instance declaration for ‘MonadReader Int’ T2994.hs:13:23: - Expecting one more argument to ‛Reader' r’ - The first argument of ‛MonadReader’ should have kind ‛*’, - but ‛Reader' r’ has kind ‛* -> *’ - In the instance declaration for ‛MonadReader (Reader' r)’ + Expecting one more argument to ‘Reader' r’ + The first argument of ‘MonadReader’ should have kind ‘*’, + but ‘Reader' r’ has kind ‘* -> *’ + In the instance declaration for ‘MonadReader (Reader' r)’ T2994.hs:15:10: - ‛MonadReader’ is applied to too many type arguments - In the instance declaration for ‛MonadReader r r (Reader' r)’ + ‘MonadReader’ is applied to too many type arguments + In the instance declaration for ‘MonadReader r r (Reader' r)’ diff --git a/testsuite/tests/typecheck/should_fail/T3102.stderr b/testsuite/tests/typecheck/should_fail/T3102.stderr index 1d4348ed12..d23a2729c1 100644 --- a/testsuite/tests/typecheck/should_fail/T3102.stderr +++ b/testsuite/tests/typecheck/should_fail/T3102.stderr @@ -1,9 +1,9 @@ T3102.hs:11:12: - Couldn't match type ‛a’ with ‛(?p::Int) => a0’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘(?p::Int) => a0’ + ‘a’ is a rigid type variable bound by a type expected by the context: a -> String at T3102.hs:11:10 Expected type: a -> String Actual type: ((?p::Int) => a0) -> String - In the first argument of ‛f’, namely ‛t’ + In the first argument of ‘f’, namely ‘t’ In the expression: f t diff --git a/testsuite/tests/typecheck/should_fail/T3176.stderr b/testsuite/tests/typecheck/should_fail/T3176.stderr index 160eb4769e..50e6b52c78 100644 --- a/testsuite/tests/typecheck/should_fail/T3176.stderr +++ b/testsuite/tests/typecheck/should_fail/T3176.stderr @@ -1,7 +1,7 @@ T3176.hs:9:27: - Cannot use record selector ‛unES’ as a function due to escaped type variables + Cannot use record selector ‘unES’ as a function due to escaped type variables Probable fix: use pattern-matching syntax instead In the expression: unES - In the second argument of ‛($)’, namely ‛unES $ f t’ + In the second argument of ‘($)’, namely ‘unES $ f t’ In the expression: show $ unES $ f t diff --git a/testsuite/tests/typecheck/should_fail/T3323.stderr b/testsuite/tests/typecheck/should_fail/T3323.stderr index 029ef73578..2f8344bb4e 100644 --- a/testsuite/tests/typecheck/should_fail/T3323.stderr +++ b/testsuite/tests/typecheck/should_fail/T3323.stderr @@ -2,4 +2,4 @@ T3323.hs:18:7: Record update for insufficiently polymorphic field: haDevice :: dev In the expression: h {haDevice = undefined} - In an equation for ‛f’: f h = h {haDevice = undefined} + In an equation for ‘f’: f h = h {haDevice = undefined} diff --git a/testsuite/tests/typecheck/should_fail/T3406.stderr b/testsuite/tests/typecheck/should_fail/T3406.stderr index 40779d4f2e..4525bba5d6 100644 --- a/testsuite/tests/typecheck/should_fail/T3406.stderr +++ b/testsuite/tests/typecheck/should_fail/T3406.stderr @@ -1,10 +1,10 @@ T3406.hs:11:6: - The type variables ‛a, b’ - should be bound by the pattern signature ‛ItemColID a b’ + The type variables ‘a, b’ + should be bound by the pattern signature ‘ItemColID a b’ but are actually discarded by a type synonym To fix this, expand the type synonym [Note: I hope to lift this restriction in due course] In the pattern: x :: ItemColID a b - In an equation for ‛get’: + In an equation for ‘get’: get (x :: ItemColID a b) = x :: ItemColID a b diff --git a/testsuite/tests/typecheck/should_fail/T3468.stderr b/testsuite/tests/typecheck/should_fail/T3468.stderr index 010d673e4d..17bc7fba01 100644 --- a/testsuite/tests/typecheck/should_fail/T3468.stderr +++ b/testsuite/tests/typecheck/should_fail/T3468.stderr @@ -1,6 +1,6 @@ T3468.hs-boot:3:1: - Type constructor ‛Tool’ has conflicting definitions in the module + Type constructor ‘Tool’ has conflicting definitions in the module and its hs-boot file Main module: type role Tool phantom data Tool d where diff --git a/testsuite/tests/typecheck/should_fail/T3540.stderr b/testsuite/tests/typecheck/should_fail/T3540.stderr index db84dcd62c..3c447bb1e5 100644 --- a/testsuite/tests/typecheck/should_fail/T3540.stderr +++ b/testsuite/tests/typecheck/should_fail/T3540.stderr @@ -1,20 +1,20 @@ T3540.hs:4:12: - Expected a type, but ‛a ~ Int’ has kind ‛Constraint’ - In the type signature for ‛thing’: thing :: a ~ Int + Expected a type, but ‘a ~ Int’ has kind ‘Constraint’ + In the type signature for ‘thing’: thing :: a ~ Int T3540.hs:7:20: - Expected a type, but ‛a ~ Int’ has kind ‛Constraint’ - In the type signature for ‛thing1’: thing1 :: Int -> (a ~ Int) + Expected a type, but ‘a ~ Int’ has kind ‘Constraint’ + In the type signature for ‘thing1’: thing1 :: Int -> (a ~ Int) T3540.hs:10:13: - Expected a type, but ‛a ~ Int’ has kind ‛Constraint’ - In the type signature for ‛thing2’: thing2 :: (a ~ Int) -> Int + Expected a type, but ‘a ~ Int’ has kind ‘Constraint’ + In the type signature for ‘thing2’: thing2 :: (a ~ Int) -> Int T3540.hs:13:12: - Expected a type, but ‛?dude :: Int’ has kind ‛Constraint’ - In the type signature for ‛thing3’: thing3 :: (?dude :: Int) -> Int + Expected a type, but ‘?dude :: Int’ has kind ‘Constraint’ + In the type signature for ‘thing3’: thing3 :: (?dude :: Int) -> Int T3540.hs:16:11: - Expected a type, but ‛Eq a’ has kind ‛Constraint’ - In the type signature for ‛thing4’: thing4 :: (Eq a) -> Int + Expected a type, but ‘Eq a’ has kind ‘Constraint’ + In the type signature for ‘thing4’: thing4 :: (Eq a) -> Int diff --git a/testsuite/tests/typecheck/should_fail/T3592.stderr b/testsuite/tests/typecheck/should_fail/T3592.stderr index be59667e34..a7f0f28b16 100644 --- a/testsuite/tests/typecheck/should_fail/T3592.stderr +++ b/testsuite/tests/typecheck/should_fail/T3592.stderr @@ -1,13 +1,13 @@ T3592.hs:8:5: - No instance for (Show (T a)) arising from a use of ‛show’ + No instance for (Show (T a)) arising from a use of ‘show’ In the expression: show - In an equation for ‛f’: f = show + In an equation for ‘f’: f = show T3592.hs:11:7: - No instance for (Show a) arising from a use of ‛show’ + No instance for (Show a) arising from a use of ‘show’ Possible fix: add (Show a) to the context of the type signature for g :: T a -> String In the expression: show x - In an equation for ‛g’: g x = show x + In an equation for ‘g’: g x = show x diff --git a/testsuite/tests/typecheck/should_fail/T3613.stderr b/testsuite/tests/typecheck/should_fail/T3613.stderr index cbd4889b57..f230fc469d 100644 --- a/testsuite/tests/typecheck/should_fail/T3613.stderr +++ b/testsuite/tests/typecheck/should_fail/T3613.stderr @@ -1,16 +1,16 @@ T3613.hs:14:20: - Couldn't match type ‛IO’ with ‛Maybe’ + Couldn't match type ‘IO’ with ‘Maybe’ Expected type: Maybe () Actual type: IO () - In the first argument of ‛(>>)’, namely ‛bar’ - In the first argument of ‛fooThen’, namely ‛(bar >> undefined)’ + In the first argument of ‘(>>)’, namely ‘bar’ + In the first argument of ‘fooThen’, namely ‘(bar >> undefined)’ T3613.hs:17:24: - Couldn't match type ‛IO’ with ‛Maybe’ + Couldn't match type ‘IO’ with ‘Maybe’ Expected type: Maybe () Actual type: IO () In a stmt of a 'do' block: bar - In the first argument of ‛fooThen’, namely - ‛(do { bar; + In the first argument of ‘fooThen’, namely + ‘(do { bar; undefined })’ diff --git a/testsuite/tests/typecheck/should_fail/T3950.stderr b/testsuite/tests/typecheck/should_fail/T3950.stderr index 56e69e2c43..0fc428e183 100644 --- a/testsuite/tests/typecheck/should_fail/T3950.stderr +++ b/testsuite/tests/typecheck/should_fail/T3950.stderr @@ -1,9 +1,9 @@ T3950.hs:15:13: - Couldn't match type ‛Id p0 x0’ with ‛Id p’ + Couldn't match type ‘Id p0 x0’ with ‘Id p’ Expected type: w (Id p) Actual type: Sealed (Id p0 x0) Relevant bindings include rp :: Bool -> Maybe (w (Id p)) (bound at T3950.hs:15:1) - In the first argument of ‛Just’, namely ‛rp'’ + In the first argument of ‘Just’, namely ‘rp'’ In the expression: Just rp' diff --git a/testsuite/tests/typecheck/should_fail/T3966.stderr b/testsuite/tests/typecheck/should_fail/T3966.stderr index 6e292b0887..7c98948f0e 100644 --- a/testsuite/tests/typecheck/should_fail/T3966.stderr +++ b/testsuite/tests/typecheck/should_fail/T3966.stderr @@ -1,8 +1,8 @@ T3966.hs:5:16: Warning: - Ignoring unusable UNPACK pragma on the first argument of ‛Foo’ - In the definition of data constructor ‛Foo’ - In the data declaration for ‛Foo’ + Ignoring unusable UNPACK pragma on the first argument of ‘Foo’ + In the definition of data constructor ‘Foo’ + In the data declaration for ‘Foo’ <no location info>: Failing due to -Werror. diff --git a/testsuite/tests/typecheck/should_fail/T4875.stderr b/testsuite/tests/typecheck/should_fail/T4875.stderr index ae88bdf976..6f885d24fe 100644 --- a/testsuite/tests/typecheck/should_fail/T4875.stderr +++ b/testsuite/tests/typecheck/should_fail/T4875.stderr @@ -1,5 +1,5 @@ T4875.hs:27:24: - ‛r’ is applied to too many type arguments - In the type ‛r c -> [c]’ - In the class declaration for ‛Morphic’ + ‘r’ is applied to too many type arguments + In the type ‘r c -> [c]’ + In the class declaration for ‘Morphic’ diff --git a/testsuite/tests/typecheck/should_fail/T5051.stderr b/testsuite/tests/typecheck/should_fail/T5051.stderr index 2dae81062f..f6225ea406 100644 --- a/testsuite/tests/typecheck/should_fail/T5051.stderr +++ b/testsuite/tests/typecheck/should_fail/T5051.stderr @@ -1,11 +1,11 @@ T5051.hs:11:11: - Overlapping instances for Eq [a] arising from a use of ‛>=’ + Overlapping instances for Eq [a] arising from a use of ‘>=’ Matching instances: - instance Eq a => Eq [a] -- Defined in ‛GHC.Classes’ + instance Eq a => Eq [a] -- Defined in ‘GHC.Classes’ instance [overlap ok] Eq [T] -- Defined at T5051.hs:8:10 - (The choice depends on the instantiation of ‛a’ + (The choice depends on the instantiation of ‘a’ To pick the first instance above, use IncoherentInstances when compiling the other instance declarations) In the expression: x >= x - In an equation for ‛foo’: foo x = x >= x + In an equation for ‘foo’: foo x = x >= x diff --git a/testsuite/tests/typecheck/should_fail/T5084.stderr b/testsuite/tests/typecheck/should_fail/T5084.stderr index de9b4b1469..c2bd522a0b 100644 --- a/testsuite/tests/typecheck/should_fail/T5084.stderr +++ b/testsuite/tests/typecheck/should_fail/T5084.stderr @@ -1,3 +1,3 @@ T5084.hs:6:5: - The INLINE pragma for default method ‛bar’ lacks an accompanying binding + The INLINE pragma for default method ‘bar’ lacks an accompanying binding diff --git a/testsuite/tests/typecheck/should_fail/T5095.stderr b/testsuite/tests/typecheck/should_fail/T5095.stderr index 37bfccbf17..25f1185425 100644 --- a/testsuite/tests/typecheck/should_fail/T5095.stderr +++ b/testsuite/tests/typecheck/should_fail/T5095.stderr @@ -1,66 +1,66 @@ T5095.hs:9:11: - Overlapping instances for Eq a arising from a use of ‛==’ + Overlapping instances for Eq a arising from a use of ‘==’ Matching instances: instance [overlap ok] Show a => Eq a -- Defined at T5095.hs:5:10 - instance Eq a => Eq (GHC.Real.Ratio a) -- Defined in ‛GHC.Real’ - instance Eq () -- Defined in ‛GHC.Classes’ - instance (Eq a, Eq b) => Eq (a, b) -- Defined in ‛GHC.Classes’ + instance Eq a => Eq (GHC.Real.Ratio a) -- Defined in ‘GHC.Real’ + instance Eq () -- Defined in ‘GHC.Classes’ + instance (Eq a, Eq b) => Eq (a, b) -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c) => Eq (a, b, c) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d) => Eq (a, b, c, d) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e) => Eq (a, b, c, d, e) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f) => Eq (a, b, c, d, e, f) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g) => Eq (a, b, c, d, e, f, g) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h) => Eq (a, b, c, d, e, f, g, h) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i) => Eq (a, b, c, d, e, f, g, h, i) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j) => Eq (a, b, c, d, e, f, g, h, i, j) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k) => Eq (a, b, c, d, e, f, g, h, i, j, k) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k, Eq l) => Eq (a, b, c, d, e, f, g, h, i, j, k, l) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k, Eq l, Eq m) => Eq (a, b, c, d, e, f, g, h, i, j, k, l, m) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k, Eq l, Eq m, Eq n) => Eq (a, b, c, d, e, f, g, h, i, j, k, l, m, n) - -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ instance (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k, Eq l, Eq m, Eq n, Eq o) => Eq (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) - -- Defined in ‛GHC.Classes’ - instance Eq Bool -- Defined in ‛GHC.Classes’ - instance Eq Char -- Defined in ‛GHC.Classes’ - instance Eq Double -- Defined in ‛GHC.Classes’ - instance Eq Float -- Defined in ‛GHC.Classes’ - instance Eq Int -- Defined in ‛GHC.Classes’ - instance Eq Ordering -- Defined in ‛GHC.Classes’ - instance Eq GHC.Types.Word -- Defined in ‛GHC.Classes’ - instance Eq a => Eq [a] -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Classes’ + instance Eq Bool -- Defined in ‘GHC.Classes’ + instance Eq Char -- Defined in ‘GHC.Classes’ + instance Eq Double -- Defined in ‘GHC.Classes’ + instance Eq Float -- Defined in ‘GHC.Classes’ + instance Eq Int -- Defined in ‘GHC.Classes’ + instance Eq Ordering -- Defined in ‘GHC.Classes’ + instance Eq GHC.Types.Word -- Defined in ‘GHC.Classes’ + instance Eq a => Eq [a] -- Defined in ‘GHC.Classes’ instance Eq a => Eq (Control.Applicative.ZipList a) - -- Defined in ‛Control.Applicative’ - instance Eq Integer -- Defined in ‛integer-gmp:GHC.Integer.Type’ - (The choice depends on the instantiation of ‛a’ + -- Defined in ‘Control.Applicative’ + instance Eq Integer -- Defined in ‘integer-gmp:GHC.Integer.Type’ + (The choice depends on the instantiation of ‘a’ To pick the first instance above, use IncoherentInstances when compiling the other instance declarations) In the expression: x == y - In an equation for ‛f’: f x y = x == y + In an equation for ‘f’: f x y = x == y diff --git a/testsuite/tests/typecheck/should_fail/T5236.stderr b/testsuite/tests/typecheck/should_fail/T5236.stderr index f448534b67..557a0413c9 100644 --- a/testsuite/tests/typecheck/should_fail/T5236.stderr +++ b/testsuite/tests/typecheck/should_fail/T5236.stderr @@ -1,5 +1,5 @@ T5236.hs:17:5:
- No instance for (Id A B) arising from a use of ‛loop’
+ No instance for (Id A B) arising from a use of ‘loop’
In the expression: loop
- In an equation for ‛f’: f = loop
+ In an equation for ‘f’: f = loop
diff --git a/testsuite/tests/typecheck/should_fail/T5246.stderr b/testsuite/tests/typecheck/should_fail/T5246.stderr index fc8e35ef51..bd075cbb43 100644 --- a/testsuite/tests/typecheck/should_fail/T5246.stderr +++ b/testsuite/tests/typecheck/should_fail/T5246.stderr @@ -1,9 +1,9 @@ T5246.hs:11:10:
- Could not deduce (?x::Int) arising from a use of ‛foo’
+ Could not deduce (?x::Int) arising from a use of ‘foo’
from the context (?x::[Char])
bound by the implicit-parameter bindings for ?x
at T5246.hs:(10,7)-(11,12)
In the expression: foo
In the expression: let ?x = "hello" in foo
- In an equation for ‛bar’: bar = let ?x = "hello" in foo
+ In an equation for ‘bar’: bar = let ?x = "hello" in foo
diff --git a/testsuite/tests/typecheck/should_fail/T5300.stderr b/testsuite/tests/typecheck/should_fail/T5300.stderr index d32af5b18e..c94f11531f 100644 --- a/testsuite/tests/typecheck/should_fail/T5300.stderr +++ b/testsuite/tests/typecheck/should_fail/T5300.stderr @@ -1,34 +1,34 @@ T5300.hs:11:7: Could not deduce (C1 a b c0) - arising from the ambiguity check for ‛f1’ + arising from the ambiguity check for ‘f1’ from the context (Monad m, C1 a b c) bound by the type signature for f1 :: (Monad m, C1 a b c) => a -> StateT (T b) m a at T5300.hs:11:7-50 - The type variable ‛c0’ is ambiguous + The type variable ‘c0’ is ambiguous In the ambiguity check for: forall a b (m :: * -> *) c. (Monad m, C1 a b c) => a -> StateT (T b) m a To defer the ambiguity check to use sites, enable AllowAmbiguousTypes - In the type signature for ‛f1’: + In the type signature for ‘f1’: f1 :: (Monad m, C1 a b c) => a -> StateT (T b) m a T5300.hs:14:7: Could not deduce (C1 a1 b1 c10) - arising from the ambiguity check for ‛f2’ + arising from the ambiguity check for ‘f2’ from the context (Monad m, C1 a1 b1 c1, C2 a2 b2 c2) bound by the type signature for f2 :: (Monad m, C1 a1 b1 c1, C2 a2 b2 c2) => a1 -> StateT (T b2) m a2 at T5300.hs:14:7-69 - The type variable ‛c10’ is ambiguous + The type variable ‘c10’ is ambiguous In the ambiguity check for: forall a1 b2 (m :: * -> *) a2 b1 c1 c2. (Monad m, C1 a1 b1 c1, C2 a2 b2 c2) => a1 -> StateT (T b2) m a2 To defer the ambiguity check to use sites, enable AllowAmbiguousTypes - In the type signature for ‛f2’: + In the type signature for ‘f2’: f2 :: (Monad m, C1 a1 b1 c1, C2 a2 b2 c2) => a1 -> StateT (T b2) m a2 diff --git a/testsuite/tests/typecheck/should_fail/T5570.stderr b/testsuite/tests/typecheck/should_fail/T5570.stderr index 7bf7535815..626533cdaa 100644 --- a/testsuite/tests/typecheck/should_fail/T5570.stderr +++ b/testsuite/tests/typecheck/should_fail/T5570.stderr @@ -3,6 +3,6 @@ T5570.hs:7:16: Kind incompatibility when matching types:
s0 :: *
Double# :: #
- In the second argument of ‛($)’, namely ‛D# $ 3.0##’
+ In the second argument of ‘($)’, namely ‘D# $ 3.0##’
In the expression: print $ D# $ 3.0##
- In an equation for ‛main’: main = print $ D# $ 3.0##
+ In an equation for ‘main’: main = print $ D# $ 3.0##
diff --git a/testsuite/tests/typecheck/should_fail/T5684.stderr b/testsuite/tests/typecheck/should_fail/T5684.stderr index f3534f506d..56b0800351 100644 --- a/testsuite/tests/typecheck/should_fail/T5684.stderr +++ b/testsuite/tests/typecheck/should_fail/T5684.stderr @@ -1,64 +1,64 @@ T5684.hs:25:12: - No instance for (A b6) arising from a use of ‛op’ + No instance for (A b6) arising from a use of ‘op’ In the expression: op True undefined In the expression: [op False False, op 'c' undefined, op True undefined] - In an equation for ‛flop1’: + In an equation for ‘flop1’: flop1 = [op False False, op 'c' undefined, op True undefined] T5684.hs:30:12: - No instance for (A b5) arising from a use of ‛op’ + No instance for (A b5) arising from a use of ‘op’ In the expression: op True undefined In the expression: [op False False, op True undefined, op 'c' undefined] - In an equation for ‛flop2’: + In an equation for ‘flop2’: flop2 = [op False False, op True undefined, op 'c' undefined] T5684.hs:36:12: - No instance for (A b4) arising from a use of ‛op’ + No instance for (A b4) arising from a use of ‘op’ In the expression: op True undefined In the expression: [op 'c' undefined, op True undefined, op False False] - In an equation for ‛flop3’: + In an equation for ‘flop3’: flop3 = [op 'c' undefined, op True undefined, op False False] T5684.hs:42:12: - No instance for (A b3) arising from a use of ‛op’ + No instance for (A b3) arising from a use of ‘op’ In the expression: op True undefined In the expression: [op 'c' undefined, op False False, op True undefined] - In an equation for ‛flop4’: + In an equation for ‘flop4’: flop4 = [op 'c' undefined, op False False, op True undefined] T5684.hs:46:12: - No instance for (A b2) arising from a use of ‛op’ + No instance for (A b2) arising from a use of ‘op’ In the expression: op True undefined In the expression: [op True undefined, op 'c' undefined, op False False] - In an equation for ‛flop5’: + In an equation for ‘flop5’: flop5 = [op True undefined, op 'c' undefined, op False False] T5684.hs:52:12: - No instance for (A b0) arising from a use of ‛op’ + No instance for (A b0) arising from a use of ‘op’ In the expression: op True undefined In the expression: [op True undefined, op False False, op 'c' undefined] - In an equation for ‛flop6’: + In an equation for ‘flop6’: flop6 = [op True undefined, op False False, op 'c' undefined] T5684.hs:53:12: - No instance for (A Bool) arising from a use of ‛op’ + No instance for (A Bool) arising from a use of ‘op’ In the expression: op False False In the expression: [op True undefined, op False False, op 'c' undefined] - In an equation for ‛flop6’: + In an equation for ‘flop6’: flop6 = [op True undefined, op False False, op 'c' undefined] T5684.hs:54:12: - No instance for (B Char b1) arising from a use of ‛op’ + No instance for (B Char b1) arising from a use of ‘op’ In the expression: op 'c' undefined In the expression: [op True undefined, op False False, op 'c' undefined] - In an equation for ‛flop6’: + In an equation for ‘flop6’: flop6 = [op True undefined, op False False, op 'c' undefined] diff --git a/testsuite/tests/typecheck/should_fail/T5689.stderr b/testsuite/tests/typecheck/should_fail/T5689.stderr index 33d7fc9d6d..211ec522a1 100644 --- a/testsuite/tests/typecheck/should_fail/T5689.stderr +++ b/testsuite/tests/typecheck/should_fail/T5689.stderr @@ -1,6 +1,6 @@ T5689.hs:10:36: - Couldn't match expected type ‛Bool’ with actual type ‛t’ + Couldn't match expected type ‘Bool’ with actual type ‘t’ Relevant bindings include v :: t (bound at T5689.hs:10:28) r :: IORef (t -> t) (bound at T5689.hs:7:14) @@ -8,7 +8,7 @@ T5689.hs:10:36: In the expression: if v then False else True T5689.hs:10:43: - Couldn't match expected type ‛t’ with actual type ‛Bool’ + Couldn't match expected type ‘t’ with actual type ‘Bool’ Relevant bindings include v :: t (bound at T5689.hs:10:28) r :: IORef (t -> t) (bound at T5689.hs:7:14) @@ -16,7 +16,7 @@ T5689.hs:10:43: In the expression: if v then False else True T5689.hs:10:54: - Couldn't match expected type ‛t’ with actual type ‛Bool’ + Couldn't match expected type ‘t’ with actual type ‘Bool’ Relevant bindings include v :: t (bound at T5689.hs:10:28) r :: IORef (t -> t) (bound at T5689.hs:7:14) @@ -24,9 +24,9 @@ T5689.hs:10:54: In the expression: if v then False else True T5689.hs:14:23: - Couldn't match expected type ‛t’ with actual type ‛Bool’ + Couldn't match expected type ‘t’ with actual type ‘Bool’ Relevant bindings include c :: t -> t (bound at T5689.hs:12:13) r :: IORef (t -> t) (bound at T5689.hs:7:14) - In the first argument of ‛c’, namely ‛True’ - In the second argument of ‛($)’, namely ‛c True’ + In the first argument of ‘c’, namely ‘True’ + In the second argument of ‘($)’, namely ‘c True’ diff --git a/testsuite/tests/typecheck/should_fail/T5691.stderr b/testsuite/tests/typecheck/should_fail/T5691.stderr index 497ec7794a..674ffc76d7 100644 --- a/testsuite/tests/typecheck/should_fail/T5691.stderr +++ b/testsuite/tests/typecheck/should_fail/T5691.stderr @@ -1,16 +1,16 @@ T5691.hs:14:9: - Couldn't match type ‛p’ with ‛PrintRuleInterp’ + Couldn't match type ‘p’ with ‘PrintRuleInterp’ Expected type: PrintRuleInterp a Actual type: p a In the pattern: f :: p a - In an equation for ‛test’: test (f :: p a) = MkPRI $ printRule_ f - In the instance declaration for ‛Test PrintRuleInterp’ + In an equation for ‘test’: test (f :: p a) = MkPRI $ printRule_ f + In the instance declaration for ‘Test PrintRuleInterp’ T5691.hs:15:24: - Couldn't match type ‛p’ with ‛PrintRuleInterp’ + Couldn't match type ‘p’ with ‘PrintRuleInterp’ Expected type: PrintRuleInterp a Actual type: p a Relevant bindings include f :: p a (bound at T5691.hs:14:9) - In the first argument of ‛printRule_’, namely ‛f’ - In the second argument of ‛($)’, namely ‛printRule_ f’ + In the first argument of ‘printRule_’, namely ‘f’ + In the second argument of ‘($)’, namely ‘printRule_ f’ diff --git a/testsuite/tests/typecheck/should_fail/T5853.stderr b/testsuite/tests/typecheck/should_fail/T5853.stderr index 770b7bb621..997ce196c3 100644 --- a/testsuite/tests/typecheck/should_fail/T5853.stderr +++ b/testsuite/tests/typecheck/should_fail/T5853.stderr @@ -8,7 +8,7 @@ T5853.hs:15:52: Elem (Subst fa a) ~ a, Subst (Subst fa a) (Elem fa) ~ fa) bound by the RULE "map/map" at T5853.hs:15:2-57 - NB: ‛Subst’ is a type function, and may not be injective + NB: ‘Subst’ is a type function, and may not be injective Relevant bindings include f :: Elem fa -> b (bound at T5853.hs:15:19) g :: a -> Elem fa (bound at T5853.hs:15:21) diff --git a/testsuite/tests/typecheck/should_fail/T5858.stderr b/testsuite/tests/typecheck/should_fail/T5858.stderr index 893fd1a62b..9cd1deee69 100644 --- a/testsuite/tests/typecheck/should_fail/T5858.stderr +++ b/testsuite/tests/typecheck/should_fail/T5858.stderr @@ -1,10 +1,10 @@ T5858.hs:11:7: No instance for (InferOverloaded ([t0], [t1])) - arising from a use of ‛infer’ - The type variables ‛t0’, ‛t1’ are ambiguous + arising from a use of ‘infer’ + The type variables ‘t0’, ‘t1’ are ambiguous Note: there is a potential instance available: instance t1 ~ String => InferOverloaded (t1, t1) -- Defined at T5858.hs:8:10 In the expression: infer ([], []) - In an equation for ‛foo’: foo = infer ([], []) + In an equation for ‘foo’: foo = infer ([], []) diff --git a/testsuite/tests/typecheck/should_fail/T5957.stderr b/testsuite/tests/typecheck/should_fail/T5957.stderr index 3b4f5e80d5..1c457ad6fb 100644 --- a/testsuite/tests/typecheck/should_fail/T5957.stderr +++ b/testsuite/tests/typecheck/should_fail/T5957.stderr @@ -2,5 +2,5 @@ T5957.hs:3:9: Illegal polymorphic or qualified type: Show a => a -> String Perhaps you intended to use RankNTypes or Rank2Types - In the type signature for ‛flex’: + In the type signature for ‘flex’: flex :: Int -> Show a => a -> String diff --git a/testsuite/tests/typecheck/should_fail/T5978.stderr b/testsuite/tests/typecheck/should_fail/T5978.stderr index 0deac96834..db6b8f355e 100644 --- a/testsuite/tests/typecheck/should_fail/T5978.stderr +++ b/testsuite/tests/typecheck/should_fail/T5978.stderr @@ -1,5 +1,5 @@ T5978.hs:22:11:
- No instance for (C Double Char) arising from a use of ‛polyBar’
+ No instance for (C Double Char) arising from a use of ‘polyBar’
In the expression: polyBar id monoFoo
- In an equation for ‛monoBar’: monoBar = polyBar id monoFoo
+ In an equation for ‘monoBar’: monoBar = polyBar id monoFoo
diff --git a/testsuite/tests/typecheck/should_fail/T6001.stderr b/testsuite/tests/typecheck/should_fail/T6001.stderr index b1ef88d9fb..593b43f6d8 100644 --- a/testsuite/tests/typecheck/should_fail/T6001.stderr +++ b/testsuite/tests/typecheck/should_fail/T6001.stderr @@ -2,4 +2,4 @@ T6001.hs:8:18: Method signature does not match class; it should be fromInteger :: Integer -> DayKind - In the instance declaration for ‛Num DayKind’ + In the instance declaration for ‘Num DayKind’ diff --git a/testsuite/tests/typecheck/should_fail/T6069.stderr b/testsuite/tests/typecheck/should_fail/T6069.stderr index 4f82c0d896..81b1552cba 100644 --- a/testsuite/tests/typecheck/should_fail/T6069.stderr +++ b/testsuite/tests/typecheck/should_fail/T6069.stderr @@ -1,21 +1,21 @@ T6069.hs:13:15: - Couldn't match type ‛ST s0 Int’ with ‛forall s. ST s b0’ + Couldn't match type ‘ST s0 Int’ with ‘forall s. ST s b0’ Expected type: ST s0 Int -> b0 Actual type: (forall s. ST s b0) -> b0 - In the second argument of ‛(.)’, namely ‛runST’ + In the second argument of ‘(.)’, namely ‘runST’ In the expression: print . runST T6069.hs:14:15: - Couldn't match type ‛ST s1 Int’ with ‛forall s. ST s b1’ + Couldn't match type ‘ST s1 Int’ with ‘forall s. ST s b1’ Expected type: ST s1 Int -> b1 Actual type: (forall s. ST s b1) -> b1 - In the second argument of ‛(.)’, namely ‛runST’ + In the second argument of ‘(.)’, namely ‘runST’ In the expression: (print . runST) T6069.hs:15:16: - Couldn't match type ‛ST s2 Int’ with ‛forall s. ST s b2’ + Couldn't match type ‘ST s2 Int’ with ‘forall s. ST s b2’ Expected type: ST s2 Int -> b2 Actual type: (forall s. ST s b2) -> b2 - In the second argument of ‛(.)’, namely ‛runST’ - In the first argument of ‛($)’, namely ‛(print . runST)’ + In the second argument of ‘(.)’, namely ‘runST’ + In the first argument of ‘($)’, namely ‘(print . runST)’ diff --git a/testsuite/tests/typecheck/should_fail/T6078.stderr b/testsuite/tests/typecheck/should_fail/T6078.stderr index 32e3e056d3..467dede23f 100644 --- a/testsuite/tests/typecheck/should_fail/T6078.stderr +++ b/testsuite/tests/typecheck/should_fail/T6078.stderr @@ -7,5 +7,5 @@ T6078.hs:8:10: let ip1p@(Ptr ip1) = Ptr ip0 `plusPtr` len in ip1p In the expression: \ fpbuf ip0 ipe s0 -> let ip1p@(Ptr ip1) = ... in ip1p - In an equation for ‛byteStringSlice’: + In an equation for ‘byteStringSlice’: byteStringSlice len = \ fpbuf ip0 ipe s0 -> let ... in ip1p diff --git a/testsuite/tests/typecheck/should_fail/T6161.stderr b/testsuite/tests/typecheck/should_fail/T6161.stderr index afc3a946f8..0d10738509 100644 --- a/testsuite/tests/typecheck/should_fail/T6161.stderr +++ b/testsuite/tests/typecheck/should_fail/T6161.stderr @@ -1,5 +1,5 @@ T6161.hs:29:12: - No instance for (Super (Fam Float)) arising from a use of ‛testDup’ + No instance for (Super (Fam Float)) arising from a use of ‘testDup’ In the expression: testDup (FamFloat 3.0) - In an equation for ‛testProg’: testProg = testDup (FamFloat 3.0) + In an equation for ‘testProg’: testProg = testDup (FamFloat 3.0) diff --git a/testsuite/tests/typecheck/should_fail/T7019.stderr b/testsuite/tests/typecheck/should_fail/T7019.stderr index 935c3be522..23baa97469 100644 --- a/testsuite/tests/typecheck/should_fail/T7019.stderr +++ b/testsuite/tests/typecheck/should_fail/T7019.stderr @@ -1,6 +1,6 @@ T7019.hs:14:10: - Malformed predicate ‛C c’ + Malformed predicate ‘C c’ In the context: (C c) While checking an instance declaration - In the instance declaration for ‛Monad (Free c)’ + In the instance declaration for ‘Monad (Free c)’ diff --git a/testsuite/tests/typecheck/should_fail/T7019a.stderr b/testsuite/tests/typecheck/should_fail/T7019a.stderr index cd474af8a6..ee3cea11ce 100644 --- a/testsuite/tests/typecheck/should_fail/T7019a.stderr +++ b/testsuite/tests/typecheck/should_fail/T7019a.stderr @@ -1,6 +1,6 @@ T7019a.hs:11:1: - Malformed predicate ‛forall b. Context (Associated a b)’ + Malformed predicate ‘forall b. Context (Associated a b)’ In the context: (forall b. Context (Associated a b)) - While checking the super-classes of class ‛Class’ - In the class declaration for ‛Class’ + While checking the super-classes of class ‘Class’ + In the class declaration for ‘Class’ diff --git a/testsuite/tests/typecheck/should_fail/T7175.stderr b/testsuite/tests/typecheck/should_fail/T7175.stderr index e65918c22b..e6a5b1e5a3 100644 --- a/testsuite/tests/typecheck/should_fail/T7175.stderr +++ b/testsuite/tests/typecheck/should_fail/T7175.stderr @@ -1,6 +1,6 @@ T7175.hs:8:4: - Data constructor ‛G1C’ returns type ‛F Int’ - instead of an instance of its parent type ‛G1 a’ - In the definition of data constructor ‛G1C’ - In the data declaration for ‛G1’ + Data constructor ‘G1C’ returns type ‘F Int’ + instead of an instance of its parent type ‘G1 a’ + In the definition of data constructor ‘G1C’ + In the data declaration for ‘G1’ diff --git a/testsuite/tests/typecheck/should_fail/T7210.stderr b/testsuite/tests/typecheck/should_fail/T7210.stderr index 148f9bcd5e..a7ee2afc85 100644 --- a/testsuite/tests/typecheck/should_fail/T7210.stderr +++ b/testsuite/tests/typecheck/should_fail/T7210.stderr @@ -1,6 +1,6 @@ T7210.hs:5:19: Unexpected strictness annotation: !IntMap - In the type ‛!IntMap Int’ - In the definition of data constructor ‛C’ - In the data declaration for ‛T’ + In the type ‘!IntMap Int’ + In the definition of data constructor ‘C’ + In the data declaration for ‘T’ diff --git a/testsuite/tests/typecheck/should_fail/T7220.stderr b/testsuite/tests/typecheck/should_fail/T7220.stderr index 5dba6b5c28..86c4c5f1cb 100644 --- a/testsuite/tests/typecheck/should_fail/T7220.stderr +++ b/testsuite/tests/typecheck/should_fail/T7220.stderr @@ -1,9 +1,9 @@ T7220.hs:24:6: - Cannot instantiate unification variable ‛b0’ + Cannot instantiate unification variable ‘b0’ with a type involving foralls: forall b. (C A b, TF b ~ Y) => b Perhaps you want ImpredicativeTypes In the expression: f :: (forall b. (C A b, TF b ~ Y) => b) -> X In the expression: (f :: (forall b. (C A b, TF b ~ Y) => b) -> X) u - In an equation for ‛v’: + In an equation for ‘v’: v = (f :: (forall b. (C A b, TF b ~ Y) => b) -> X) u diff --git a/testsuite/tests/typecheck/should_fail/T7264.stderr b/testsuite/tests/typecheck/should_fail/T7264.stderr index 6314b56f97..b2696d41bb 100644 --- a/testsuite/tests/typecheck/should_fail/T7264.stderr +++ b/testsuite/tests/typecheck/should_fail/T7264.stderr @@ -1,12 +1,12 @@ T7264.hs:13:19: - Couldn't match type ‛a’ with ‛forall r. r -> String’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘forall r. r -> String’ + ‘a’ is a rigid type variable bound by the inferred type of mkFoo2 :: a -> Maybe Foo at T7264.hs:13:1 Expected type: a -> Foo Actual type: (forall r. r -> String) -> Foo Relevant bindings include val :: a (bound at T7264.hs:13:8) mkFoo2 :: a -> Maybe Foo (bound at T7264.hs:13:1) - In the first argument of ‛mmap’, namely ‛Foo’ + In the first argument of ‘mmap’, namely ‘Foo’ In the expression: mmap Foo (Just val) diff --git a/testsuite/tests/typecheck/should_fail/T7279.stderr b/testsuite/tests/typecheck/should_fail/T7279.stderr index d768d90c23..df0328ccdd 100644 --- a/testsuite/tests/typecheck/should_fail/T7279.stderr +++ b/testsuite/tests/typecheck/should_fail/T7279.stderr @@ -5,7 +5,7 @@ T7279.hs:6:10: from the context (Eq a, Show b) bound by an instance declaration: (Eq a, Show b) => Eq (T a) at T7279.hs:6:10-35 - The type variable ‛b0’ is ambiguous + The type variable ‘b0’ is ambiguous In the ambiguity check for: forall a b. (Eq a, Show b) => Eq (T a) To defer the ambiguity check to use sites, enable AllowAmbiguousTypes - In the instance declaration for ‛Eq (T a)’ + In the instance declaration for ‘Eq (T a)’ diff --git a/testsuite/tests/typecheck/should_fail/T7368.stderr b/testsuite/tests/typecheck/should_fail/T7368.stderr index b4e1042346..c2e6360018 100644 --- a/testsuite/tests/typecheck/should_fail/T7368.stderr +++ b/testsuite/tests/typecheck/should_fail/T7368.stderr @@ -5,5 +5,5 @@ T7368.hs:3:10: (->) a0 :: * -> * Expected type: a0 -> b0 Actual type: c0 Maybe - In the first argument of ‛b’, namely ‛(l Nothing)’ + In the first argument of ‘b’, namely ‘(l Nothing)’ In the expression: b (l Nothing) diff --git a/testsuite/tests/typecheck/should_fail/T7368a.stderr b/testsuite/tests/typecheck/should_fail/T7368a.stderr index 94d3688d32..1316d5a8d4 100644 --- a/testsuite/tests/typecheck/should_fail/T7368a.stderr +++ b/testsuite/tests/typecheck/should_fail/T7368a.stderr @@ -1,11 +1,11 @@ T7368a.hs:8:6:
- Couldn't match type ‛f’ with ‛Bad’
- ‛f’ is a rigid type variable bound by
+ Couldn't match type ‘f’ with ‘Bad’
+ ‘f’ is a rigid type variable bound by
the type signature for fun :: f (Bad f) -> Bool at T7368a.hs:7:15
Expected type: f (Bad f)
Actual type: Bad t0
Relevant bindings include
fun :: f (Bad f) -> Bool (bound at T7368a.hs:8:1)
In the pattern: Bad x
- In an equation for ‛fun’: fun (Bad x) = True
+ In an equation for ‘fun’: fun (Bad x) = True
diff --git a/testsuite/tests/typecheck/should_fail/T7410.stderr b/testsuite/tests/typecheck/should_fail/T7410.stderr index 877377e1b0..8126362633 100644 --- a/testsuite/tests/typecheck/should_fail/T7410.stderr +++ b/testsuite/tests/typecheck/should_fail/T7410.stderr @@ -1,6 +1,6 @@ T7410.hs:3:9: - Expecting one more argument to ‛Either Int’ - The first argument of a tuple should have kind ‛*’, - but ‛Either Int’ has kind ‛* -> *’ - In the type signature for ‛foo’: foo :: (Either Int, Int) + Expecting one more argument to ‘Either Int’ + The first argument of a tuple should have kind ‘*’, + but ‘Either Int’ has kind ‘* -> *’ + In the type signature for ‘foo’: foo :: (Either Int, Int) diff --git a/testsuite/tests/typecheck/should_fail/T7453.stderr b/testsuite/tests/typecheck/should_fail/T7453.stderr index 573d2ff7e1..c474460155 100644 --- a/testsuite/tests/typecheck/should_fail/T7453.stderr +++ b/testsuite/tests/typecheck/should_fail/T7453.stderr @@ -1,7 +1,7 @@ T7453.hs:10:30: - Couldn't match expected type ‛t1’ with actual type ‛t’ - because type variable ‛t1’ would escape its scope + Couldn't match expected type ‘t1’ with actual type ‘t’ + because type variable ‘t1’ would escape its scope This (rigid, skolem) type variable is bound by the type signature for z :: Id t1 at T7453.hs:8:16-19 @@ -10,12 +10,12 @@ T7453.hs:10:30: z :: Id t1 (bound at T7453.hs:9:11) v :: t (bound at T7453.hs:7:7) cast1 :: t -> a (bound at T7453.hs:7:1) - In the first argument of ‛Id’, namely ‛v’ + In the first argument of ‘Id’, namely ‘v’ In the expression: Id v T7453.hs:16:33: - Couldn't match expected type ‛t2’ with actual type ‛t’ - because type variable ‛t2’ would escape its scope + Couldn't match expected type ‘t2’ with actual type ‘t’ + because type variable ‘t2’ would escape its scope This (rigid, skolem) type variable is bound by the type signature for z :: () -> t2 at T7453.hs:14:16-22 @@ -24,12 +24,12 @@ T7453.hs:16:33: z :: () -> t2 (bound at T7453.hs:15:11) v :: t (bound at T7453.hs:13:7) cast2 :: t -> t1 (bound at T7453.hs:13:1) - In the first argument of ‛const’, namely ‛v’ + In the first argument of ‘const’, namely ‘v’ In the expression: const v T7453.hs:21:15: - Couldn't match expected type ‛t1’ with actual type ‛a’ - because type variable ‛t1’ would escape its scope + Couldn't match expected type ‘t1’ with actual type ‘a’ + because type variable ‘t1’ would escape its scope This (rigid, skolem) type variable is bound by the type signature for z :: t1 at T7453.hs:20:16 @@ -39,7 +39,7 @@ T7453.hs:21:15: v :: a (bound at T7453.hs:19:7) cast3 :: a -> t (bound at T7453.hs:19:1) In the expression: v - In an equation for ‛z’: + In an equation for ‘z’: z = v where aux = const v diff --git a/testsuite/tests/typecheck/should_fail/T7525.stderr b/testsuite/tests/typecheck/should_fail/T7525.stderr index 1e2c0eb235..9524d1a3e2 100644 --- a/testsuite/tests/typecheck/should_fail/T7525.stderr +++ b/testsuite/tests/typecheck/should_fail/T7525.stderr @@ -1,9 +1,9 @@ T7525.hs:5:30: Could not deduce (?b::Bool) - arising from a use of implicit parameter ‛?b’ + arising from a use of implicit parameter ‘?b’ from the context (?a::Bool) bound by the implicit-parameter bindings for ?a at T7525.hs:5:7-31 - In the second argument of ‛(&&)’, namely ‛?b’ + In the second argument of ‘(&&)’, namely ‘?b’ In the expression: ?a && ?b In the expression: let ?a = True in ?a && ?b diff --git a/testsuite/tests/typecheck/should_fail/T7545.stderr b/testsuite/tests/typecheck/should_fail/T7545.stderr index dc661dae73..a1f2853fc9 100644 --- a/testsuite/tests/typecheck/should_fail/T7545.stderr +++ b/testsuite/tests/typecheck/should_fail/T7545.stderr @@ -2,4 +2,4 @@ T7545.hs:8:9: Method signature does not match class; it should be f :: forall b1. (a -> b) -> b1 - In the instance declaration for ‛C (a -> b)’ + In the instance declaration for ‘C (a -> b)’ diff --git a/testsuite/tests/typecheck/should_fail/T7609.stderr b/testsuite/tests/typecheck/should_fail/T7609.stderr index 2027c3bb64..1b904bbec7 100644 --- a/testsuite/tests/typecheck/should_fail/T7609.stderr +++ b/testsuite/tests/typecheck/should_fail/T7609.stderr @@ -1,10 +1,10 @@ T7609.hs:7:16:
- Expecting one more argument to ‛Maybe’
- The second argument of a tuple should have kind ‛*’,
- but ‛Maybe’ has kind ‛* -> *’
- In the type signature for ‛f’: f :: (a `X` a, Maybe)
+ Expecting one more argument to ‘Maybe’
+ The second argument of a tuple should have kind ‘*’,
+ but ‘Maybe’ has kind ‘* -> *’
+ In the type signature for ‘f’: f :: (a `X` a, Maybe)
T7609.hs:10:7:
- Expected a constraint, but ‛a `X` a’ has kind ‛*’
- In the type signature for ‛g’: g :: a `X` a => Maybe
+ Expected a constraint, but ‘a `X` a’ has kind ‘*’
+ In the type signature for ‘g’: g :: a `X` a => Maybe
diff --git a/testsuite/tests/typecheck/should_fail/T7645.stderr b/testsuite/tests/typecheck/should_fail/T7645.stderr index ae00e21ca6..12d6c15e49 100644 --- a/testsuite/tests/typecheck/should_fail/T7645.stderr +++ b/testsuite/tests/typecheck/should_fail/T7645.stderr @@ -1,6 +1,6 @@ T7645.hs:6:23: - Expecting one more argument to ‛Maybe’ - The second argument of a tuple should have kind ‛*’, - but ‛Maybe’ has kind ‛* -> *’ - In the type signature for ‛f’: f :: ((+) a (a :: *), Maybe) + Expecting one more argument to ‘Maybe’ + The second argument of a tuple should have kind ‘*’, + but ‘Maybe’ has kind ‘* -> *’ + In the type signature for ‘f’: f :: ((+) a (a :: *), Maybe) diff --git a/testsuite/tests/typecheck/should_fail/T7696.stderr b/testsuite/tests/typecheck/should_fail/T7696.stderr index b166faa21b..65dfb79d2b 100644 --- a/testsuite/tests/typecheck/should_fail/T7696.stderr +++ b/testsuite/tests/typecheck/should_fail/T7696.stderr @@ -1,7 +1,7 @@ T7696.hs:7:6:
- Couldn't match type ‛m0 a0’ with ‛()’
+ Couldn't match type ‘m0 a0’ with ‘()’
Expected type: ((), w ())
Actual type: (m0 a0, t0 m0)
In the expression: f1
- In an equation for ‛f2’: f2 = f1
+ In an equation for ‘f2’: f2 = f1
diff --git a/testsuite/tests/typecheck/should_fail/T7697.stderr b/testsuite/tests/typecheck/should_fail/T7697.stderr index 759d4abf5c..477acc1d09 100644 --- a/testsuite/tests/typecheck/should_fail/T7697.stderr +++ b/testsuite/tests/typecheck/should_fail/T7697.stderr @@ -1,4 +1,4 @@ T7697.hs:3:6: - Expected a constraint, but ‛Int’ has kind ‛*’ - In the type signature for ‛f’: f :: Int => Int + Expected a constraint, but ‘Int’ has kind ‘*’ + In the type signature for ‘f’: f :: Int => Int diff --git a/testsuite/tests/typecheck/should_fail/T7734.stderr b/testsuite/tests/typecheck/should_fail/T7734.stderr index fc3348abb7..3f59340441 100644 --- a/testsuite/tests/typecheck/should_fail/T7734.stderr +++ b/testsuite/tests/typecheck/should_fail/T7734.stderr @@ -4,7 +4,7 @@ T7734.hs:4:13: Relevant bindings include x :: t2 -> t1 (bound at T7734.hs:4:1) f :: (t2 -> t1) -> t -> t1 (bound at T7734.hs:4:1) - In the first argument of ‛x’, namely ‛x’ + In the first argument of ‘x’, namely ‘x’ In the expression: x x T7734.hs:5:13: @@ -12,5 +12,5 @@ T7734.hs:5:13: Relevant bindings include x :: t2 -> t1 (bound at T7734.hs:5:5) (&) :: (t2 -> t1) -> t -> t1 (bound at T7734.hs:5:1) - In the first argument of ‛x’, namely ‛x’ + In the first argument of ‘x’, namely ‘x’ In the expression: x x diff --git a/testsuite/tests/typecheck/should_fail/T7748a.stderr b/testsuite/tests/typecheck/should_fail/T7748a.stderr index 0e039e7237..de451eb52f 100644 --- a/testsuite/tests/typecheck/should_fail/T7748a.stderr +++ b/testsuite/tests/typecheck/should_fail/T7748a.stderr @@ -1,7 +1,7 @@ T7748a.hs:14:24: - Couldn't match expected type ‛a’ with actual type ‛Maybe t0’ - ‛a’ is a rigid type variable bound by + Couldn't match expected type ‘a’ with actual type ‘Maybe t0’ + ‘a’ is a rigid type variable bound by the type signature for test :: a -> r -> () at T7748a.hs:11:9 Relevant bindings include zd :: a (bound at T7748a.hs:12:6) diff --git a/testsuite/tests/typecheck/should_fail/T7778.stderr b/testsuite/tests/typecheck/should_fail/T7778.stderr index 89196dfb0c..714e2a6e27 100644 --- a/testsuite/tests/typecheck/should_fail/T7778.stderr +++ b/testsuite/tests/typecheck/should_fail/T7778.stderr @@ -1,5 +1,5 @@ T7778.hs:3:19: - Expecting one more argument to ‛Num’ - Expected a type, but ‛Num’ has kind ‛* -> Constraint’ - In the type signature for ‛v’: v :: (Num Int => Num) () => () + Expecting one more argument to ‘Num’ + Expected a type, but ‘Num’ has kind ‘* -> Constraint’ + In the type signature for ‘v’: v :: (Num Int => Num) () => () diff --git a/testsuite/tests/typecheck/should_fail/T7809.stderr b/testsuite/tests/typecheck/should_fail/T7809.stderr index ebfb3f5804..e306f8dcd3 100644 --- a/testsuite/tests/typecheck/should_fail/T7809.stderr +++ b/testsuite/tests/typecheck/should_fail/T7809.stderr @@ -2,4 +2,4 @@ T7809.hs:8:8: Illegal polymorphic or qualified type: PolyId Perhaps you intended to use ImpredicativeTypes - In the type signature for ‛foo’: foo :: F PolyId + In the type signature for ‘foo’: foo :: F PolyId diff --git a/testsuite/tests/typecheck/should_fail/T7851.stderr b/testsuite/tests/typecheck/should_fail/T7851.stderr index ba5fc7ce45..64148511e7 100644 --- a/testsuite/tests/typecheck/should_fail/T7851.stderr +++ b/testsuite/tests/typecheck/should_fail/T7851.stderr @@ -1,7 +1,7 @@ T7851.hs:5:10: - Couldn't match expected type ‛IO a0’ with actual type ‛a1 -> IO ()’ - Probable cause: ‛print’ is applied to too few arguments + Couldn't match expected type ‘IO a0’ with actual type ‘a1 -> IO ()’ + Probable cause: ‘print’ is applied to too few arguments In a stmt of a 'do' block: print In the expression: do { print; diff --git a/testsuite/tests/typecheck/should_fail/T7856.stderr b/testsuite/tests/typecheck/should_fail/T7856.stderr index 566018894f..e6fe2bd42f 100644 --- a/testsuite/tests/typecheck/should_fail/T7856.stderr +++ b/testsuite/tests/typecheck/should_fail/T7856.stderr @@ -1,10 +1,10 @@ T7856.hs:4:7: - Couldn't match expected type ‛String -> IO ()’ - with actual type ‛IO ()’ - Possible cause: ‛sequence_’ is applied to too many arguments + Couldn't match expected type ‘String -> IO ()’ + with actual type ‘IO ()’ + Possible cause: ‘sequence_’ is applied to too many arguments In the expression: sequence_ lst - In an equation for ‛tmp’: + In an equation for ‘tmp’: tmp = sequence_ lst where diff --git a/testsuite/tests/typecheck/should_fail/T7857.stderr b/testsuite/tests/typecheck/should_fail/T7857.stderr index 0457093fea..3519b3fa8d 100644 --- a/testsuite/tests/typecheck/should_fail/T7857.stderr +++ b/testsuite/tests/typecheck/should_fail/T7857.stderr @@ -1,17 +1,17 @@ T7857.hs:8:11: - Could not deduce (PrintfType s0) arising from a use of ‛printf’ + Could not deduce (PrintfType s0) arising from a use of ‘printf’ from the context (PrintfArg t) bound by the inferred type of g :: PrintfArg t => t -> b at T7857.hs:8:1-21 - The type variable ‛s0’ is ambiguous + The type variable ‘s0’ is ambiguous Note: there are several potential instances: instance [safe] (PrintfArg a, PrintfType r) => PrintfType (a -> r) - -- Defined in ‛Text.Printf’ + -- Defined in ‘Text.Printf’ instance [safe] a ~ () => PrintfType (IO a) - -- Defined in ‛Text.Printf’ + -- Defined in ‘Text.Printf’ instance [safe] IsChar c => PrintfType [c] - -- Defined in ‛Text.Printf’ - In the second argument of ‛($)’, namely ‛printf "" i’ + -- Defined in ‘Text.Printf’ + In the second argument of ‘($)’, namely ‘printf "" i’ In the expression: f $ printf "" i - In an equation for ‛g’: g i = f $ printf "" i + In an equation for ‘g’: g i = f $ printf "" i diff --git a/testsuite/tests/typecheck/should_fail/T7869.stderr b/testsuite/tests/typecheck/should_fail/T7869.stderr index 1324b06ae5..dd3aabc464 100644 --- a/testsuite/tests/typecheck/should_fail/T7869.stderr +++ b/testsuite/tests/typecheck/should_fail/T7869.stderr @@ -1,7 +1,7 @@ T7869.hs:3:12: - Couldn't match type ‛a’ with ‛a1’ - because type variable ‛a1’ would escape its scope + Couldn't match type ‘a’ with ‘a1’ + because type variable ‘a1’ would escape its scope This (rigid, skolem) type variable is bound by an expression type signature: [a1] -> b1 at T7869.hs:3:5-27 @@ -12,11 +12,11 @@ T7869.hs:3:12: f :: [a] -> b (bound at T7869.hs:3:1) In the expression: f x In the expression: (\ x -> f x) :: [a] -> b - In an equation for ‛f’: f = (\ x -> f x) :: [a] -> b + In an equation for ‘f’: f = (\ x -> f x) :: [a] -> b T7869.hs:3:12: - Couldn't match type ‛b’ with ‛b1’ - because type variable ‛b1’ would escape its scope + Couldn't match type ‘b’ with ‘b1’ + because type variable ‘b1’ would escape its scope This (rigid, skolem) type variable is bound by an expression type signature: [a1] -> b1 at T7869.hs:3:5-27 @@ -25,4 +25,4 @@ T7869.hs:3:12: Relevant bindings include f :: [a] -> b (bound at T7869.hs:3:1) In the expression: f x In the expression: (\ x -> f x) :: [a] -> b - In an equation for ‛f’: f = (\ x -> f x) :: [a] -> b + In an equation for ‘f’: f = (\ x -> f x) :: [a] -> b diff --git a/testsuite/tests/typecheck/should_fail/T7892.stderr b/testsuite/tests/typecheck/should_fail/T7892.stderr index eec7bd73dc..559ac67270 100644 --- a/testsuite/tests/typecheck/should_fail/T7892.stderr +++ b/testsuite/tests/typecheck/should_fail/T7892.stderr @@ -1,2 +1,2 @@ -T7892.hs:5:4: Couldn't match kind ‛*’ against ‛* -> *’ +T7892.hs:5:4: Couldn't match kind ‘*’ against ‘* -> *’ diff --git a/testsuite/tests/typecheck/should_fail/T7989.stderr b/testsuite/tests/typecheck/should_fail/T7989.stderr index 3ba815e5f4..8b02d0df31 100644 --- a/testsuite/tests/typecheck/should_fail/T7989.stderr +++ b/testsuite/tests/typecheck/should_fail/T7989.stderr @@ -1,15 +1,15 @@ T7989.hs:6:7: - No constructor has all these fields: ‛a0’, ‛b0’ + No constructor has all these fields: ‘a0’, ‘b0’ In the expression: x {a0 = 3, a1 = 2, b0 = 4, b1 = 5} - In an equation for ‛f’: f x = x {a0 = 3, a1 = 2, b0 = 4, b1 = 5} + In an equation for ‘f’: f x = x {a0 = 3, a1 = 2, b0 = 4, b1 = 5} T7989.hs:9:7: - No constructor has all these fields: ‛x’, ‛y’, ‛z’ + No constructor has all these fields: ‘x’, ‘y’, ‘z’ In the expression: a {x = 0, y = 0, z = 0, v = 0} - In an equation for ‛g’: g a = a {x = 0, y = 0, z = 0, v = 0} + In an equation for ‘g’: g a = a {x = 0, y = 0, z = 0, v = 0} T7989.hs:11:7: - No constructor has all these fields: ‛x’, ‛a0’ + No constructor has all these fields: ‘x’, ‘a0’ In the expression: a {x = 0, a0 = 0} - In an equation for ‛h’: h a = a {x = 0, a0 = 0} + In an equation for ‘h’: h a = a {x = 0, a0 = 0} diff --git a/testsuite/tests/typecheck/should_fail/T8142.stderr b/testsuite/tests/typecheck/should_fail/T8142.stderr index c1c32fe566..5940df4384 100644 --- a/testsuite/tests/typecheck/should_fail/T8142.stderr +++ b/testsuite/tests/typecheck/should_fail/T8142.stderr @@ -1,14 +1,14 @@ T8142.hs:6:18: - Couldn't match type ‛Nu ((,) t0)’ with ‛Nu ((,) t)’ - NB: ‛Nu’ is a type function, and may not be injective - The type variable ‛t0’ is ambiguous + Couldn't match type ‘Nu ((,) t0)’ with ‘Nu ((,) t)’ + NB: ‘Nu’ is a type function, and may not be injective + The type variable ‘t0’ is ambiguous Expected type: Nu ((,) t) -> Nu f Actual type: Nu ((,) t0) -> Nu f0 - When checking that ‛h’ - has the inferred type ‛forall t (f :: * -> *). Nu ((,) t) -> Nu f’ + When checking that ‘h’ + has the inferred type ‘forall t (f :: * -> *). Nu ((,) t) -> Nu f’ Probable cause: the inferred type is ambiguous - In an equation for ‛tracer’: + In an equation for ‘tracer’: tracer = h where @@ -24,5 +24,5 @@ T8142.hs:6:57: Actual type: Nu ((,) t) -> (t, Nu ((,) t)) Relevant bindings include h :: Nu ((,) t) -> Nu f1 (bound at T8142.hs:6:18) - In the second argument of ‛(.)’, namely ‛out’ + In the second argument of ‘(.)’, namely ‘out’ In the expression: (\ (_, b) -> ((outI . fmap h) b)) . out diff --git a/testsuite/tests/typecheck/should_fail/T8262.stderr b/testsuite/tests/typecheck/should_fail/T8262.stderr index db908de694..44c2fb861a 100644 --- a/testsuite/tests/typecheck/should_fail/T8262.stderr +++ b/testsuite/tests/typecheck/should_fail/T8262.stderr @@ -5,6 +5,6 @@ T8262.hs:5:15: GHC.Prim.Int# :: # Relevant bindings include foo :: t -> Maybe a (bound at T8262.hs:5:1) - In the first argument of ‛Just’, namely ‛(1#)’ + In the first argument of ‘Just’, namely ‘(1#)’ In the expression: Just (1#) - In an equation for ‛foo’: foo x = Just (1#) + In an equation for ‘foo’: foo x = Just (1#) diff --git a/testsuite/tests/typecheck/should_fail/T8392a.stderr b/testsuite/tests/typecheck/should_fail/T8392a.stderr index 6e102227cf..ae7fc2ca6a 100644 --- a/testsuite/tests/typecheck/should_fail/T8392a.stderr +++ b/testsuite/tests/typecheck/should_fail/T8392a.stderr @@ -1,7 +1,7 @@ T8392a.hs:6:8: - Couldn't match type ‛Int’ with ‛Bool’ + Couldn't match type ‘Int’ with ‘Bool’ Inaccessible code in the type signature for foo :: Int ~ Bool => a -> a In the ambiguity check for: forall a. Int ~ Bool => a -> a - In the type signature for ‛foo’: foo :: Int ~ Bool => a -> a + In the type signature for ‘foo’: foo :: Int ~ Bool => a -> a diff --git a/testsuite/tests/typecheck/should_fail/T8428.stderr b/testsuite/tests/typecheck/should_fail/T8428.stderr index 235135192e..49c20a5b8f 100644 --- a/testsuite/tests/typecheck/should_fail/T8428.stderr +++ b/testsuite/tests/typecheck/should_fail/T8428.stderr @@ -1,10 +1,10 @@ T8428.hs:11:19: - Couldn't match type ‛(forall s. ST s) a’ with ‛forall s. ST s a’ + Couldn't match type ‘(forall s. ST s) a’ with ‘forall s. ST s a’ Expected type: IdentityT (forall s. ST s) a -> forall s. ST s a Actual type: IdentityT (forall s. ST s) a -> (forall s. ST s) a Relevant bindings include runIdST :: IdentityT (forall s. ST s) a -> a (bound at T8428.hs:11:1) - In the second argument of ‛(.)’, namely ‛runIdentityT’ + In the second argument of ‘(.)’, namely ‘runIdentityT’ In the expression: runST . runIdentityT diff --git a/testsuite/tests/typecheck/should_fail/T8450.stderr b/testsuite/tests/typecheck/should_fail/T8450.stderr index 3688005dbb..ef3c62e7b6 100644 --- a/testsuite/tests/typecheck/should_fail/T8450.stderr +++ b/testsuite/tests/typecheck/should_fail/T8450.stderr @@ -1,13 +1,13 @@ T8450.hs:8:20: - Couldn't match type ‛a’ with ‛Bool’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘Bool’ + ‘a’ is a rigid type variable bound by the type signature for run :: a at T8450.hs:7:15 Expected type: Either Bool () Actual type: Either a () Relevant bindings include run :: a (bound at T8450.hs:8:1) - In the second argument of ‛($)’, namely - ‛(undefined :: Either a ())’ + In the second argument of ‘($)’, namely + ‘(undefined :: Either a ())’ In the expression: runEffect $ (undefined :: Either a ()) - In an equation for ‛run’: + In an equation for ‘run’: run = runEffect $ (undefined :: Either a ()) diff --git a/testsuite/tests/typecheck/should_fail/T8514.stderr b/testsuite/tests/typecheck/should_fail/T8514.stderr index 254dacd8ed..41aeb3b52e 100644 --- a/testsuite/tests/typecheck/should_fail/T8514.stderr +++ b/testsuite/tests/typecheck/should_fail/T8514.stderr @@ -1,7 +1,7 @@ T8514.hs:3:16: - Expecting one more argument to ‛Maybe’ - The second argument of a tuple should have kind ‛*’, - but ‛Maybe’ has kind ‛* -> *’ - In the type ‛(a, Maybe)’ - In the type declaration for ‛T’ + Expecting one more argument to ‘Maybe’ + The second argument of a tuple should have kind ‘*’, + but ‘Maybe’ has kind ‘* -> *’ + In the type ‘(a, Maybe)’ + In the type declaration for ‘T’ diff --git a/testsuite/tests/typecheck/should_fail/T8570.stderr b/testsuite/tests/typecheck/should_fail/T8570.stderr index 18653eac38..75d736cf1d 100644 --- a/testsuite/tests/typecheck/should_fail/T8570.stderr +++ b/testsuite/tests/typecheck/should_fail/T8570.stderr @@ -1,6 +1,6 @@ T8570.hs:6:18: - Constructor ‛Image’ does not have field ‛filepath’ + Constructor ‘Image’ does not have field ‘filepath’ In the pattern: Image {filepath = x} In a pattern binding: Image {filepath = x} = logo In the expression: let Image {filepath = x} = logo in x diff --git a/testsuite/tests/typecheck/should_fail/T8603.stderr b/testsuite/tests/typecheck/should_fail/T8603.stderr index 1777dc9535..cf12725281 100644 --- a/testsuite/tests/typecheck/should_fail/T8603.stderr +++ b/testsuite/tests/typecheck/should_fail/T8603.stderr @@ -1,10 +1,10 @@ T8603.hs:29:17:
- Couldn't match type ‛(->) [a0]’ with ‛[t1]’
+ Couldn't match type ‘(->) [a0]’ with ‘[t1]’
Expected type: [t1] -> StateT s RV t0
Actual type: t2 ((->) [a0]) (StateT s RV t0)
- The function ‛lift’ is applied to two arguments,
- but its type ‛([a0] -> StateT s RV t0)
+ The function ‘lift’ is applied to two arguments,
+ but its type ‘([a0] -> StateT s RV t0)
-> t2 ((->) [a0]) (StateT s RV t0)’
has only one
In a stmt of a 'do' block: prize <- lift uniform [1, 2, 3]
@@ -13,10 +13,10 @@ T8603.hs:29:17: return False }
T8603.hs:29:22:
- Couldn't match type ‛StateT s RV t0’ with ‛RV a0’
+ Couldn't match type ‘StateT s RV t0’ with ‘RV a0’
Expected type: [a0] -> StateT s RV t0
Actual type: [a0] -> RV a0
Relevant bindings include
testRVState1 :: RVState s Bool (bound at T8603.hs:28:1)
- In the first argument of ‛lift’, namely ‛uniform’
+ In the first argument of ‘lift’, namely ‘uniform’
In a stmt of a 'do' block: prize <- lift uniform [1, 2, 3]
diff --git a/testsuite/tests/typecheck/should_fail/T8806.stderr b/testsuite/tests/typecheck/should_fail/T8806.stderr index cc1caa8967..0a5a3d731f 100644 --- a/testsuite/tests/typecheck/should_fail/T8806.stderr +++ b/testsuite/tests/typecheck/should_fail/T8806.stderr @@ -1,8 +1,8 @@ T8806.hs:5:6: - Expected a constraint, but ‛Int’ has kind ‛*’ - In the type signature for ‛f’: f :: Int => Int + Expected a constraint, but ‘Int’ has kind ‘*’ + In the type signature for ‘f’: f :: Int => Int T8806.hs:8:7: - Expected a constraint, but ‛Int’ has kind ‛*’ - In the type signature for ‛g’: g :: Int => Show a => Int + Expected a constraint, but ‘Int’ has kind ‘*’ + In the type signature for ‘g’: g :: Int => Show a => Int diff --git a/testsuite/tests/typecheck/should_fail/TcCoercibleFail.stderr b/testsuite/tests/typecheck/should_fail/TcCoercibleFail.stderr index d6fd5eb0da..2851bcd934 100644 --- a/testsuite/tests/typecheck/should_fail/TcCoercibleFail.stderr +++ b/testsuite/tests/typecheck/should_fail/TcCoercibleFail.stderr @@ -1,59 +1,59 @@ TcCoercibleFail.hs:11:8: - Could not coerce from ‛Int’ to ‛()’ - because ‛Int’ and ‛()’ are different types. - arising from a use of ‛coerce’ + Could not coerce from ‘Int’ to ‘()’ + because ‘Int’ and ‘()’ are different types. + arising from a use of ‘coerce’ In the expression: coerce In the expression: coerce $ one :: () - In an equation for ‛foo1’: foo1 = coerce $ one :: () + In an equation for ‘foo1’: foo1 = coerce $ one :: () TcCoercibleFail.hs:14:8: - Could not coerce from ‛m Int’ to ‛m Age’ - because ‛m Int’ and ‛m Age’ are different types. - arising from a use of ‛coerce’ + Could not coerce from ‘m Int’ to ‘m Age’ + because ‘m Int’ and ‘m Age’ are different types. + arising from a use of ‘coerce’ from the context (Monad m) bound by the type signature for foo2 :: Monad m => m Age at TcCoercibleFail.hs:13:9-34 In the expression: coerce In the expression: coerce $ (return one :: m Int) - In an equation for ‛foo2’: foo2 = coerce $ (return one :: m Int) + In an equation for ‘foo2’: foo2 = coerce $ (return one :: m Int) TcCoercibleFail.hs:16:8: - Could not coerce from ‛Map Int ()’ to ‛Map Age ()’ - because the first type argument of ‛Map’ has role Nominal, - but the arguments ‛Int’ and ‛Age’ differ - arising from a use of ‛coerce’ + Could not coerce from ‘Map Int ()’ to ‘Map Age ()’ + because the first type argument of ‘Map’ has role Nominal, + but the arguments ‘Int’ and ‘Age’ differ + arising from a use of ‘coerce’ In the expression: coerce In the expression: coerce $ Map one () :: Map Age () - In an equation for ‛foo3’: foo3 = coerce $ Map one () :: Map Age () + In an equation for ‘foo3’: foo3 = coerce $ Map one () :: Map Age () TcCoercibleFail.hs:18:8: - Could not coerce from ‛Int’ to ‛Down Int’ - because the constructor of ‛Down’ is not imported - arising from a use of ‛coerce’ + Could not coerce from ‘Int’ to ‘Down Int’ + because the constructor of ‘Down’ is not imported + arising from a use of ‘coerce’ In the expression: coerce In the expression: coerce $ one :: Down Int - In an equation for ‛foo4’: foo4 = coerce $ one :: Down Int + In an equation for ‘foo4’: foo4 = coerce $ one :: Down Int TcCoercibleFail.hs:21:8: Context reduction stack overflow; size = 21 Use -fcontext-stack=N to increase stack size to N Coercible Void () In the expression: coerce :: Void -> () - In an equation for ‛foo5’: foo5 = coerce :: Void -> () + In an equation for ‘foo5’: foo5 = coerce :: Void -> () TcCoercibleFail.hs:30:8: Context reduction stack overflow; size = 21 Use -fcontext-stack=N to increase stack size to N Coercible Int Age In the expression: coerce :: Fix (Either Int) -> Fix (Either Age) - In an equation for ‛foo6’: + In an equation for ‘foo6’: foo6 = coerce :: Fix (Either Int) -> Fix (Either Age) TcCoercibleFail.hs:31:8: - Could not coerce from ‛Either Int (Fix (Either Int))’ to ‛()’ - because ‛Either - Int (Fix (Either Int))’ and ‛()’ are different types. - arising from a use of ‛coerce’ + Could not coerce from ‘Either Int (Fix (Either Int))’ to ‘()’ + because ‘Either + Int (Fix (Either Int))’ and ‘()’ are different types. + arising from a use of ‘coerce’ In the expression: coerce :: Fix (Either Int) -> () - In an equation for ‛foo7’: foo7 = coerce :: Fix (Either Int) -> () + In an equation for ‘foo7’: foo7 = coerce :: Fix (Either Int) -> () diff --git a/testsuite/tests/typecheck/should_fail/TcCoercibleFail2.stderr b/testsuite/tests/typecheck/should_fail/TcCoercibleFail2.stderr index f180a9a212..29c268d22f 100644 --- a/testsuite/tests/typecheck/should_fail/TcCoercibleFail2.stderr +++ b/testsuite/tests/typecheck/should_fail/TcCoercibleFail2.stderr @@ -1,5 +1,5 @@ TcCoercibleFail2.hs:3:10: - Illegal instance declaration for ‛Coercible () ()’ + Illegal instance declaration for ‘Coercible () ()’ The class is abstract, manual instances are not permitted. - In the instance declaration for ‛Coercible () ()’ + In the instance declaration for ‘Coercible () ()’ diff --git a/testsuite/tests/typecheck/should_fail/TcCoercibleFail3.stderr b/testsuite/tests/typecheck/should_fail/TcCoercibleFail3.stderr index 54cd96ff6a..619e81fdfb 100644 --- a/testsuite/tests/typecheck/should_fail/TcCoercibleFail3.stderr +++ b/testsuite/tests/typecheck/should_fail/TcCoercibleFail3.stderr @@ -1,7 +1,7 @@ TcCoercibleFail3.hs:12:7: - Could not coerce from ‛NT1’ to ‛NT2’ - because ‛NT1’ and ‛NT2’ are different types. - arising from a use of ‛coerce’ + Could not coerce from ‘NT1’ to ‘NT2’ + because ‘NT1’ and ‘NT2’ are different types. + arising from a use of ‘coerce’ In the expression: coerce - In an equation for ‛foo’: foo = coerce + In an equation for ‘foo’: foo = coerce diff --git a/testsuite/tests/typecheck/should_fail/TcCoercibleFailSafe.stderr b/testsuite/tests/typecheck/should_fail/TcCoercibleFailSafe.stderr index 90643dfbe4..2d7bf19de9 100644 --- a/testsuite/tests/typecheck/should_fail/TcCoercibleFailSafe.stderr +++ b/testsuite/tests/typecheck/should_fail/TcCoercibleFailSafe.stderr @@ -1,8 +1,8 @@ TcCoercibleFailSafe.hs:9:8: - Could not coerce from ‛Down Age’ to ‛Down Int’ - because the constructor of ‛Down’ is not imported + Could not coerce from ‘Down Age’ to ‘Down Int’ + because the constructor of ‘Down’ is not imported as required in SafeHaskell mode - arising from a use of ‛coerce’ + arising from a use of ‘coerce’ In the expression: coerce - In an equation for ‛foo1’: foo1 = coerce + In an equation for ‘foo1’: foo1 = coerce diff --git a/testsuite/tests/typecheck/should_fail/TcMultiWayIfFail.stderr b/testsuite/tests/typecheck/should_fail/TcMultiWayIfFail.stderr index 5655af9da6..70ac94f060 100644 --- a/testsuite/tests/typecheck/should_fail/TcMultiWayIfFail.stderr +++ b/testsuite/tests/typecheck/should_fail/TcMultiWayIfFail.stderr @@ -1,16 +1,16 @@ TcMultiWayIfFail.hs:6:24: - Couldn't match expected type ‛Int’ with actual type ‛[Char]’ + Couldn't match expected type ‘Int’ with actual type ‘[Char]’ In the expression: "2" In the expression: if | True -> 1 :: Int | False -> "2" | otherwise -> [3 :: Int] - In an equation for ‛x1’: + In an equation for ‘x1’: x1 = if | True -> 1 :: Int | False -> "2" | otherwise -> [3 :: Int] TcMultiWayIfFail.hs:7:24: - Couldn't match expected type ‛Int’ with actual type ‛[Int]’ + Couldn't match expected type ‘Int’ with actual type ‘[Int]’ In the expression: [3 :: Int] In the expression: if | True -> 1 :: Int | False -> "2" | otherwise -> [3 :: Int] - In an equation for ‛x1’: + In an equation for ‘x1’: x1 = if | True -> 1 :: Int | False -> "2" | otherwise -> [3 :: Int] diff --git a/testsuite/tests/typecheck/should_fail/TcNoNullaryTC.stderr b/testsuite/tests/typecheck/should_fail/TcNoNullaryTC.stderr index 90ef78718a..9e8175d99f 100644 --- a/testsuite/tests/typecheck/should_fail/TcNoNullaryTC.stderr +++ b/testsuite/tests/typecheck/should_fail/TcNoNullaryTC.stderr @@ -1,5 +1,5 @@ TcNoNullaryTC.hs:3:1: - No parameters for class ‛A’ + No parameters for class ‘A’ (Use NullaryTypeClasses to allow no-parameter classes) - In the class declaration for ‛A’ + In the class declaration for ‘A’ diff --git a/testsuite/tests/typecheck/should_fail/fd-loop.stderr b/testsuite/tests/typecheck/should_fail/fd-loop.stderr index f26bda816d..96fbc3ef18 100644 --- a/testsuite/tests/typecheck/should_fail/fd-loop.stderr +++ b/testsuite/tests/typecheck/should_fail/fd-loop.stderr @@ -1,12 +1,12 @@ fd-loop.hs:12:10: - Variable ‛b’ occurs more often than in the instance head + Variable ‘b’ occurs more often than in the instance head in the constraint: C a b (Use UndecidableInstances to permit this) - In the instance declaration for ‛Eq (T a)’ + In the instance declaration for ‘Eq (T a)’ fd-loop.hs:12:10: - Variable ‛b’ occurs more often than in the instance head + Variable ‘b’ occurs more often than in the instance head in the constraint: Eq b (Use UndecidableInstances to permit this) - In the instance declaration for ‛Eq (T a)’ + In the instance declaration for ‘Eq (T a)’ diff --git a/testsuite/tests/typecheck/should_fail/mc19.stderr b/testsuite/tests/typecheck/should_fail/mc19.stderr index a5e9bc5e7f..d7181ad8a7 100644 --- a/testsuite/tests/typecheck/should_fail/mc19.stderr +++ b/testsuite/tests/typecheck/should_fail/mc19.stderr @@ -1,7 +1,7 @@ mc19.hs:10:31: - Couldn't match type ‛a’ with ‛[a]’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘[a]’ + ‘a’ is a rigid type variable bound by a type expected by the context: [a] -> [a] at mc19.hs:10:26 Expected type: [a] -> [a] Actual type: [a] -> [[a]] diff --git a/testsuite/tests/typecheck/should_fail/mc20.stderr b/testsuite/tests/typecheck/should_fail/mc20.stderr index 86be7f4a1a..798160fbf7 100644 --- a/testsuite/tests/typecheck/should_fail/mc20.stderr +++ b/testsuite/tests/typecheck/should_fail/mc20.stderr @@ -1,6 +1,6 @@ mc20.hs:14:31: - No instance for (Ord Unorderable) arising from a use of ‛groupWith’ + No instance for (Ord Unorderable) arising from a use of ‘groupWith’ In the expression: groupWith In a stmt of a monad comprehension: then group by x using groupWith In the expression: diff --git a/testsuite/tests/typecheck/should_fail/mc21.stderr b/testsuite/tests/typecheck/should_fail/mc21.stderr index 853f982979..337c84369b 100644 --- a/testsuite/tests/typecheck/should_fail/mc21.stderr +++ b/testsuite/tests/typecheck/should_fail/mc21.stderr @@ -1,7 +1,7 @@ mc21.hs:12:26: - Couldn't match type ‛a’ with ‛[a]’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘[a]’ + ‘a’ is a rigid type variable bound by a type expected by the context: [a] -> [[a]] at mc21.hs:12:9 Expected type: [a] -> [[a]] Actual type: [a] -> [a] diff --git a/testsuite/tests/typecheck/should_fail/mc22.stderr b/testsuite/tests/typecheck/should_fail/mc22.stderr index 23b53d7e07..f3da3c5eeb 100644 --- a/testsuite/tests/typecheck/should_fail/mc22.stderr +++ b/testsuite/tests/typecheck/should_fail/mc22.stderr @@ -1,6 +1,6 @@ mc22.hs:10:9: - No instance for (Functor t) arising from a use of ‛fmap’ + No instance for (Functor t) arising from a use of ‘fmap’ Possible fix: add (Functor t) to the context of a type expected by the context: (a -> b) -> t a -> t b @@ -11,8 +11,8 @@ mc22.hs:10:9: [x + 1 | x <- ["Hello", "World"], then group using take 5] mc22.hs:10:26: - Couldn't match type ‛a’ with ‛t a’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘t a’ + ‘a’ is a rigid type variable bound by a type expected by the context: [a] -> [t a] at mc22.hs:10:9 Expected type: [a] -> [t a] Actual type: [a] -> [a] diff --git a/testsuite/tests/typecheck/should_fail/mc23.stderr b/testsuite/tests/typecheck/should_fail/mc23.stderr index 4bd18c10c7..cdb10800e4 100644 --- a/testsuite/tests/typecheck/should_fail/mc23.stderr +++ b/testsuite/tests/typecheck/should_fail/mc23.stderr @@ -1,9 +1,9 @@ mc23.hs:9:29: - Couldn't match type ‛[a0]’ with ‛a -> b’ + Couldn't match type ‘[a0]’ with ‘a -> b’ Expected type: (a -> b) -> [a] -> t a Actual type: [a0] -> [a0] Relevant bindings include z :: t b (bound at mc23.hs:9:1) - Possible cause: ‛take’ is applied to too many arguments + Possible cause: ‘take’ is applied to too many arguments In the expression: take 5 In a stmt of a monad comprehension: then take 5 by x diff --git a/testsuite/tests/typecheck/should_fail/mc24.stderr b/testsuite/tests/typecheck/should_fail/mc24.stderr index 2e0515b282..0ddc66d97a 100644 --- a/testsuite/tests/typecheck/should_fail/mc24.stderr +++ b/testsuite/tests/typecheck/should_fail/mc24.stderr @@ -1,8 +1,8 @@ mc24.hs:10:31: - Couldn't match type ‛[a0]’ with ‛a -> a1’ + Couldn't match type ‘[a0]’ with ‘a -> a1’ Expected type: (a -> a1) -> [a] -> t [a] Actual type: [a0] -> [a0] - Possible cause: ‛take’ is applied to too many arguments + Possible cause: ‘take’ is applied to too many arguments In the expression: take 2 In a stmt of a monad comprehension: then group by x using take 2 diff --git a/testsuite/tests/typecheck/should_fail/mc25.stderr b/testsuite/tests/typecheck/should_fail/mc25.stderr index 042de5b620..6af388febe 100644 --- a/testsuite/tests/typecheck/should_fail/mc25.stderr +++ b/testsuite/tests/typecheck/should_fail/mc25.stderr @@ -1,6 +1,6 @@ mc25.hs:9:24: - No instance for (Functor t1) arising from a use of ‛fmap’ + No instance for (Functor t1) arising from a use of ‘fmap’ Possible fix: add (Functor t1) to the context of a type expected by the context: (a -> b) -> t1 a -> t1 b @@ -10,7 +10,7 @@ mc25.hs:9:24: In the expression: [x | x <- [1 .. 10], then group by x using take] mc25.hs:9:46: - Couldn't match type ‛Int’ with ‛a -> t’ + Couldn't match type ‘Int’ with ‘a -> t’ Expected type: (a -> t) -> [a] -> [t1 a] Actual type: Int -> [a] -> [a] Relevant bindings include z :: [t1 t] (bound at mc25.hs:9:1) diff --git a/testsuite/tests/typecheck/should_fail/tcfail001.stderr b/testsuite/tests/typecheck/should_fail/tcfail001.stderr index 32418ac5c2..3c67882546 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail001.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail001.stderr @@ -1,7 +1,7 @@ tcfail001.hs:9:2: - Couldn't match expected type ‛[t0] -> [t1]’ with actual type ‛[a]’ + Couldn't match expected type ‘[t0] -> [t1]’ with actual type ‘[a]’ Relevant bindings include op :: [a] (bound at tcfail001.hs:9:2) - The equation(s) for ‛op’ have one argument, - but its type ‛[a]’ has none - In the instance declaration for ‛A [a]’ + The equation(s) for ‘op’ have one argument, + but its type ‘[a]’ has none + In the instance declaration for ‘A [a]’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail002.stderr b/testsuite/tests/typecheck/should_fail/tcfail002.stderr index 67248f4064..11e8078a1b 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail002.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail002.stderr @@ -5,4 +5,4 @@ tcfail002.hs:4:7: z :: [t] (bound at tcfail002.hs:4:3) c :: [t] -> t (bound at tcfail002.hs:3:1) In the expression: z - In an equation for ‛c’: c z = z + In an equation for ‘c’: c z = z diff --git a/testsuite/tests/typecheck/should_fail/tcfail003.stderr b/testsuite/tests/typecheck/should_fail/tcfail003.stderr index e605497890..54490cd22d 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail003.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail003.stderr @@ -1,6 +1,6 @@ tcfail003.hs:3:10: - No instance for (Num Char) arising from the literal ‛1’ + No instance for (Num Char) arising from the literal ‘1’ In the expression: 1 In the expression: [1, 'a'] In a pattern binding: (d : e) = [1, 'a'] diff --git a/testsuite/tests/typecheck/should_fail/tcfail004.stderr b/testsuite/tests/typecheck/should_fail/tcfail004.stderr index fd73db69ae..df54f950c6 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail004.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail004.stderr @@ -1,7 +1,7 @@ tcfail004.hs:3:9: - Couldn't match expected type ‛(t, t3)’ - with actual type ‛(t0, t1, t2)’ + Couldn't match expected type ‘(t, t3)’ + with actual type ‘(t0, t1, t2)’ Relevant bindings include f :: t (bound at tcfail004.hs:3:2) g :: t3 (bound at tcfail004.hs:3:4) diff --git a/testsuite/tests/typecheck/should_fail/tcfail005.stderr b/testsuite/tests/typecheck/should_fail/tcfail005.stderr index 401bc35194..bae8697fe8 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail005.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail005.stderr @@ -1,6 +1,6 @@ tcfail005.hs:3:9: - Couldn't match expected type ‛[t]’ with actual type ‛(t0, Char)’ + Couldn't match expected type ‘[t]’ with actual type ‘(t0, Char)’ Relevant bindings include h :: t (bound at tcfail005.hs:3:2) i :: [t] (bound at tcfail005.hs:3:4) diff --git a/testsuite/tests/typecheck/should_fail/tcfail006.stderr b/testsuite/tests/typecheck/should_fail/tcfail006.stderr index 387fe56b49..7bfaf2d9a6 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail006.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail006.stderr @@ -1,6 +1,6 @@ tcfail006.hs:4:24: - No instance for (Num Bool) arising from the literal ‛1’ + No instance for (Num Bool) arising from the literal ‘1’ In the expression: 1 In the expression: (True, 1) In a case alternative: True -> (True, 1) diff --git a/testsuite/tests/typecheck/should_fail/tcfail007.stderr b/testsuite/tests/typecheck/should_fail/tcfail007.stderr index 99c9504a7e..5ea9792256 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail007.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail007.stderr @@ -1,8 +1,8 @@ tcfail007.hs:3:15: - No instance for (Num Bool) arising from a use of ‛+’ + No instance for (Num Bool) arising from a use of ‘+’ In the expression: x + 1 - In an equation for ‛n’: + In an equation for ‘n’: n x | True = x + 1 | False = True diff --git a/testsuite/tests/typecheck/should_fail/tcfail008.stderr b/testsuite/tests/typecheck/should_fail/tcfail008.stderr index 09c4c54558..c633a15325 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail008.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail008.stderr @@ -1,20 +1,20 @@ tcfail008.hs:3:5: - No instance for (Num a0) arising from the literal ‛1’ - The type variable ‛a0’ is ambiguous + No instance for (Num a0) arising from the literal ‘1’ + The type variable ‘a0’ is ambiguous Relevant bindings include o :: [a0] (bound at tcfail008.hs:3:1) Note: there are several potential instances: - instance Num Double -- Defined in ‛GHC.Float’ - instance Num Float -- Defined in ‛GHC.Float’ + instance Num Double -- Defined in ‘GHC.Float’ + instance Num Float -- Defined in ‘GHC.Float’ instance Integral a => Num (GHC.Real.Ratio a) - -- Defined in ‛GHC.Real’ + -- Defined in ‘GHC.Real’ ...plus three others - In the first argument of ‛(:)’, namely ‛1’ + In the first argument of ‘(:)’, namely ‘1’ In the expression: 1 : 2 - In an equation for ‛o’: o = 1 : 2 + In an equation for ‘o’: o = 1 : 2 tcfail008.hs:3:7: - No instance for (Num [a0]) arising from the literal ‛2’ - In the second argument of ‛(:)’, namely ‛2’ + No instance for (Num [a0]) arising from the literal ‘2’ + In the second argument of ‘(:)’, namely ‘2’ In the expression: 1 : 2 - In an equation for ‛o’: o = 1 : 2 + In an equation for ‘o’: o = 1 : 2 diff --git a/testsuite/tests/typecheck/should_fail/tcfail009.stderr b/testsuite/tests/typecheck/should_fail/tcfail009.stderr index 517e39c36f..2597a00c4b 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail009.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail009.stderr @@ -1,6 +1,6 @@ tcfail009.hs:3:17: - Couldn't match expected type ‛Int’ with actual type ‛Integer’ + Couldn't match expected type ‘Int’ with actual type ‘Integer’ In the expression: (2 :: Integer) In the expression: [(1 :: Int) .. (2 :: Integer)] - In an equation for ‛p’: p = [(1 :: Int) .. (2 :: Integer)] + In an equation for ‘p’: p = [(1 :: Int) .. (2 :: Integer)] diff --git a/testsuite/tests/typecheck/should_fail/tcfail010.stderr b/testsuite/tests/typecheck/should_fail/tcfail010.stderr index 3f718371aa..abffc1acd2 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail010.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail010.stderr @@ -1,6 +1,6 @@ tcfail010.hs:3:17: - No instance for (Num [t0]) arising from a use of ‛+’ + No instance for (Num [t0]) arising from a use of ‘+’ In the expression: z + 2 In the expression: \ (y : z) -> z + 2 - In an equation for ‛q’: q = \ (y : z) -> z + 2 + In an equation for ‘q’: q = \ (y : z) -> z + 2 diff --git a/testsuite/tests/typecheck/should_fail/tcfail011.stderr b/testsuite/tests/typecheck/should_fail/tcfail011.stderr index 8ef94fec12..8a69d54101 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail011.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail011.stderr @@ -1,2 +1,2 @@ -tcfail011.hs:3:25: Not in scope: ‛y’ +tcfail011.hs:3:25: Not in scope: ‘y’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail012.stderr b/testsuite/tests/typecheck/should_fail/tcfail012.stderr index 257eca351f..572c7a677c 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail012.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail012.stderr @@ -1,5 +1,5 @@ tcfail012.hs:3:8: - Couldn't match expected type ‛Bool’ with actual type ‛[t0]’ + Couldn't match expected type ‘Bool’ with actual type ‘[t0]’ In the expression: [] In a pattern binding: True = [] diff --git a/testsuite/tests/typecheck/should_fail/tcfail013.stderr b/testsuite/tests/typecheck/should_fail/tcfail013.stderr index 075c4dab87..bf567acc2b 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail013.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail013.stderr @@ -1,6 +1,6 @@ tcfail013.hs:4:3: - Couldn't match expected type ‛[t]’ with actual type ‛Bool’ + Couldn't match expected type ‘[t]’ with actual type ‘Bool’ Relevant bindings include f :: [t] -> a (bound at tcfail013.hs:3:1) In the pattern: True - In an equation for ‛f’: f True = 2 + In an equation for ‘f’: f True = 2 diff --git a/testsuite/tests/typecheck/should_fail/tcfail014.stderr b/testsuite/tests/typecheck/should_fail/tcfail014.stderr index 79af8623e1..d133863e34 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail014.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail014.stderr @@ -4,5 +4,5 @@ tcfail014.hs:5:33: Relevant bindings include z :: t8 -> t7 (bound at tcfail014.hs:5:27) h :: (t8 -> t7) -> t7 (bound at tcfail014.hs:5:25) - In the first argument of ‛z’, namely ‛z’ + In the first argument of ‘z’, namely ‘z’ In the expression: z z diff --git a/testsuite/tests/typecheck/should_fail/tcfail015.stderr b/testsuite/tests/typecheck/should_fail/tcfail015.stderr index 7e02253760..c8332e1b32 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail015.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail015.stderr @@ -1,5 +1,5 @@ tcfail015.hs:7:13: - No instance for (Num Bool) arising from the literal ‛2’ + No instance for (Num Bool) arising from the literal ‘2’ In the expression: 2 - In an equation for ‛g’: g (ANull) = 2 + In an equation for ‘g’: g (ANull) = 2 diff --git a/testsuite/tests/typecheck/should_fail/tcfail016.stderr b/testsuite/tests/typecheck/should_fail/tcfail016.stderr index 3b8e2a9712..4180007122 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail016.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail016.stderr @@ -1,22 +1,22 @@ tcfail016.hs:9:20: - Couldn't match type ‛(t, Expr t)’ with ‛Expr t’ + Couldn't match type ‘(t, Expr t)’ with ‘Expr t’ Expected type: Expr t Actual type: AnnExpr t Relevant bindings include e2 :: AnnExpr t (bound at tcfail016.hs:9:11) e1 :: AnnExpr t (bound at tcfail016.hs:9:8) g :: Expr t -> [[Char]] (bound at tcfail016.hs:8:1) - In the first argument of ‛g’, namely ‛e1’ - In the first argument of ‛(++)’, namely ‛(g e1)’ + In the first argument of ‘g’, namely ‘e1’ + In the first argument of ‘(++)’, namely ‘(g e1)’ tcfail016.hs:9:28: - Couldn't match type ‛(t, Expr t)’ with ‛Expr t’ + Couldn't match type ‘(t, Expr t)’ with ‘Expr t’ Expected type: Expr t Actual type: AnnExpr t Relevant bindings include e2 :: AnnExpr t (bound at tcfail016.hs:9:11) e1 :: AnnExpr t (bound at tcfail016.hs:9:8) g :: Expr t -> [[Char]] (bound at tcfail016.hs:8:1) - In the first argument of ‛g’, namely ‛e2’ - In the second argument of ‛(++)’, namely ‛(g e2)’ + In the first argument of ‘g’, namely ‘e2’ + In the second argument of ‘(++)’, namely ‘(g e2)’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail017.stderr b/testsuite/tests/typecheck/should_fail/tcfail017.stderr index a0d73da862..87befa82ed 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail017.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail017.stderr @@ -4,4 +4,4 @@ tcfail017.hs:10:10: arising from the superclasses of an instance declaration from the context (B a) bound by the instance declaration at tcfail017.hs:10:10-23 - In the instance declaration for ‛B [a]’ + In the instance declaration for ‘B [a]’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail018.stderr b/testsuite/tests/typecheck/should_fail/tcfail018.stderr index 687938983b..ef32705126 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail018.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail018.stderr @@ -1,5 +1,5 @@ tcfail018.hs:5:10: - No instance for (Num [t0]) arising from the literal ‛1’ + No instance for (Num [t0]) arising from the literal ‘1’ In the expression: 1 In a pattern binding: (a : []) = 1 diff --git a/testsuite/tests/typecheck/should_fail/tcfail019.stderr b/testsuite/tests/typecheck/should_fail/tcfail019.stderr index 848805abda..49eb857593 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail019.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail019.stderr @@ -2,4 +2,4 @@ tcfail019.hs:18:10: No instance for (B [a]) arising from the superclasses of an instance declaration - In the instance declaration for ‛D [a]’ + In the instance declaration for ‘D [a]’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail020.stderr b/testsuite/tests/typecheck/should_fail/tcfail020.stderr index 9dfaa63a4e..4600f20797 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail020.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail020.stderr @@ -4,4 +4,4 @@ tcfail020.hs:10:10: arising from the superclasses of an instance declaration from the context (A a) bound by the instance declaration at tcfail020.hs:10:10-23 - In the instance declaration for ‛B [a]’ + In the instance declaration for ‘B [a]’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail027.stderr b/testsuite/tests/typecheck/should_fail/tcfail027.stderr index cc4ffcaab3..9cfdcf4a9a 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail027.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail027.stderr @@ -1,8 +1,8 @@ tcfail027.hs:4:1: Cycle in class declaration (via superclasses): A -> B -> A - In the class declaration for ‛A’ + In the class declaration for ‘A’ tcfail027.hs:7:1: Cycle in class declaration (via superclasses): B -> A -> B - In the class declaration for ‛B’ + In the class declaration for ‘B’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail028.stderr b/testsuite/tests/typecheck/should_fail/tcfail028.stderr index a5c0a59612..38791e6c0f 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail028.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail028.stderr @@ -1,7 +1,7 @@ tcfail028.hs:4:17: - Expecting one more argument to ‛A a’ - Expected a type, but ‛A a’ has kind ‛k0 -> *’ - In the type ‛A a’ - In the definition of data constructor ‛B’ - In the data declaration for ‛A’ + Expecting one more argument to ‘A a’ + Expected a type, but ‘A a’ has kind ‘k0 -> *’ + In the type ‘A a’ + In the definition of data constructor ‘B’ + In the data declaration for ‘A’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail029.stderr b/testsuite/tests/typecheck/should_fail/tcfail029.stderr index 13a1e4936e..5b794458e8 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail029.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail029.stderr @@ -1,5 +1,5 @@ tcfail029.hs:6:9: - No instance for (Ord Foo) arising from a use of ‛>’ + No instance for (Ord Foo) arising from a use of ‘>’ In the expression: x > Bar - In an equation for ‛f’: f x = x > Bar + In an equation for ‘f’: f x = x > Bar diff --git a/testsuite/tests/typecheck/should_fail/tcfail030.stderr b/testsuite/tests/typecheck/should_fail/tcfail030.stderr index 1e0f08d021..66b129076b 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail030.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail030.stderr @@ -1,3 +1,3 @@ tcfail030.hs:1:1: - The IO action ‛main’ is not defined in module ‛Main’ + The IO action ‘main’ is not defined in module ‘Main’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail031.stderr b/testsuite/tests/typecheck/should_fail/tcfail031.stderr index 5d55430eaa..2a22e1b29e 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail031.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail031.stderr @@ -1,6 +1,6 @@ tcfail031.hs:3:10: - Couldn't match expected type ‛Bool’ with actual type ‛Char’ + Couldn't match expected type ‘Bool’ with actual type ‘Char’ In the expression: 'a' In the expression: if 'a' then 1 else 2 - In an equation for ‛f’: f x = if 'a' then 1 else 2 + In an equation for ‘f’: f x = if 'a' then 1 else 2 diff --git a/testsuite/tests/typecheck/should_fail/tcfail032.stderr b/testsuite/tests/typecheck/should_fail/tcfail032.stderr index 75d64ee76b..954a6fd5ec 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail032.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail032.stderr @@ -1,7 +1,7 @@ tcfail032.hs:14:8: - Couldn't match expected type ‛a1 -> Int’ with actual type ‛t’ - because type variable ‛a1’ would escape its scope + Couldn't match expected type ‘a1 -> Int’ with actual type ‘t’ + because type variable ‘a1’ would escape its scope This (rigid, skolem) type variable is bound by an expression type signature: Eq a1 => a1 -> Int at tcfail032.hs:14:8-30 @@ -9,4 +9,4 @@ tcfail032.hs:14:8: x :: t (bound at tcfail032.hs:14:3) f :: t -> a -> Int (bound at tcfail032.hs:14:1) In the expression: (x :: Eq a => a -> Int) - In an equation for ‛f’: f x = (x :: Eq a => a -> Int) + In an equation for ‘f’: f x = (x :: Eq a => a -> Int) diff --git a/testsuite/tests/typecheck/should_fail/tcfail034.stderr b/testsuite/tests/typecheck/should_fail/tcfail034.stderr index 3fca8122b9..9107051d8c 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail034.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail034.stderr @@ -1,12 +1,12 @@ tcfail034.hs:17:13: - Could not deduce (Integral a) arising from a use of ‛mod’ + Could not deduce (Integral a) arising from a use of ‘mod’ from the context (Num a, Eq a) bound by the type signature for test :: (Num a, Eq a) => a -> Bool at tcfail034.hs:16:7-32 Possible fix: add (Integral a) to the context of the type signature for test :: (Num a, Eq a) => a -> Bool - In the first argument of ‛(==)’, namely ‛(x `mod` 3)’ + In the first argument of ‘(==)’, namely ‘(x `mod` 3)’ In the expression: (x `mod` 3) == 0 - In an equation for ‛test’: test x = (x `mod` 3) == 0 + In an equation for ‘test’: test x = (x `mod` 3) == 0 diff --git a/testsuite/tests/typecheck/should_fail/tcfail036.stderr b/testsuite/tests/typecheck/should_fail/tcfail036.stderr index 465e454712..a9aef1192b 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail036.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail036.stderr @@ -5,7 +5,7 @@ tcfail036.hs:6:10: instance Num NUM -- Defined at tcfail036.hs:8:10 tcfail036.hs:9:13: - Expecting one more argument to ‛Num’ - The first argument of ‛Eq’ should have kind ‛*’, - but ‛Num’ has kind ‛* -> Constraint’ - In the instance declaration for ‛Eq Num’ + Expecting one more argument to ‘Num’ + The first argument of ‘Eq’ should have kind ‘*’, + but ‘Num’ has kind ‘* -> Constraint’ + In the instance declaration for ‘Eq Num’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail037.stderr b/testsuite/tests/typecheck/should_fail/tcfail037.stderr index 00f757841c..5ada45cc84 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail037.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail037.stderr @@ -1,8 +1,8 @@ tcfail037.hs:7:11: - Ambiguous occurrence ‛+’ - It could refer to either ‛ShouldFail.+’, + Ambiguous occurrence ‘+’ + It could refer to either ‘ShouldFail.+’, defined at tcfail037.hs:10:5 - or ‛Prelude.+’, - imported from ‛Prelude’ at tcfail037.hs:3:8-17 - (and originally defined in ‛GHC.Num’) + or ‘Prelude.+’, + imported from ‘Prelude’ at tcfail037.hs:3:8-17 + (and originally defined in ‘GHC.Num’) diff --git a/testsuite/tests/typecheck/should_fail/tcfail038.stderr b/testsuite/tests/typecheck/should_fail/tcfail038.stderr index f8b7915e00..2d3e9e5bc9 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail038.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail038.stderr @@ -1,10 +1,10 @@ tcfail038.hs:7:11: - Conflicting definitions for ‛==’ + Conflicting definitions for ‘==’ Bound at: tcfail038.hs:7:11-12 tcfail038.hs:9:11-12 tcfail038.hs:8:11: - Conflicting definitions for ‛/=’ + Conflicting definitions for ‘/=’ Bound at: tcfail038.hs:8:11-12 tcfail038.hs:10:11-12 diff --git a/testsuite/tests/typecheck/should_fail/tcfail040.stderr b/testsuite/tests/typecheck/should_fail/tcfail040.stderr index 90fb76d99d..923be56470 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail040.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail040.stderr @@ -1,9 +1,9 @@ tcfail040.hs:19:5: - No instance for (ORD a0) arising from a use of ‛<<’ - The type variable ‛a0’ is ambiguous + No instance for (ORD a0) arising from a use of ‘<<’ + The type variable ‘a0’ is ambiguous Note: there is a potential instance available: instance ORD (a -> b) -- Defined at tcfail040.hs:17:10 - In the first argument of ‛(===)’, namely ‛(<<)’ + In the first argument of ‘(===)’, namely ‘(<<)’ In the expression: (<<) === (<<) - In an equation for ‛f’: f = (<<) === (<<) + In an equation for ‘f’: f = (<<) === (<<) diff --git a/testsuite/tests/typecheck/should_fail/tcfail041.stderr b/testsuite/tests/typecheck/should_fail/tcfail041.stderr index f86384133d..fd0d7d8fd2 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail041.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail041.stderr @@ -2,4 +2,4 @@ tcfail041.hs:9:10: Unbound implicit parameter (?imp::Int) arising from the superclasses of an instance declaration - In the instance declaration for ‛D Int’ + In the instance declaration for ‘D Int’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail042.stderr b/testsuite/tests/typecheck/should_fail/tcfail042.stderr index 1e1c5ad01e..584d189100 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail042.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail042.stderr @@ -6,4 +6,4 @@ tcfail042.hs:15:10: bound by the instance declaration at tcfail042.hs:15:10-34 Possible fix: add (Num a) to the context of the instance declaration - In the instance declaration for ‛Bar [a]’ + In the instance declaration for ‘Bar [a]’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail043.stderr b/testsuite/tests/typecheck/should_fail/tcfail043.stderr index df750a4a3c..6215ce6ad2 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail043.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail043.stderr @@ -1,7 +1,7 @@ tcfail043.hs:38:17: - No instance for (Ord_ a0) arising from a use of ‛gt’ - The type variable ‛a0’ is ambiguous + No instance for (Ord_ a0) arising from a use of ‘gt’ + The type variable ‘a0’ is ambiguous Relevant bindings include bs :: [a0] (bound at tcfail043.hs:38:8) a :: a0 (bound at tcfail043.hs:38:6) @@ -22,8 +22,8 @@ tcfail043.hs:38:17: if eq a (hd bs) then True else search a (tl bs) tcfail043.hs:40:25: - No instance for (Eq_ a0) arising from a use of ‛eq’ - The type variable ‛a0’ is ambiguous + No instance for (Eq_ a0) arising from a use of ‘eq’ + The type variable ‘a0’ is ambiguous Relevant bindings include bs :: [a0] (bound at tcfail043.hs:38:8) a :: a0 (bound at tcfail043.hs:38:6) diff --git a/testsuite/tests/typecheck/should_fail/tcfail044.stderr b/testsuite/tests/typecheck/should_fail/tcfail044.stderr index eaf769f8b7..9733cc4fc8 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail044.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail044.stderr @@ -1,16 +1,16 @@ tcfail044.hs:5:20: - Illegal instance declaration for ‛Eq (a -> a)’ + Illegal instance declaration for ‘Eq (a -> a)’ (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 FlexibleInstances if you want to disable this.) - In the instance declaration for ‛Eq (a -> a)’ + In the instance declaration for ‘Eq (a -> a)’ tcfail044.hs:8:21: - Illegal instance declaration for ‛Num (a -> a)’ + Illegal instance declaration for ‘Num (a -> a)’ (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 FlexibleInstances if you want to disable this.) - In the instance declaration for ‛Num (a -> a)’ + In the instance declaration for ‘Num (a -> a)’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail046.stderr b/testsuite/tests/typecheck/should_fail/tcfail046.stderr index b029915b12..1dbfdad8f3 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail046.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail046.stderr @@ -1,7 +1,7 @@ tcfail046.hs:10:50: No instance for (Eq (Process a)) - arising from the first field of ‛Do’ (type ‛Process a’) + arising from the first field of ‘Do’ (type ‘Process a’) Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself @@ -9,7 +9,7 @@ tcfail046.hs:10:50: tcfail046.hs:22:25: No instance for (Eq (Process a)) - arising from the first field of ‛Create’ (type ‛Process a’) + arising from the first field of ‘Create’ (type ‘Process a’) Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself diff --git a/testsuite/tests/typecheck/should_fail/tcfail047.stderr b/testsuite/tests/typecheck/should_fail/tcfail047.stderr index b9778baf9b..53eb4defdd 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail047.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail047.stderr @@ -1,8 +1,8 @@ tcfail047.hs:6:10: - Illegal instance declaration for ‛A (a, (b, c))’ + Illegal instance declaration for ‘A (a, (b, c))’ (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 FlexibleInstances if you want to disable this.) - In the instance declaration for ‛A (a, (b, c))’ + In the instance declaration for ‘A (a, (b, c))’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail048.stderr b/testsuite/tests/typecheck/should_fail/tcfail048.stderr index 29d205e279..eaa2e52d36 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail048.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail048.stderr @@ -1,2 +1,2 @@ -tcfail048.hs:3:8: Not in scope: type constructor or class ‛B’ +tcfail048.hs:3:8: Not in scope: type constructor or class ‘B’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail049.stderr b/testsuite/tests/typecheck/should_fail/tcfail049.stderr index 3a632e2425..6e871b0b86 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail049.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail049.stderr @@ -1,2 +1,2 @@ -tcfail049.hs:3:7: Not in scope: ‛g’ +tcfail049.hs:3:7: Not in scope: ‘g’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail050.stderr b/testsuite/tests/typecheck/should_fail/tcfail050.stderr index 5d7a917f53..db312bd721 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail050.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail050.stderr @@ -1,2 +1,2 @@ -tcfail050.hs:3:7: Not in scope: data constructor ‛B’ +tcfail050.hs:3:7: Not in scope: data constructor ‘B’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail051.stderr b/testsuite/tests/typecheck/should_fail/tcfail051.stderr index f4b0c0c563..958d0530ac 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail051.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail051.stderr @@ -1,2 +1,2 @@ -tcfail051.hs:3:10: Not in scope: type constructor or class ‛B’ +tcfail051.hs:3:10: Not in scope: type constructor or class ‘B’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail052.stderr b/testsuite/tests/typecheck/should_fail/tcfail052.stderr index 2359b4433e..671565b506 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail052.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail052.stderr @@ -1,2 +1,2 @@ -tcfail052.hs:3:16: Not in scope: type variable ‛c’ +tcfail052.hs:3:16: Not in scope: type variable ‘c’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail053.stderr b/testsuite/tests/typecheck/should_fail/tcfail053.stderr index c014f2f4f3..a9b13bd6da 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail053.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail053.stderr @@ -1,2 +1,2 @@ -tcfail053.hs:3:12: Not in scope: type constructor or class ‛A’ +tcfail053.hs:3:12: Not in scope: type constructor or class ‘A’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail054.stderr b/testsuite/tests/typecheck/should_fail/tcfail054.stderr index 93b200983f..79662bf1fe 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail054.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail054.stderr @@ -1,2 +1,2 @@ -tcfail054.hs:3:4: Not in scope: data constructor ‛B’ +tcfail054.hs:3:4: Not in scope: data constructor ‘B’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail055.stderr b/testsuite/tests/typecheck/should_fail/tcfail055.stderr index c82e9af2aa..f70bad6a02 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail055.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail055.stderr @@ -1,5 +1,5 @@ tcfail055.hs:3:8: - Couldn't match expected type ‛Float’ with actual type ‛Int’ + Couldn't match expected type ‘Float’ with actual type ‘Int’ In the expression: (x + 1 :: Int) :: Float - In an equation for ‛f’: f x = (x + 1 :: Int) :: Float + In an equation for ‘f’: f x = (x + 1 :: Int) :: Float diff --git a/testsuite/tests/typecheck/should_fail/tcfail056.stderr b/testsuite/tests/typecheck/should_fail/tcfail056.stderr index 60bba97453..16f44eacb8 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail056.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail056.stderr @@ -1,2 +1,2 @@ -tcfail056.hs:10:15: ‛<=’ is not a (visible) method of class ‛Eq’ +tcfail056.hs:10:15: ‘<=’ is not a (visible) method of class ‘Eq’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail057.stderr b/testsuite/tests/typecheck/should_fail/tcfail057.stderr index 5b19563bfc..d581207afa 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail057.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail057.stderr @@ -1,4 +1,4 @@ tcfail057.hs:5:7: - Expected a type, but ‛RealFrac a’ has kind ‛Constraint’ - In the type signature for ‛f’: f :: (RealFrac a) -> a -> a + Expected a type, but ‘RealFrac a’ has kind ‘Constraint’ + In the type signature for ‘f’: f :: (RealFrac a) -> a -> a diff --git a/testsuite/tests/typecheck/should_fail/tcfail058.stderr b/testsuite/tests/typecheck/should_fail/tcfail058.stderr index f5770a42dd..101a6a07d2 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail058.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail058.stderr @@ -1,5 +1,5 @@ tcfail058.hs:6:7: - Expecting one more argument to ‛Array a’ - Expected a constraint, but ‛Array a’ has kind ‛* -> *’ - In the type signature for ‛f’: f :: Array a => a -> b + Expecting one more argument to ‘Array a’ + Expected a constraint, but ‘Array a’ has kind ‘* -> *’ + In the type signature for ‘f’: f :: Array a => a -> b diff --git a/testsuite/tests/typecheck/should_fail/tcfail061.stderr b/testsuite/tests/typecheck/should_fail/tcfail061.stderr index 14ce5aec71..abd72aa2bc 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail061.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail061.stderr @@ -1,8 +1,8 @@ -tcfail061.hs:5:17: Not in scope: type variable ‛b’ +tcfail061.hs:5:17: Not in scope: type variable ‘b’ -tcfail061.hs:5:19: Not in scope: type variable ‛b’ +tcfail061.hs:5:19: Not in scope: type variable ‘b’ -tcfail061.hs:11:22: Not in scope: type variable ‛b’ +tcfail061.hs:11:22: Not in scope: type variable ‘b’ -tcfail061.hs:11:24: Not in scope: type variable ‛b’ +tcfail061.hs:11:24: Not in scope: type variable ‘b’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail062.stderr b/testsuite/tests/typecheck/should_fail/tcfail062.stderr index 2111c7e0fa..1396b536ee 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail062.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail062.stderr @@ -1,6 +1,6 @@ tcfail062.hs:34:6: - Not in scope: type variable ‛behaviouralExpression’ + Not in scope: type variable ‘behaviouralExpression’ tcfail062.hs:34:29: - Not in scope: type variable ‛behaviouralExpression’ + Not in scope: type variable ‘behaviouralExpression’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail063.stderr b/testsuite/tests/typecheck/should_fail/tcfail063.stderr index 0464396725..45bdaa36e2 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail063.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail063.stderr @@ -1,5 +1,5 @@ tcfail063.hs:6:9: - Expecting one more argument to ‛Num’ - Expected a constraint, but ‛Num’ has kind ‛* -> Constraint’ - In the type signature for ‛moby’: moby :: Num => Int -> a -> Int + Expecting one more argument to ‘Num’ + Expected a constraint, but ‘Num’ has kind ‘* -> Constraint’ + In the type signature for ‘moby’: moby :: Num => Int -> a -> Int diff --git a/testsuite/tests/typecheck/should_fail/tcfail065.stderr b/testsuite/tests/typecheck/should_fail/tcfail065.stderr index 89ac58145a..f912a68cdd 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail065.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail065.stderr @@ -1,13 +1,13 @@ tcfail065.hs:29:20: - Couldn't match expected type ‛x’ with actual type ‛x1’ - ‛x1’ is a rigid type variable bound by + Couldn't match expected type ‘x’ with actual type ‘x1’ + ‘x1’ is a rigid type variable bound by the type signature for setX :: x1 -> X x -> X x at tcfail065.hs:29:3 - ‛x’ is a rigid type variable bound by + ‘x’ is a rigid type variable bound by the instance declaration at tcfail065.hs:28:10 Relevant bindings include x :: x1 (bound at tcfail065.hs:29:8) setX :: x1 -> X x -> X x (bound at tcfail065.hs:29:3) - In the first argument of ‛X’, namely ‛x’ + In the first argument of ‘X’, namely ‘x’ In the expression: X x diff --git a/testsuite/tests/typecheck/should_fail/tcfail067.stderr b/testsuite/tests/typecheck/should_fail/tcfail067.stderr index ebe87035d1..e3f6444572 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail067.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail067.stderr @@ -3,24 +3,24 @@ tcfail067.hs:1:14: Warning: -XDatatypeContexts is deprecated: It was widely considered a misfeature, and has been removed from the Haskell language. tcfail067.hs:12:16: - No instance for (Ord a) arising from a use of ‛SubRange’ + No instance for (Ord a) arising from a use of ‘SubRange’ Possible fix: add (Ord a) to the context of the type signature for subRangeValue :: SubRange a -> a In the pattern: SubRange (lower, upper) value - In an equation for ‛subRangeValue’: + In an equation for ‘subRangeValue’: subRangeValue (SubRange (lower, upper) value) = value tcfail067.hs:15:11: - No instance for (Ord a) arising from a use of ‛SubRange’ + No instance for (Ord a) arising from a use of ‘SubRange’ Possible fix: add (Ord a) to the context of the type signature for subRange :: SubRange a -> (a, a) In the pattern: SubRange r value - In an equation for ‛subRange’: subRange (SubRange r value) = r + In an equation for ‘subRange’: subRange (SubRange r value) = r tcfail067.hs:46:12: - Could not deduce (Ord a) arising from a use of ‛SubRange’ + Could not deduce (Ord a) arising from a use of ‘SubRange’ from the context (Show a) bound by the type signature for showRange :: Show a => SubRange a -> String @@ -29,35 +29,35 @@ tcfail067.hs:46:12: add (Ord a) to the context of the type signature for showRange :: Show a => SubRange a -> String In the pattern: SubRange (lower, upper) value - In an equation for ‛showRange’: + In an equation for ‘showRange’: showRange (SubRange (lower, upper) value) = show value ++ " :" ++ show lower ++ ".." ++ show upper tcfail067.hs:61:12: - Could not deduce (Show a) arising from a use of ‛numSubRangeNegate’ + Could not deduce (Show a) arising from a use of ‘numSubRangeNegate’ from the context (Num a) bound by the instance declaration at tcfail067.hs:60:10-34 Possible fix: add (Show a) to the context of the instance declaration In the expression: numSubRangeNegate - In an equation for ‛negate’: negate = numSubRangeNegate - In the instance declaration for ‛Num (SubRange a)’ + In an equation for ‘negate’: negate = numSubRangeNegate + In the instance declaration for ‘Num (SubRange a)’ tcfail067.hs:65:19: - Could not deduce (Ord a) arising from a use of ‛SubRange’ + Could not deduce (Ord a) arising from a use of ‘SubRange’ from the context (Num a) bound by the instance declaration at tcfail067.hs:60:10-34 Possible fix: add (Ord a) to the context of the instance declaration In the expression: SubRange (fromInteger a, fromInteger a) (fromInteger a) - In an equation for ‛fromInteger’: + In an equation for ‘fromInteger’: fromInteger a = SubRange (fromInteger a, fromInteger a) (fromInteger a) - In the instance declaration for ‛Num (SubRange a)’ + In the instance declaration for ‘Num (SubRange a)’ tcfail067.hs:74:5: - Could not deduce (Ord a) arising from a use of ‛SubRange’ + Could not deduce (Ord a) arising from a use of ‘SubRange’ from the context (Num a) bound by the type signature for numSubRangeBinOp :: Num a => @@ -69,7 +69,7 @@ tcfail067.hs:74:5: numSubRangeBinOp :: Num a => (a -> a -> a) -> SubRange a -> SubRange a -> SubRange a In the expression: SubRange (result, result) result - In an equation for ‛numSubRangeBinOp’: + In an equation for ‘numSubRangeBinOp’: numSubRangeBinOp op a b = SubRange (result, result) result where diff --git a/testsuite/tests/typecheck/should_fail/tcfail068.stderr b/testsuite/tests/typecheck/should_fail/tcfail068.stderr index 8b2cd42158..1df6fb8bb4 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail068.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail068.stderr @@ -5,10 +5,10 @@ tcfail068.hs:14:9: bound by the type signature for itgen :: Constructed a => (Int, Int) -> a -> IndTree s a at tcfail068.hs:11:10-55 - ‛s1’ is a rigid type variable bound by + ‘s1’ is a rigid type variable bound by a type expected by the context: GHC.ST.ST s1 (IndTree s a) at tcfail068.hs:13:9 - ‛s’ is a rigid type variable bound by + ‘s’ is a rigid type variable bound by the type signature for itgen :: Constructed a => (Int, Int) -> a -> IndTree s a at tcfail068.hs:11:10 @@ -17,8 +17,8 @@ tcfail068.hs:14:9: Relevant bindings include itgen :: (Int, Int) -> a -> IndTree s a (bound at tcfail068.hs:12:1) - In the first argument of ‛runST’, namely - ‛(newSTArray ((1, 1), n) x)’ + In the first argument of ‘runST’, namely + ‘(newSTArray ((1, 1), n) x)’ In the expression: runST (newSTArray ((1, 1), n) x) tcfail068.hs:19:21: @@ -28,12 +28,12 @@ tcfail068.hs:19:21: itiap :: Constructed a => (Int, Int) -> (a -> a) -> IndTree s a -> IndTree s a at tcfail068.hs:16:10-75 - ‛s’ is a rigid type variable bound by + ‘s’ is a rigid type variable bound by the type signature for itiap :: Constructed a => (Int, Int) -> (a -> a) -> IndTree s a -> IndTree s a at tcfail068.hs:16:10 - ‛s1’ is a rigid type variable bound by + ‘s1’ is a rigid type variable bound by a type expected by the context: GHC.ST.ST s1 (IndTree s a) at tcfail068.hs:18:9 Expected type: STArray s1 (Int, Int) a @@ -42,8 +42,8 @@ tcfail068.hs:19:21: arr :: IndTree s a (bound at tcfail068.hs:17:11) itiap :: (Int, Int) -> (a -> a) -> IndTree s a -> IndTree s a (bound at tcfail068.hs:17:1) - In the first argument of ‛readSTArray’, namely ‛arr’ - In the first argument of ‛(>>=)’, namely ‛readSTArray arr i’ + In the first argument of ‘readSTArray’, namely ‘arr’ + In the first argument of ‘(>>=)’, namely ‘readSTArray arr i’ tcfail068.hs:24:35: Could not deduce (s ~ s1) @@ -52,12 +52,12 @@ tcfail068.hs:24:35: itrap :: Constructed a => ((Int, Int), (Int, Int)) -> (a -> a) -> IndTree s a -> IndTree s a at tcfail068.hs:23:10-87 - ‛s’ is a rigid type variable bound by + ‘s’ is a rigid type variable bound by the type signature for itrap :: Constructed a => ((Int, Int), (Int, Int)) -> (a -> a) -> IndTree s a -> IndTree s a at tcfail068.hs:23:10 - ‛s1’ is a rigid type variable bound by + ‘s1’ is a rigid type variable bound by a type expected by the context: GHC.ST.ST s1 (IndTree s a) at tcfail068.hs:24:29 Expected type: GHC.ST.ST s1 (IndTree s a) @@ -71,7 +71,7 @@ tcfail068.hs:24:35: itrap :: ((Int, Int), (Int, Int)) -> (a -> a) -> IndTree s a -> IndTree s a (bound at tcfail068.hs:24:1) - In the first argument of ‛runST’, namely ‛(itrap' i k)’ + In the first argument of ‘runST’, namely ‘(itrap' i k)’ In the expression: runST (itrap' i k) tcfail068.hs:36:46: @@ -87,7 +87,7 @@ tcfail068.hs:36:46: -> IndTree s b -> (c, IndTree s b) at tcfail068.hs:(34,15)-(35,62) - ‛s’ is a rigid type variable bound by + ‘s’ is a rigid type variable bound by the type signature for itrapstate :: Constructed b => ((Int, Int), (Int, Int)) @@ -98,7 +98,7 @@ tcfail068.hs:36:46: -> IndTree s b -> (c, IndTree s b) at tcfail068.hs:34:15 - ‛s1’ is a rigid type variable bound by + ‘s1’ is a rigid type variable bound by a type expected by the context: GHC.ST.ST s1 (c, IndTree s b) at tcfail068.hs:36:40 Expected type: GHC.ST.ST s1 (c, IndTree s b) @@ -117,5 +117,5 @@ tcfail068.hs:36:46: -> IndTree s b -> (c, IndTree s b) (bound at tcfail068.hs:36:1) - In the first argument of ‛runST’, namely ‛(itrapstate' i k s)’ + In the first argument of ‘runST’, namely ‘(itrapstate' i k s)’ In the expression: runST (itrapstate' i k s) diff --git a/testsuite/tests/typecheck/should_fail/tcfail069.stderr b/testsuite/tests/typecheck/should_fail/tcfail069.stderr index 7c793c49ba..195119d26d 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail069.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail069.stderr @@ -1,7 +1,7 @@ tcfail069.hs:21:7: - Couldn't match expected type ‛([Int], [Int])’ - with actual type ‛[t0]’ + Couldn't match expected type ‘([Int], [Int])’ + with actual type ‘[t0]’ In the pattern: [] In a case alternative: [] -> error "foo" In the expression: case (list1, list2) of { [] -> error "foo" } diff --git a/testsuite/tests/typecheck/should_fail/tcfail070.stderr b/testsuite/tests/typecheck/should_fail/tcfail070.stderr index bc0590aae8..d98857de4c 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail070.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail070.stderr @@ -1,5 +1,5 @@ tcfail070.hs:15:15: - ‛[Int]’ is applied to too many type arguments - In the type ‛[Int] Bool’ - In the type declaration for ‛State’ + ‘[Int]’ is applied to too many type arguments + In the type ‘[Int] Bool’ + In the type declaration for ‘State’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail072.stderr b/testsuite/tests/typecheck/should_fail/tcfail072.stderr index 828de022e6..aa5fcc9c7e 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail072.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail072.stderr @@ -1,16 +1,16 @@ tcfail072.hs:23:13: - Could not deduce (Ord q0) arising from a use of ‛g’ + Could not deduce (Ord q0) arising from a use of ‘g’ from the context (Ord p, Ord q) bound by the type signature for g :: (Ord p, Ord q) => AB p q -> Bool at tcfail072.hs:22:6-38 - The type variable ‛q0’ is ambiguous + The type variable ‘q0’ is ambiguous Note: there are several potential instances: instance Integral a => Ord (GHC.Real.Ratio a) - -- Defined in ‛GHC.Real’ - instance Ord () -- Defined in ‛GHC.Classes’ - instance (Ord a, Ord b) => Ord (a, b) -- Defined in ‛GHC.Classes’ + -- Defined in ‘GHC.Real’ + instance Ord () -- Defined in ‘GHC.Classes’ + instance (Ord a, Ord b) => Ord (a, b) -- Defined in ‘GHC.Classes’ ...plus 23 others In the expression: g A - In an equation for ‛g’: g (B _ _) = g A + In an equation for ‘g’: g (B _ _) = g A diff --git a/testsuite/tests/typecheck/should_fail/tcfail073.stderr b/testsuite/tests/typecheck/should_fail/tcfail073.stderr index 16bcdf4c0f..da7f1e4e6d 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail073.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail073.stderr @@ -2,4 +2,4 @@ tcfail073.hs:8:10: Duplicate instance declarations: instance Eq a => Eq (a, b) -- Defined at tcfail073.hs:8:10 - instance (Eq a, Eq b) => Eq (a, b) -- Defined in ‛GHC.Classes’ + instance (Eq a, Eq b) => Eq (a, b) -- Defined in ‘GHC.Classes’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail076.stderr b/testsuite/tests/typecheck/should_fail/tcfail076.stderr index d6d23eb9c2..b5ad5cd2d6 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail076.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail076.stderr @@ -1,10 +1,10 @@ tcfail076.hs:18:82: - Couldn't match type ‛res’ with ‛res1’ - ‛res’ is a rigid type variable bound by + Couldn't match type ‘res’ with ‘res1’ + ‘res’ is a rigid type variable bound by a type expected by the context: (a -> m res) -> m res at tcfail076.hs:18:28 - ‛res1’ is a rigid type variable bound by + ‘res1’ is a rigid type variable bound by a type expected by the context: (b -> m res1) -> m res1 at tcfail076.hs:18:64 Expected type: m res1 @@ -13,4 +13,4 @@ tcfail076.hs:18:82: cont' :: b -> m res1 (bound at tcfail076.hs:18:73) cont :: a -> m res (bound at tcfail076.hs:18:37) In the expression: cont a - In the first argument of ‛KContT’, namely ‛(\ cont' -> cont a)’ + In the first argument of ‘KContT’, namely ‘(\ cont' -> cont a)’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail077.stderr b/testsuite/tests/typecheck/should_fail/tcfail077.stderr index 3f25950faf..39ee49db3f 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail077.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail077.stderr @@ -1,2 +1,2 @@ -tcfail077.hs:8:3: ‛op2’ is not a (visible) method of class ‛Foo’ +tcfail077.hs:8:3: ‘op2’ is not a (visible) method of class ‘Foo’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail078.stderr b/testsuite/tests/typecheck/should_fail/tcfail078.stderr index b3fabd30b9..9266b951f1 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail078.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail078.stderr @@ -1,4 +1,4 @@ tcfail078.hs:5:6: - ‛Integer’ is applied to too many type arguments - In the type signature for ‛f’: f :: Integer i => i + ‘Integer’ is applied to too many type arguments + In the type signature for ‘f’: f :: Integer i => i diff --git a/testsuite/tests/typecheck/should_fail/tcfail079.stderr b/testsuite/tests/typecheck/should_fail/tcfail079.stderr index 4cce1a69ba..125c6f13f6 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail079.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail079.stderr @@ -1,6 +1,6 @@ tcfail079.hs:9:27: - Expecting a lifted type, but ‛Int#’ is unlifted - In the type ‛Int#’ - In the definition of data constructor ‛Unboxed’ - In the newtype declaration for ‛Unboxed’ + Expecting a lifted type, but ‘Int#’ is unlifted + In the type ‘Int#’ + In the definition of data constructor ‘Unboxed’ + In the newtype declaration for ‘Unboxed’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail080.stderr b/testsuite/tests/typecheck/should_fail/tcfail080.stderr index 23afa16ba3..589d6cf342 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail080.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail080.stderr @@ -1,13 +1,13 @@ tcfail080.hs:27:1: Could not deduce (Collection c0 a) - arising from the ambiguity check for ‛q’ + arising from the ambiguity check for ‘q’ from the context (Collection c a) - bound by the inferred type for ‛q’: Collection c a => a -> Bool + bound by the inferred type for ‘q’: Collection c a => a -> Bool at tcfail080.hs:27:1-27 - The type variable ‛c0’ is ambiguous - When checking that ‛q’ - has the inferred type ‛forall (c :: * -> *) a. + The type variable ‘c0’ is ambiguous + When checking that ‘q’ + has the inferred type ‘forall (c :: * -> *) a. Collection c a => a -> Bool’ Probable cause: the inferred type is ambiguous diff --git a/testsuite/tests/typecheck/should_fail/tcfail082.stderr b/testsuite/tests/typecheck/should_fail/tcfail082.stderr index 11823fe448..4e3d6ce996 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail082.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail082.stderr @@ -1,12 +1,12 @@ tcfail082.hs:2:1: - Failed to load interface for ‛Data82’ + Failed to load interface for ‘Data82’ Use -v to see a list of the files searched for. tcfail082.hs:3:1: - Failed to load interface for ‛Inst82_1’ + Failed to load interface for ‘Inst82_1’ Use -v to see a list of the files searched for. tcfail082.hs:4:1: - Failed to load interface for ‛Inst82_2’ + Failed to load interface for ‘Inst82_2’ Use -v to see a list of the files searched for. diff --git a/testsuite/tests/typecheck/should_fail/tcfail083.stderr b/testsuite/tests/typecheck/should_fail/tcfail083.stderr index 8bcd75be63..badd43909d 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail083.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail083.stderr @@ -1,7 +1,7 @@ tcfail083.hs:8:39: - Constructor ‛Bar’ does not have field ‛baz’ + Constructor ‘Bar’ does not have field ‘baz’ In the pattern: Bar {flag = f, baz = b} In the pattern: State {bar = Bar {flag = f, baz = b}} - In an equation for ‛display’: + In an equation for ‘display’: display (State {bar = Bar {flag = f, baz = b}}) = print (f, b) diff --git a/testsuite/tests/typecheck/should_fail/tcfail084.stderr b/testsuite/tests/typecheck/should_fail/tcfail084.stderr index cfa0ff4835..df09cd91be 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail084.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail084.stderr @@ -1,5 +1,5 @@ tcfail084.hs:10:5: - Constructor ‛F’ does not have field ‛y’ + Constructor ‘F’ does not have field ‘y’ In the expression: F {y = 2} - In an equation for ‛z’: z = F {y = 2} + In an equation for ‘z’: z = F {y = 2} diff --git a/testsuite/tests/typecheck/should_fail/tcfail085.stderr b/testsuite/tests/typecheck/should_fail/tcfail085.stderr index feb7c6daf3..6c2e9bd913 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail085.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail085.stderr @@ -1,5 +1,5 @@ tcfail085.hs:9:5: - Constructor ‛F’ does not have the required strict field(s): y + Constructor ‘F’ does not have the required strict field(s): y In the expression: F {x = 2} - In an equation for ‛z’: z = F {x = 2} + In an equation for ‘z’: z = F {x = 2} diff --git a/testsuite/tests/typecheck/should_fail/tcfail086.stderr b/testsuite/tests/typecheck/should_fail/tcfail086.stderr index ebf4d4e8e6..65149ef1f9 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail086.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail086.stderr @@ -1,6 +1,6 @@ tcfail086.hs:6:38: - Can't make a derived instance of ‛Eq Ex’: - Constructor ‛Ex’ must have a Haskell-98 type + Can't make a derived instance of ‘Eq Ex’: + Constructor ‘Ex’ must have a Haskell-98 type Possible fix: use a standalone deriving declaration instead - In the data declaration for ‛Ex’ + In the data declaration for ‘Ex’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail088.stderr b/testsuite/tests/typecheck/should_fail/tcfail088.stderr index 1c303d9a65..d9cd5427b7 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail088.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail088.stderr @@ -1,4 +1,4 @@ tcfail088.hs:9:19: Illegal polymorphic or qualified type: forall s. T s a - In the instance declaration for ‛Ord (forall s. T s a)’ + In the instance declaration for ‘Ord (forall s. T s a)’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail090.stderr b/testsuite/tests/typecheck/should_fail/tcfail090.stderr index 1b93cba9c7..c4a8a31b60 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail090.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail090.stderr @@ -4,4 +4,4 @@ tcfail090.hs:11:9: a0 :: *
ByteArray# :: #
In the expression: my_undefined
- In an equation for ‛die’: die _ = my_undefined
+ In an equation for ‘die’: die _ = my_undefined
diff --git a/testsuite/tests/typecheck/should_fail/tcfail092.stderr b/testsuite/tests/typecheck/should_fail/tcfail092.stderr index d1079d879e..68f94ea7d9 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail092.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail092.stderr @@ -1,3 +1,3 @@ tcfail092.hs:7:27: - Duplicate binding in parallel list comprehension for: ‛a’ + Duplicate binding in parallel list comprehension for: ‘a’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail097.stderr b/testsuite/tests/typecheck/should_fail/tcfail097.stderr index 4d5d40c8d3..cbd5612b96 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail097.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail097.stderr @@ -1,10 +1,10 @@ tcfail097.hs:5:6: - Could not deduce (Eq a0) arising from the ambiguity check for ‛f’ + Could not deduce (Eq a0) arising from the ambiguity check for ‘f’ from the context (Eq a) bound by the type signature for f :: Eq a => Int -> Int at tcfail097.hs:5:6-23 - The type variable ‛a0’ is ambiguous + The type variable ‘a0’ is ambiguous In the ambiguity check for: forall a. Eq a => Int -> Int To defer the ambiguity check to use sites, enable AllowAmbiguousTypes - In the type signature for ‛f’: f :: Eq a => Int -> Int + In the type signature for ‘f’: f :: Eq a => Int -> Int diff --git a/testsuite/tests/typecheck/should_fail/tcfail098.stderr b/testsuite/tests/typecheck/should_fail/tcfail098.stderr index 15d33b1245..94ade75946 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail098.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail098.stderr @@ -5,7 +5,7 @@ tcfail098.hs:12:10: from the context (Bar a) bound by an instance declaration: Bar a => Bar Bool at tcfail098.hs:12:10-26 - The type variable ‛a0’ is ambiguous + The type variable ‘a0’ is ambiguous In the ambiguity check for: forall a. Bar a => Bar Bool To defer the ambiguity check to use sites, enable AllowAmbiguousTypes - In the instance declaration for ‛Bar Bool’ + In the instance declaration for ‘Bar Bool’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail099.stderr b/testsuite/tests/typecheck/should_fail/tcfail099.stderr index 73293eb6b6..7b1f5bc0e0 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail099.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail099.stderr @@ -1,15 +1,15 @@ tcfail099.hs:9:20: - Couldn't match expected type ‛a’ with actual type ‛t’ - because type variable ‛a’ would escape its scope + Couldn't match expected type ‘a’ with actual type ‘t’ + because type variable ‘a’ would escape its scope This (rigid, skolem) type variable is bound by a pattern with constructor C :: forall a. (a -> Int) -> DS, - in an equation for ‛call’ + in an equation for ‘call’ at tcfail099.hs:9:7-9 Relevant bindings include arg :: t (bound at tcfail099.hs:9:12) f :: a -> Int (bound at tcfail099.hs:9:9) call :: DS -> t -> Int (bound at tcfail099.hs:9:1) - In the first argument of ‛f’, namely ‛arg’ + In the first argument of ‘f’, namely ‘arg’ In the expression: f arg diff --git a/testsuite/tests/typecheck/should_fail/tcfail100.stderr b/testsuite/tests/typecheck/should_fail/tcfail100.stderr index 1e78076701..c2bf429fd6 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail100.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail100.stderr @@ -1,4 +1,4 @@ tcfail100.hs:7:1: - Type synonym ‛A’ should have 1 argument, but has been given none - In the type declaration for ‛B’ + Type synonym ‘A’ should have 1 argument, but has been given none + In the type declaration for ‘B’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail101.stderr b/testsuite/tests/typecheck/should_fail/tcfail101.stderr index f9b3f2f71f..ddf8e433f0 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail101.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail101.stderr @@ -1,4 +1,4 @@ tcfail101.hs:9:6: - Type synonym ‛A’ should have 1 argument, but has been given none - In the type signature for ‛f’: f :: T A + Type synonym ‘A’ should have 1 argument, but has been given none + In the type signature for ‘f’: f :: T A diff --git a/testsuite/tests/typecheck/should_fail/tcfail102.stderr b/testsuite/tests/typecheck/should_fail/tcfail102.stderr index 1009fb4cca..01a8bba99a 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail102.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail102.stderr @@ -3,11 +3,11 @@ tcfail102.hs:1:14: Warning: -XDatatypeContexts is deprecated: It was widely considered a misfeature, and has been removed from the Haskell language. tcfail102.hs:9:15: - Could not deduce (Integral (Ratio a)) arising from a use of ‛p’ + Could not deduce (Integral (Ratio a)) arising from a use of ‘p’ from the context (Integral a) bound by the type signature for f :: Integral a => P (Ratio a) -> P (Ratio a) at tcfail102.hs:8:6-45 - In the ‛p’ field of a record + In the ‘p’ field of a record In the expression: x {p = p x} - In an equation for ‛f’: f x = x {p = p x} + In an equation for ‘f’: f x = x {p = p x} diff --git a/testsuite/tests/typecheck/should_fail/tcfail103.stderr b/testsuite/tests/typecheck/should_fail/tcfail103.stderr index 4f1315331d..1d71a6aa9a 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail103.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail103.stderr @@ -1,9 +1,9 @@ tcfail103.hs:15:23: - Couldn't match type ‛t’ with ‛s’ - ‛t’ is a rigid type variable bound by + Couldn't match type ‘t’ with ‘s’ + ‘t’ is a rigid type variable bound by the type signature for f :: ST t Int at tcfail103.hs:10:5 - ‛s’ is a rigid type variable bound by + ‘s’ is a rigid type variable bound by the type signature for g :: ST s Int at tcfail103.hs:13:14 Expected type: STRef s Int Actual type: STRef t Int @@ -11,5 +11,5 @@ tcfail103.hs:15:23: g :: ST s Int (bound at tcfail103.hs:15:9) v :: STRef t Int (bound at tcfail103.hs:12:5) f :: ST t Int (bound at tcfail103.hs:11:1) - In the first argument of ‛readSTRef’, namely ‛v’ + In the first argument of ‘readSTRef’, namely ‘v’ In the expression: readSTRef v diff --git a/testsuite/tests/typecheck/should_fail/tcfail104.stderr b/testsuite/tests/typecheck/should_fail/tcfail104.stderr index ea41dfad92..cb14d9af26 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail104.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail104.stderr @@ -1,12 +1,12 @@ tcfail104.hs:16:19: - Couldn't match expected type ‛Char -> Char’ - with actual type ‛forall a. a -> a’ + Couldn't match expected type ‘Char -> Char’ + with actual type ‘forall a. a -> a’ In the expression: x In the expression: (\ x -> x) tcfail104.hs:22:39: - Couldn't match expected type ‛forall a. a -> a’ - with actual type ‛a0 -> a0’ + Couldn't match expected type ‘forall a. a -> a’ + with actual type ‘a0 -> a0’ In the expression: x In the expression: (\ (x :: forall a. a -> a) -> x) diff --git a/testsuite/tests/typecheck/should_fail/tcfail106.stderr b/testsuite/tests/typecheck/should_fail/tcfail106.stderr index 2eeaf71979..8d8d1a61d8 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail106.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail106.stderr @@ -2,4 +2,4 @@ tcfail106.hs:14:10: No instance for (S Int) arising from the superclasses of an instance declaration - In the instance declaration for ‛D Int’ + In the instance declaration for ‘D Int’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail107.stderr b/testsuite/tests/typecheck/should_fail/tcfail107.stderr index b658814776..43d0c2d1fd 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail107.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail107.stderr @@ -1,5 +1,5 @@ tcfail107.hs:13:9: - Type synonym ‛Const’ should have 2 arguments, but has been given 1 - In the type signature for ‛test’: + Type synonym ‘Const’ should have 2 arguments, but has been given 1 + In the type signature for ‘test’: test :: Thing (Const Int) -> Thing (Const Int) diff --git a/testsuite/tests/typecheck/should_fail/tcfail108.stderr b/testsuite/tests/typecheck/should_fail/tcfail108.stderr index e1b8c71824..490640f74b 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail108.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail108.stderr @@ -4,4 +4,4 @@ tcfail108.hs:7:10: (Use FlexibleContexts to permit this) In the context: (Eq (f (Rec f))) While checking an instance declaration - In the instance declaration for ‛Eq (Rec f)’ + In the instance declaration for ‘Eq (Rec f)’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail109.stderr b/testsuite/tests/typecheck/should_fail/tcfail109.stderr index 4b59607186..ce8011a5e7 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail109.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail109.stderr @@ -2,4 +2,4 @@ tcfail109.hs:16:10: No instance for (Eq Stupid) arising from the superclasses of an instance declaration - In the instance declaration for ‛Collects Bool Stupid’ + In the instance declaration for ‘Collects Bool Stupid’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail110.stderr b/testsuite/tests/typecheck/should_fail/tcfail110.stderr index 840dc29dee..cb60a79d93 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail110.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail110.stderr @@ -1,6 +1,6 @@ tcfail110.hs:8:30: - Expecting one more argument to ‛Foo a’ - Expected a type, but ‛Foo a’ has kind ‛* -> *’ - In the type signature for ‛bar’: + Expecting one more argument to ‘Foo a’ + Expected a type, but ‘Foo a’ has kind ‘* -> *’ + In the type signature for ‘bar’: bar :: String -> (forall a. Foo a) -> IO () diff --git a/testsuite/tests/typecheck/should_fail/tcfail112.stderr b/testsuite/tests/typecheck/should_fail/tcfail112.stderr index 70cd77bca3..a90cdfefe6 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail112.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail112.stderr @@ -1,15 +1,15 @@ tcfail112.hs:11:6: - Constructor ‛S’ does not have the required strict field(s): y + Constructor ‘S’ does not have the required strict field(s): y In the expression: S {} - In an equation for ‛s1’: s1 = S {} + In an equation for ‘s1’: s1 = S {} tcfail112.hs:12:6: - Constructor ‛S’ does not have the required strict field(s): y + Constructor ‘S’ does not have the required strict field(s): y In the expression: S {x = 3} - In an equation for ‛s2’: s2 = S {x = 3} + In an equation for ‘s2’: s2 = S {x = 3} tcfail112.hs:14:6: - Constructor ‛T’ does not have the required strict field(s) + Constructor ‘T’ does not have the required strict field(s) In the expression: T {} - In an equation for ‛t’: t = T {} + In an equation for ‘t’: t = T {} diff --git a/testsuite/tests/typecheck/should_fail/tcfail113.stderr b/testsuite/tests/typecheck/should_fail/tcfail113.stderr index f9314f5dcc..8584008cd3 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail113.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail113.stderr @@ -1,14 +1,14 @@ tcfail113.hs:12:7: - Expecting one more argument to ‛Maybe’ - Expected kind ‛*’, but ‛Maybe’ has kind ‛* -> *’ - In the type signature for ‛f’: f :: [Maybe] + Expecting one more argument to ‘Maybe’ + Expected kind ‘*’, but ‘Maybe’ has kind ‘* -> *’ + In the type signature for ‘f’: f :: [Maybe] tcfail113.hs:15:8: - The first argument of ‛T’ should have kind ‛* -> *’, - but ‛Int’ has kind ‛*’ - In the type signature for ‛g’: g :: T Int + The first argument of ‘T’ should have kind ‘* -> *’, + but ‘Int’ has kind ‘*’ + In the type signature for ‘g’: g :: T Int tcfail113.hs:18:6: - ‛Int’ is applied to too many type arguments - In the type signature for ‛h’: h :: Int Int + ‘Int’ is applied to too many type arguments + In the type signature for ‘h’: h :: Int Int diff --git a/testsuite/tests/typecheck/should_fail/tcfail114.stderr b/testsuite/tests/typecheck/should_fail/tcfail114.stderr index 41c8a65cec..0ba84aad71 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail114.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail114.stderr @@ -1,5 +1,5 @@ tcfail114.hs:11:20: - ‛foo’ is not a record selector + ‘foo’ is not a record selector In the expression: undefined {foo = ()} - In an equation for ‛test’: test = undefined {foo = ()} + In an equation for ‘test’: test = undefined {foo = ()} diff --git a/testsuite/tests/typecheck/should_fail/tcfail116.stderr b/testsuite/tests/typecheck/should_fail/tcfail116.stderr index d49438dd97..0fdafcfaba 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail116.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail116.stderr @@ -1,6 +1,6 @@ tcfail116.hs:5:1: - The class method ‛bug’ + The class method ‘bug’ mentions none of the type variables of the class Foo a When checking the class method: bug :: () - In the class declaration for ‛Foo’ + In the class declaration for ‘Foo’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail117.stderr b/testsuite/tests/typecheck/should_fail/tcfail117.stderr index 3f2248a61f..e35a2581c8 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail117.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail117.stderr @@ -1,13 +1,13 @@ tcfail117.hs:5:32: - Can't make a derived instance of ‛Enum N1’: - ‛N1’ must be an enumeration type + Can't make a derived instance of ‘Enum N1’: + ‘N1’ must be an enumeration type (an enumeration consists of one or more nullary, non-GADT constructors) Try GeneralizedNewtypeDeriving for GHC's newtype-deriving extension - In the newtype declaration for ‛N1’ + In the newtype declaration for ‘N1’ tcfail117.hs:6:32: - Can't make a derived instance of ‛Enum N2’: - ‛N2’ must be an enumeration type + Can't make a derived instance of ‘Enum N2’: + ‘N2’ must be an enumeration type (an enumeration consists of one or more nullary, non-GADT constructors) - In the data declaration for ‛N2’ + In the data declaration for ‘N2’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail118.stderr b/testsuite/tests/typecheck/should_fail/tcfail118.stderr index 01f6654c9d..098af79736 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail118.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail118.stderr @@ -1,7 +1,7 @@ tcfail118.hs:10:29: Overlapping instances for Eq Foo - arising from the first field of ‛Bar’ (type ‛Foo’) + arising from the first field of ‘Bar’ (type ‘Foo’) Matching instances: instance Eq Foo -- Defined at tcfail118.hs:11:25 instance Eq Foo -- Defined at tcfail118.hs:13:10 diff --git a/testsuite/tests/typecheck/should_fail/tcfail119.stderr b/testsuite/tests/typecheck/should_fail/tcfail119.stderr index 45a1bc7707..5c22aefc4e 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail119.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail119.stderr @@ -1,5 +1,5 @@ tcfail119.hs:11:8: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the pattern: "Foo" - In an equation for ‛b’: b x "Foo" = () + In an equation for ‘b’: b x "Foo" = () diff --git a/testsuite/tests/typecheck/should_fail/tcfail121.stderr b/testsuite/tests/typecheck/should_fail/tcfail121.stderr index abad2d4206..bc71d5e79f 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail121.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail121.stderr @@ -1,12 +1,12 @@ tcfail121.hs:13:9: - Overlapping instances for Foo [a] arising from a use of ‛op’ + Overlapping instances for Foo [a] arising from a use of ‘op’ Matching instances: instance [overlap ok] Foo a => Foo [a] -- Defined at tcfail121.hs:9:10 instance [overlap ok] Foo [Int] -- Defined at tcfail121.hs:10:10 - (The choice depends on the instantiation of ‛a’ + (The choice depends on the instantiation of ‘a’ To pick the first instance above, use IncoherentInstances when compiling the other instance declarations) In the expression: op x - In an equation for ‛foo’: foo x = op x + In an equation for ‘foo’: foo x = op x diff --git a/testsuite/tests/typecheck/should_fail/tcfail122.stderr b/testsuite/tests/typecheck/should_fail/tcfail122.stderr index 901ceb84d1..b643d585a8 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail122.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail122.stderr @@ -11,7 +11,7 @@ tcfail122.hs:8:9: In the expression: [undefined :: forall a b. a b, undefined :: forall (c :: (* -> *) -> *) (d :: * -> *). c d] - In an equation for ‛foo’: + In an equation for ‘foo’: foo = [undefined :: forall a b. a b, undefined :: forall (c :: (* -> *) -> *) (d :: * -> *). c d] diff --git a/testsuite/tests/typecheck/should_fail/tcfail123.stderr b/testsuite/tests/typecheck/should_fail/tcfail123.stderr index 510d1db490..1fcb62d1a3 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail123.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail123.stderr @@ -3,6 +3,6 @@ tcfail123.hs:11:9: Kind incompatibility when matching types:
t0 :: *
GHC.Prim.Int# :: #
- In the first argument of ‛f’, namely ‛3#’
+ In the first argument of ‘f’, namely ‘3#’
In the expression: f 3#
- In an equation for ‛h’: h v = f 3#
+ In an equation for ‘h’: h v = f 3#
diff --git a/testsuite/tests/typecheck/should_fail/tcfail125.stderr b/testsuite/tests/typecheck/should_fail/tcfail125.stderr index 592698f7d4..b3e0720f79 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail125.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail125.stderr @@ -3,9 +3,9 @@ tcfail125.hs:1:14: Warning: -XDatatypeContexts is deprecated: It was widely considered a misfeature, and has been removed from the Haskell language. tcfail125.hs:11:4: - No instance for (Show a) arising from a use of ‛LiftObs’ + No instance for (Show a) arising from a use of ‘LiftObs’ Possible fix: add (Show a) to the context of the type signature for f :: Obs a -> String In the pattern: LiftObs _ _ - In an equation for ‛f’: f (LiftObs _ _) = "yes" + In an equation for ‘f’: f (LiftObs _ _) = "yes" diff --git a/testsuite/tests/typecheck/should_fail/tcfail127.stderr b/testsuite/tests/typecheck/should_fail/tcfail127.stderr index fb91cfb90d..d05a234010 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail127.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail127.stderr @@ -2,4 +2,4 @@ tcfail127.hs:3:8: Illegal polymorphic or qualified type: Num a => a -> a Perhaps you intended to use ImpredicativeTypes - In the type signature for ‛foo’: foo :: IO (Num a => a -> a) + In the type signature for ‘foo’: foo :: IO (Num a => a -> a) diff --git a/testsuite/tests/typecheck/should_fail/tcfail128.stderr b/testsuite/tests/typecheck/should_fail/tcfail128.stderr index 38ae102d99..b33dffb289 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail128.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail128.stderr @@ -1,11 +1,11 @@ tcfail128.hs:18:16: No instance for (Data.Array.Base.MArray b0 FlatVector IO) - arising from a use of ‛thaw’ - The type variable ‛b0’ is ambiguous + arising from a use of ‘thaw’ + The type variable ‘b0’ is ambiguous Note: there is a potential instance available: instance Data.Array.Base.MArray GHC.IOArray.IOArray e IO - -- Defined in ‛Data.Array.Base’ + -- Defined in ‘Data.Array.Base’ In a stmt of a 'do' block: v <- thaw tmp In the expression: do { let sL = ... @@ -13,7 +13,7 @@ tcfail128.hs:18:16: ....; v <- thaw tmp; return () } - In an equation for ‛main’: + In an equation for ‘main’: main = do { let sL = ... ....; diff --git a/testsuite/tests/typecheck/should_fail/tcfail129.stderr b/testsuite/tests/typecheck/should_fail/tcfail129.stderr index 0bffcbf76f..2c1b4bfb72 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail129.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail129.stderr @@ -1,12 +1,12 @@ tcfail129.hs:12:21: - Type synonym ‛Foo’ should have 1 argument, but has been given none + Type synonym ‘Foo’ should have 1 argument, but has been given none In an expression type signature: Bar Foo In the expression: undefined :: Bar Foo - In an equation for ‛blah’: blah = undefined :: Bar Foo + In an equation for ‘blah’: blah = undefined :: Bar Foo tcfail129.hs:17:22: - Type synonym ‛Foo1’ should have 1 argument, but has been given none + Type synonym ‘Foo1’ should have 1 argument, but has been given none In an expression type signature: Bar1 Foo1 In the expression: undefined :: Bar1 Foo1 - In an equation for ‛blah1’: blah1 = undefined :: Bar1 Foo1 + In an equation for ‘blah1’: blah1 = undefined :: Bar1 Foo1 diff --git a/testsuite/tests/typecheck/should_fail/tcfail130.stderr b/testsuite/tests/typecheck/should_fail/tcfail130.stderr index 37f3614b5f..8e71045bef 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail130.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail130.stderr @@ -1,5 +1,5 @@ tcfail130.hs:10:7: - Unbound implicit parameter (?x::Int) arising from a use of ‛woggle’ + Unbound implicit parameter (?x::Int) arising from a use of ‘woggle’ In the expression: woggle 3 - In an equation for ‛foo’: foo = woggle 3 + In an equation for ‘foo’: foo = woggle 3 diff --git a/testsuite/tests/typecheck/should_fail/tcfail131.stderr b/testsuite/tests/typecheck/should_fail/tcfail131.stderr index da75512b9e..41e8af681f 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail131.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail131.stderr @@ -4,10 +4,10 @@ tcfail131.hs:7:9: from the context (Num b) bound by the type signature for g :: Num b => b -> b at tcfail131.hs:6:8-22 - ‛b’ is a rigid type variable bound by + ‘b’ is a rigid type variable bound by the type signature for g :: Num b => b -> b at tcfail131.hs:6:8 Relevant bindings include x :: b (bound at tcfail131.hs:7:5) g :: b -> b (bound at tcfail131.hs:7:3) In the expression: f x x - In an equation for ‛g’: g x = f x x + In an equation for ‘g’: g x = f x x diff --git a/testsuite/tests/typecheck/should_fail/tcfail132.stderr b/testsuite/tests/typecheck/should_fail/tcfail132.stderr index 8440cc89ab..16fee3fbb4 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail132.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail132.stderr @@ -1,6 +1,6 @@ tcfail132.hs:17:37: - The first argument of ‛T’ should have kind ‛* -> * -> * -> *’, - but ‛Object f' f t’ has kind ‛* -> * -> *’ - In the type ‛T (Object f' f t) (DUnit t)’ - In the type declaration for ‛LiftObject’ + The first argument of ‘T’ should have kind ‘* -> * -> * -> *’, + but ‘Object f' f t’ has kind ‘* -> * -> *’ + In the type ‘T (Object f' f t) (DUnit t)’ + In the type declaration for ‘LiftObject’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail133.stderr b/testsuite/tests/typecheck/should_fail/tcfail133.stderr index 1d840d4624..8d03d24347 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail133.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail133.stderr @@ -3,8 +3,8 @@ tcfail133.hs:2:61: Warning: -XDatatypeContexts is deprecated: It was widely considered a misfeature, and has been removed from the Haskell language. tcfail133.hs:68:7: - No instance for (Show s0) arising from a use of ‛show’ - The type variable ‛s0’ is ambiguous + No instance for (Show s0) arising from a use of ‘show’ + The type variable ‘s0’ is ambiguous Note: there are several potential instances: instance Show Zero -- Defined at tcfail133.hs:8:29 instance Show One -- Defined at tcfail133.hs:9:28 @@ -13,14 +13,14 @@ tcfail133.hs:68:7: ...plus 27 others In the expression: show In the expression: show $ add (One :@ Zero) (One :@ One) - In an equation for ‛foo’: + In an equation for ‘foo’: foo = show $ add (One :@ Zero) (One :@ One) tcfail133.hs:68:14: No instance for (AddDigit (Zero :@ (One :@ One)) One s0) - arising from a use of ‛add’ - In the second argument of ‛($)’, namely - ‛add (One :@ Zero) (One :@ One)’ + arising from a use of ‘add’ + In the second argument of ‘($)’, namely + ‘add (One :@ Zero) (One :@ One)’ In the expression: show $ add (One :@ Zero) (One :@ One) - In an equation for ‛foo’: + In an equation for ‘foo’: foo = show $ add (One :@ Zero) (One :@ One) diff --git a/testsuite/tests/typecheck/should_fail/tcfail134.stderr b/testsuite/tests/typecheck/should_fail/tcfail134.stderr index 7ba9620092..b73d2f38a9 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail134.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail134.stderr @@ -1,6 +1,6 @@ tcfail134.hs:5:33: - Expecting one more argument to ‛XML’ - Expected a type, but ‛XML’ has kind ‛* -> Constraint’ - In the type ‛a -> XML’ - In the class declaration for ‛XML’ + Expecting one more argument to ‘XML’ + Expected a type, but ‘XML’ has kind ‘* -> Constraint’ + In the type ‘a -> XML’ + In the class declaration for ‘XML’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail135.stderr b/testsuite/tests/typecheck/should_fail/tcfail135.stderr index 33712e3a98..251284365c 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail135.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail135.stderr @@ -1,6 +1,6 @@ tcfail135.hs:6:23: - Expecting one more argument to ‛f’ - Expected a type, but ‛f’ has kind ‛k0 -> *’ - In the type ‛f a -> f’ - In the class declaration for ‛Foo’ + Expecting one more argument to ‘f’ + Expected a type, but ‘f’ has kind ‘k0 -> *’ + In the type ‘f a -> f’ + In the class declaration for ‘Foo’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail136.stderr b/testsuite/tests/typecheck/should_fail/tcfail136.stderr index c2cb9d9cf8..3d6a520c91 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail136.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail136.stderr @@ -1,7 +1,7 @@ tcfail136.hs:9:35: - Expecting one more argument to ‛SymDict’ - Expected a type, but ‛SymDict’ has kind ‛* -> *’ - In the type ‛SymDict’ - In the definition of data constructor ‛SymTable’ - In the data declaration for ‛SymTable’ + Expecting one more argument to ‘SymDict’ + Expected a type, but ‘SymDict’ has kind ‘* -> *’ + In the type ‘SymDict’ + In the definition of data constructor ‘SymTable’ + In the data declaration for ‘SymTable’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail137.stderr b/testsuite/tests/typecheck/should_fail/tcfail137.stderr index 05890e0b7d..520dcdcc40 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail137.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail137.stderr @@ -3,6 +3,6 @@ tcfail137.hs:1:14: Warning: -XDatatypeContexts is deprecated: It was widely considered a misfeature, and has been removed from the Haskell language. tcfail137.hs:8:5: - No instance for (Floating Bool) arising from a use of ‛Test’ + No instance for (Floating Bool) arising from a use of ‘Test’ In the expression: Test [False, True] - In an equation for ‛x’: x = Test [False, True] + In an equation for ‘x’: x = Test [False, True] diff --git a/testsuite/tests/typecheck/should_fail/tcfail139.stderr b/testsuite/tests/typecheck/should_fail/tcfail139.stderr index 731181ef71..e97ff3bf8a 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail139.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail139.stderr @@ -1,7 +1,7 @@ tcfail139.hs:6:10: - Illegal instance declaration for ‛Bounded Foo’ + Illegal instance declaration for ‘Bounded Foo’ (All instance types must be of the form (T t1 ... tn) where T is not a synonym. Use TypeSynonymInstances if you want to disable this.) - In the instance declaration for ‛Bounded Foo’ + In the instance declaration for ‘Bounded Foo’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail140.stderr b/testsuite/tests/typecheck/should_fail/tcfail140.stderr index 2ed025a870..bb45df3dee 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail140.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail140.stderr @@ -1,38 +1,38 @@ tcfail140.hs:10:7: - Couldn't match expected type ‛a0 -> t’ with actual type ‛Int’ + Couldn't match expected type ‘a0 -> t’ with actual type ‘Int’ Relevant bindings include bar :: t (bound at tcfail140.hs:10:1) - The function ‛f’ is applied to two arguments, - but its type ‛Int -> Int’ has only one + The function ‘f’ is applied to two arguments, + but its type ‘Int -> Int’ has only one In the expression: f 3 9 - In an equation for ‛bar’: bar = f 3 9 + In an equation for ‘bar’: bar = f 3 9 tcfail140.hs:12:10: - Couldn't match expected type ‛a1 -> t1’ with actual type ‛Int’ + Couldn't match expected type ‘a1 -> t1’ with actual type ‘Int’ Relevant bindings include rot :: t -> t1 (bound at tcfail140.hs:12:1) - The operator ‛f’ takes two arguments, - but its type ‛Int -> Int’ has only one + The operator ‘f’ takes two arguments, + but its type ‘Int -> Int’ has only one In the expression: 3 `f` 4 - In an equation for ‛rot’: rot xs = 3 `f` 4 + In an equation for ‘rot’: rot xs = 3 `f` 4 tcfail140.hs:14:15: - Couldn't match expected type ‛a -> b’ with actual type ‛Int’ + Couldn't match expected type ‘a -> b’ with actual type ‘Int’ Relevant bindings include xs :: [a] (bound at tcfail140.hs:14:5) bot :: [a] -> [b] (bound at tcfail140.hs:14:1) - The operator ‛f’ takes two arguments, - but its type ‛Int -> Int’ has only one - In the first argument of ‛map’, namely ‛(3 `f`)’ + The operator ‘f’ takes two arguments, + but its type ‘Int -> Int’ has only one + In the first argument of ‘map’, namely ‘(3 `f`)’ In the expression: map (3 `f`) xs tcfail140.hs:16:8: - Constructor ‛Just’ should have 1 argument, but has been given none + Constructor ‘Just’ should have 1 argument, but has been given none In the pattern: Just In the expression: (\ Just x -> x) :: Maybe a -> a In the expression: ((\ Just x -> x) :: Maybe a -> a) (Just 1) tcfail140.hs:19:1: - Couldn't match expected type ‛t0 -> Bool’ with actual type ‛Int’ - The equation(s) for ‛g’ have two arguments, - but its type ‛Int -> Int’ has only one + Couldn't match expected type ‘t0 -> Bool’ with actual type ‘Int’ + The equation(s) for ‘g’ have two arguments, + but its type ‘Int -> Int’ has only one diff --git a/testsuite/tests/typecheck/should_fail/tcfail142.stderr b/testsuite/tests/typecheck/should_fail/tcfail142.stderr index cd8fd53cef..e2338eb917 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail142.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail142.stderr @@ -1,11 +1,11 @@ tcfail142.hs:18:8: Could not deduce (Bar a0 r) - arising from the ambiguity check for ‛bar’ + arising from the ambiguity check for ‘bar’ from the context (Bar a r) bound by the type signature for bar :: Bar a r => r -> () at tcfail142.hs:18:8-25 - The type variable ‛a0’ is ambiguous + The type variable ‘a0’ is ambiguous In the ambiguity check for: forall r a. Bar a r => r -> () To defer the ambiguity check to use sites, enable AllowAmbiguousTypes - In the type signature for ‛bar’: bar :: Bar a r => r -> () + In the type signature for ‘bar’: bar :: Bar a r => r -> () diff --git a/testsuite/tests/typecheck/should_fail/tcfail143.stderr b/testsuite/tests/typecheck/should_fail/tcfail143.stderr index 7c1cc92d60..394fa43c4e 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail143.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail143.stderr @@ -1,5 +1,5 @@ tcfail143.hs:29:9:
- No instance for (MinMax (S Z) Z Z Z) arising from a use of ‛extend’
+ No instance for (MinMax (S Z) Z Z Z) arising from a use of ‘extend’
In the expression: n1 `extend` n0
- In an equation for ‛t2’: t2 = n1 `extend` n0
+ In an equation for ‘t2’: t2 = n1 `extend` n0
diff --git a/testsuite/tests/typecheck/should_fail/tcfail146.stderr b/testsuite/tests/typecheck/should_fail/tcfail146.stderr index b62824e8cb..6d8cb0e5e6 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail146.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail146.stderr @@ -1,6 +1,6 @@ tcfail146.hs:7:22: - Expected a type, but ‛SClass a’ has kind ‛Constraint’ - In the type ‛SClass a’ - In the definition of data constructor ‛SCon’ - In the data declaration for ‛SData’ + Expected a type, but ‘SClass a’ has kind ‘Constraint’ + In the type ‘SClass a’ + In the definition of data constructor ‘SCon’ + In the data declaration for ‘SData’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail147.stderr b/testsuite/tests/typecheck/should_fail/tcfail147.stderr index b7e75b06b2..68ec767eed 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail147.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail147.stderr @@ -1,7 +1,7 @@ tcfail147.hs:7:19: - Expecting one more argument to ‛XClass’ - Expected a type, but ‛XClass’ has kind ‛k0 -> Constraint’ - In the type ‛XClass’ - In the definition of data constructor ‛XCon’ - In the data declaration for ‛XData’ + Expecting one more argument to ‘XClass’ + Expected a type, but ‘XClass’ has kind ‘k0 -> Constraint’ + In the type ‘XClass’ + In the definition of data constructor ‘XCon’ + In the data declaration for ‘XData’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail148.stderr b/testsuite/tests/typecheck/should_fail/tcfail148.stderr index cfa81e5b0a..7fc107a616 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail148.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail148.stderr @@ -1,7 +1,7 @@ tcfail148.hs:5:28: - Expecting one more argument to ‛List’ - Expected a type, but ‛List’ has kind ‛* -> *’ - In the type ‛List’ - In the definition of data constructor ‛Cons’ - In the data declaration for ‛List’ + Expecting one more argument to ‘List’ + Expected a type, but ‘List’ has kind ‘* -> *’ + In the type ‘List’ + In the definition of data constructor ‘Cons’ + In the data declaration for ‘List’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail151.stderr b/testsuite/tests/typecheck/should_fail/tcfail151.stderr index d0dd7960b5..3e675c2ef0 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail151.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail151.stderr @@ -3,6 +3,6 @@ tcfail151.hs:1:14: Warning: -XDatatypeContexts is deprecated: It was widely considered a misfeature, and has been removed from the Haskell language. tcfail151.hs:8:6: - Expecting one more argument to ‛Name a’ - Expected a constraint, but ‛Name a’ has kind ‛* -> Constraint’ - In the data declaration for ‛Exp’ + Expecting one more argument to ‘Name a’ + Expected a constraint, but ‘Name a’ has kind ‘* -> Constraint’ + In the data declaration for ‘Exp’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail152.stderr b/testsuite/tests/typecheck/should_fail/tcfail152.stderr index 507587d072..1db77b0657 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail152.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail152.stderr @@ -1,7 +1,7 @@ tcfail152.hs:10:14: - No instance for (Integral a) arising from a use of ‛toInteger’ + No instance for (Integral a) arising from a use of ‘toInteger’ Possible fix: - add (Integral a) to the context of the data constructor ‛C’ + add (Integral a) to the context of the data constructor ‘C’ In the expression: toInteger x - In an equation for ‛test’: test (C x) = toInteger x + In an equation for ‘test’: test (C x) = toInteger x diff --git a/testsuite/tests/typecheck/should_fail/tcfail153.stderr b/testsuite/tests/typecheck/should_fail/tcfail153.stderr index 50908ec677..80efb9221c 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail153.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail153.stderr @@ -1,7 +1,7 @@ tcfail153.hs:6:7: - Couldn't match type ‛a’ with ‛Bool’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘Bool’ + ‘a’ is a rigid type variable bound by the type signature for f :: a -> [a] at tcfail153.hs:5:6 Expected type: [a] Actual type: [Bool] @@ -9,7 +9,7 @@ tcfail153.hs:6:7: x :: a (bound at tcfail153.hs:6:3) f :: a -> [a] (bound at tcfail153.hs:6:1) In the expression: g x - In an equation for ‛f’: + In an equation for ‘f’: f x = g x where diff --git a/testsuite/tests/typecheck/should_fail/tcfail154.stderr b/testsuite/tests/typecheck/should_fail/tcfail154.stderr index 80eba2d790..9014b643df 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail154.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail154.stderr @@ -1,6 +1,6 @@ tcfail154.hs:12:10: - Variable ‛a’ occurs more often than in the instance head + Variable ‘a’ occurs more often than in the instance head in the constraint: C a a (Use UndecidableInstances to permit this) - In the instance declaration for ‛Eq (T a)’ + In the instance declaration for ‘Eq (T a)’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail155.stderr b/testsuite/tests/typecheck/should_fail/tcfail155.stderr index 58426f4150..64583eba33 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail155.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail155.stderr @@ -1,6 +1,6 @@ tcfail155.hs:8:6: - Data constructor ‛P’ returns type ‛L2’ - instead of an instance of its parent type ‛T a’ - In the definition of data constructor ‛P’ - In the data declaration for ‛T’ + Data constructor ‘P’ returns type ‘L2’ + instead of an instance of its parent type ‘T a’ + In the definition of data constructor ‘P’ + In the data declaration for ‘T’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail156.stderr b/testsuite/tests/typecheck/should_fail/tcfail156.stderr index a4d2cbe8a7..280f118f90 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail156.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail156.stderr @@ -2,5 +2,5 @@ tcfail156.hs:7:15: A newtype constructor cannot have existential type variables Foo :: forall a. a -> Foo - In the definition of data constructor ‛Foo’ - In the newtype declaration for ‛Foo’ + In the definition of data constructor ‘Foo’ + In the newtype declaration for ‘Foo’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail157.stderr b/testsuite/tests/typecheck/should_fail/tcfail157.stderr index 523d118985..acdc7df8cf 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail157.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail157.stderr @@ -1,12 +1,12 @@ tcfail157.hs:27:10: - Variable ‛b’ occurs more often than in the instance head + Variable ‘b’ occurs more often than in the instance head in the constraint: E m a b (Use UndecidableInstances to permit this) - In the instance declaration for ‛Foo m (a -> ())’ + In the instance declaration for ‘Foo m (a -> ())’ tcfail157.hs:27:10: - Variable ‛b’ occurs more often than in the instance head + Variable ‘b’ occurs more often than in the instance head in the constraint: Foo m b (Use UndecidableInstances to permit this) - In the instance declaration for ‛Foo m (a -> ())’ + In the instance declaration for ‘Foo m (a -> ())’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail158.stderr b/testsuite/tests/typecheck/should_fail/tcfail158.stderr index 47e05a5c77..e359c8bdb2 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail158.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail158.stderr @@ -1,5 +1,5 @@ tcfail158.hs:14:19: - Expecting one more argument to ‛Val v’ - Expected a type, but ‛Val v’ has kind ‛* -> *’ - In the type signature for ‛bar’: bar :: forall v. Val v + Expecting one more argument to ‘Val v’ + Expected a type, but ‘Val v’ has kind ‘* -> *’ + In the type signature for ‘bar’: bar :: forall v. Val v diff --git a/testsuite/tests/typecheck/should_fail/tcfail160.stderr b/testsuite/tests/typecheck/should_fail/tcfail160.stderr index 4d3a01fe17..7a740403d8 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail160.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail160.stderr @@ -1,5 +1,5 @@ tcfail160.hs:7:8: - The first argument of ‛T’ should have kind ‛* -> *’, - but ‛Int’ has kind ‛*’ - In the type signature for ‛g’: g :: T Int + The first argument of ‘T’ should have kind ‘* -> *’, + but ‘Int’ has kind ‘*’ + In the type signature for ‘g’: g :: T Int diff --git a/testsuite/tests/typecheck/should_fail/tcfail161.stderr b/testsuite/tests/typecheck/should_fail/tcfail161.stderr index 79ca81dfaa..90e1c2ec5e 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail161.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail161.stderr @@ -1,5 +1,5 @@ tcfail161.hs:5:7: - Expecting one more argument to ‛Maybe’ - Expected kind ‛*’, but ‛Maybe’ has kind ‛* -> *’ - In the type signature for ‛f’: f :: [Maybe] + Expecting one more argument to ‘Maybe’ + Expected kind ‘*’, but ‘Maybe’ has kind ‘* -> *’ + In the type signature for ‘f’: f :: [Maybe] diff --git a/testsuite/tests/typecheck/should_fail/tcfail162.stderr b/testsuite/tests/typecheck/should_fail/tcfail162.stderr index c14956e6b3..3d1e79879b 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail162.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail162.stderr @@ -1,7 +1,7 @@ tcfail162.hs:10:33: - Expecting one more argument to ‛ForeignPtr’ - Expected a type, but ‛ForeignPtr’ has kind ‛* -> *’ - In the type ‛ForeignPtr’ - In the definition of data constructor ‛Foo’ - In the data declaration for ‛Foo’ + Expecting one more argument to ‘ForeignPtr’ + Expected a type, but ‘ForeignPtr’ has kind ‘* -> *’ + In the type ‘ForeignPtr’ + In the definition of data constructor ‘Foo’ + In the data declaration for ‘Foo’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail164.stderr b/testsuite/tests/typecheck/should_fail/tcfail164.stderr index 4a3be9027b..9532466c66 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail164.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail164.stderr @@ -4,12 +4,12 @@ tcfail164.hs:11:5: Specify the type by giving a type signature e.g. (tagToEnum# x) :: Bool In the expression: tagToEnum# 0# - In an equation for ‛f’: f = tagToEnum# 0# + In an equation for ‘f’: f = tagToEnum# 0# tcfail164.hs:17:34: Bad call to tagToEnum# at type Int Result type must be an enumeration type In the expression: tagToEnum# value# - In an equation for ‛readUnboxable’: + In an equation for ‘readUnboxable’: readUnboxable (I# value#) = tagToEnum# value# - In the instance declaration for ‛Unboxable Int’ + In the instance declaration for ‘Unboxable Int’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail165.stderr b/testsuite/tests/typecheck/should_fail/tcfail165.stderr index 09f359f834..2b8b434385 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail165.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail165.stderr @@ -1,9 +1,9 @@ tcfail165.hs:15:23: - Couldn't match expected type ‛forall a. Show a => a -> String’ - with actual type ‛b0 -> String’ - In the second argument of ‛putMVar’, namely - ‛(show :: forall b. Show b => b -> String)’ + Couldn't match expected type ‘forall a. Show a => a -> String’ + with actual type ‘b0 -> String’ + In the second argument of ‘putMVar’, namely + ‘(show :: forall b. Show b => b -> String)’ In a stmt of a 'do' block: putMVar var (show :: forall b. Show b => b -> String) In the expression: diff --git a/testsuite/tests/typecheck/should_fail/tcfail167.stderr b/testsuite/tests/typecheck/should_fail/tcfail167.stderr index 1613d4efad..e20e1cfe7c 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail167.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail167.stderr @@ -1,9 +1,9 @@ tcfail167.hs:14:14: - Couldn't match type ‛Char’ with ‛Float’ + Couldn't match type ‘Char’ with ‘Float’ Inaccessible code in a pattern with constructor C2 :: T Float, - in an equation for ‛inaccessible’ + in an equation for ‘inaccessible’ In the pattern: C2 - In an equation for ‛inaccessible’: inaccessible C2 = ' ' + In an equation for ‘inaccessible’: inaccessible C2 = ' ' diff --git a/testsuite/tests/typecheck/should_fail/tcfail168.stderr b/testsuite/tests/typecheck/should_fail/tcfail168.stderr index 4eec056fa3..e8c6c313e1 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail168.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail168.stderr @@ -1,8 +1,8 @@ tcfail168.hs:7:11: - Couldn't match expected type ‛IO a0’ - with actual type ‛Char -> IO ()’ - Probable cause: ‛putChar’ is applied to too few arguments + Couldn't match expected type ‘IO a0’ + with actual type ‘Char -> IO ()’ + Probable cause: ‘putChar’ is applied to too few arguments In a stmt of a 'do' block: putChar In the expression: do { putChar; diff --git a/testsuite/tests/typecheck/should_fail/tcfail169.stderr b/testsuite/tests/typecheck/should_fail/tcfail169.stderr index e1ac2db711..75ae3a41a4 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail169.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail169.stderr @@ -1,7 +1,7 @@ tcfail169.hs:7:51: No instance for (Show (Succ a)) - arising from the second field of ‛Cons’ (type ‛Seq (Succ a)’) + arising from the second field of ‘Cons’ (type ‘Seq (Succ a)’) Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself diff --git a/testsuite/tests/typecheck/should_fail/tcfail170.stderr b/testsuite/tests/typecheck/should_fail/tcfail170.stderr index 18a63a7edf..bb952ba374 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail170.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail170.stderr @@ -1,7 +1,7 @@ tcfail170.hs:7:10: - Illegal instance declaration for ‛C [p] [q]’ - The coverage condition fails in class ‛C’ - for functional dependency: ‛a -> b’ - Reason: lhs type ‛[p]’ does not determine rhs type ‛[q]’ - In the instance declaration for ‛C [p] [q]’ + Illegal instance declaration for ‘C [p] [q]’ + The coverage condition fails in class ‘C’ + for functional dependency: ‘a -> b’ + Reason: lhs type ‘[p]’ does not determine rhs type ‘[q]’ + In the instance declaration for ‘C [p] [q]’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail171.stderr b/testsuite/tests/typecheck/should_fail/tcfail171.stderr index e42b06ad08..849ce3aa10 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail171.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail171.stderr @@ -1,8 +1,8 @@ tcfail171.hs:9:10: - No instance for (PrintfArg a) arising from a use of ‛printf’ + No instance for (PrintfArg a) arising from a use of ‘printf’ Possible fix: add (PrintfArg a) to the context of the type signature for phex :: a -> b In the expression: printf "0x%x" x - In an equation for ‛phex’: phex x = printf "0x%x" x + In an equation for ‘phex’: phex x = printf "0x%x" x diff --git a/testsuite/tests/typecheck/should_fail/tcfail173.stderr b/testsuite/tests/typecheck/should_fail/tcfail173.stderr index 2c87b91d1b..70a22c3af9 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail173.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail173.stderr @@ -1,4 +1,4 @@ tcfail173.hs:5:12: - Illegal declaration of a type or class operator ‛<.>’ + Illegal declaration of a type or class operator ‘<.>’ Use TypeOperators to declare operators in type and declarations diff --git a/testsuite/tests/typecheck/should_fail/tcfail174.stderr b/testsuite/tests/typecheck/should_fail/tcfail174.stderr index f37bcdf73b..f48d15369e 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail174.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail174.stderr @@ -1,13 +1,13 @@ tcfail174.hs:9:10: - Couldn't match expected type ‛forall a. a -> a’ - with actual type ‛a0 -> a0’ - In the first argument of ‛Base’, namely ‛id’ + Couldn't match expected type ‘forall a. a -> a’ + with actual type ‘a0 -> a0’ + In the first argument of ‘Base’, namely ‘id’ In the expression: Base id tcfail174.hs:13:14: - Couldn't match type ‛a’ with ‛a1’ - because type variable ‛a1’ would escape its scope + Couldn't match type ‘a’ with ‘a1’ + because type variable ‘a1’ would escape its scope This (rigid, skolem) type variable is bound by the type forall a2. a2 -> a2 at tcfail174.hs:13:14 @@ -15,18 +15,18 @@ tcfail174.hs:13:14: Actual type: Capture (forall a. a -> a) Relevant bindings include h1 :: Capture a (bound at tcfail174.hs:13:1) - In the first argument of ‛Capture’, namely ‛g’ + In the first argument of ‘Capture’, namely ‘g’ In the expression: Capture g tcfail174.hs:16:14: - Couldn't match type ‛a’ with ‛b’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘b’ + ‘a’ is a rigid type variable bound by the type forall a1. a1 -> a1 at tcfail174.hs:16:14 - ‛b’ is a rigid type variable bound by + ‘b’ is a rigid type variable bound by the type signature for h2 :: Capture b at tcfail174.hs:15:7 Expected type: Capture (forall x. x -> b) Actual type: Capture (forall a. a -> a) Relevant bindings include h2 :: Capture b (bound at tcfail174.hs:16:1) - In the first argument of ‛Capture’, namely ‛g’ + In the first argument of ‘Capture’, namely ‘g’ In the expression: Capture g diff --git a/testsuite/tests/typecheck/should_fail/tcfail175.stderr b/testsuite/tests/typecheck/should_fail/tcfail175.stderr index 6d0c103153..623aab2706 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail175.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail175.stderr @@ -1,10 +1,10 @@ tcfail175.hs:11:1: - Couldn't match expected type ‛String -> String -> String’ - with actual type ‛a’ - ‛a’ is a rigid type variable bound by + Couldn't match expected type ‘String -> String -> String’ + with actual type ‘a’ + ‘a’ is a rigid type variable bound by the type signature for evalRHS :: Int -> a at tcfail175.hs:10:12 Relevant bindings include evalRHS :: Int -> a (bound at tcfail175.hs:11:1) - The equation(s) for ‛evalRHS’ have three arguments, - but its type ‛Int -> a’ has only one + The equation(s) for ‘evalRHS’ have three arguments, + but its type ‘Int -> a’ has only one diff --git a/testsuite/tests/typecheck/should_fail/tcfail176.stderr b/testsuite/tests/typecheck/should_fail/tcfail176.stderr index cb829b43af..35c96d3332 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail176.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail176.stderr @@ -1,6 +1,6 @@ tcfail176.hs:7:21: - Data constructor ‛Bug’ returns type ‛Maybe a’ - instead of an instance of its parent type ‛Bug a’ - In the definition of data constructor ‛Bug’ - In the newtype declaration for ‛Bug’ + Data constructor ‘Bug’ returns type ‘Maybe a’ + instead of an instance of its parent type ‘Bug a’ + In the definition of data constructor ‘Bug’ + In the newtype declaration for ‘Bug’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail177.stderr b/testsuite/tests/typecheck/should_fail/tcfail177.stderr index a2d6e7bac9..54d7331172 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail177.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail177.stderr @@ -1,170 +1,170 @@ tcfail177.hs:10:12: - Couldn't match expected type ‛Bool’ with actual type ‛Int’ + Couldn't match expected type ‘Bool’ with actual type ‘Int’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] - In an equation for ‛allTests’: + In an equation for ‘allTests’: allTests = foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", ....] tcfail177.hs:20:13: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:20:20: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:20:27: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:21:13: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:21:20: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:21:27: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:22:13: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:22:20: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:22:27: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:23:13: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:23:20: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:23:27: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:24:13: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:24:20: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:24:27: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:25:13: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:25:20: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] tcfail177.hs:25:27: - Couldn't match expected type ‛Bool’ with actual type ‛[Char]’ + Couldn't match expected type ‘Bool’ with actual type ‘[Char]’ In the expression: "Two" - In the first argument of ‛foo’, namely - ‛[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ + In the first argument of ‘foo’, namely + ‘[a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....]’ In the expression: foo [a ~?= b, "Three" ~?= "3", "Four" ~?= "4", "Five" ~?= "5", ....] diff --git a/testsuite/tests/typecheck/should_fail/tcfail178.stderr b/testsuite/tests/typecheck/should_fail/tcfail178.stderr index 62af0f9051..7ed00156d6 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail178.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail178.stderr @@ -1,14 +1,14 @@ tcfail178.hs:15:7: - Couldn't match type ‛()’ with ‛[a]’ + Couldn't match type ‘()’ with ‘[a]’ Expected type: Bool -> [a] Actual type: Bool -> () Relevant bindings include c :: [a] (bound at tcfail178.hs:15:1) - In the first argument of ‛a’, namely ‛y’ + In the first argument of ‘a’, namely ‘y’ In the expression: a y tcfail178.hs:18:7: - Couldn't match expected type ‛Bool -> [a]’ with actual type ‛()’ + Couldn't match expected type ‘Bool -> [a]’ with actual type ‘()’ Relevant bindings include d :: [a] (bound at tcfail178.hs:18:1) - In the first argument of ‛a’, namely ‛()’ + In the first argument of ‘a’, namely ‘()’ In the expression: a () diff --git a/testsuite/tests/typecheck/should_fail/tcfail179.stderr b/testsuite/tests/typecheck/should_fail/tcfail179.stderr index db5966f6f9..0fdaeade03 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail179.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail179.stderr @@ -1,17 +1,17 @@ tcfail179.hs:14:39: - Couldn't match expected type ‛s’ with actual type ‛x’ - ‛x’ is a rigid type variable bound by + Couldn't match expected type ‘s’ with actual type ‘x’ + ‘x’ is a rigid type variable bound by a pattern with constructor T :: forall s x. (s -> (x -> s) -> (x, s, Int)) -> T s, in a case alternative at tcfail179.hs:14:14 - ‛s’ is a rigid type variable bound by + ‘s’ is a rigid type variable bound by the type signature for run :: T s -> Int at tcfail179.hs:12:8 Relevant bindings include x :: x (bound at tcfail179.hs:14:26) g :: s -> (x -> s) -> (x, s, Int) (bound at tcfail179.hs:14:16) ts :: T s (bound at tcfail179.hs:13:5) run :: T s -> Int (bound at tcfail179.hs:13:1) - In the first argument of ‛g’, namely ‛x’ + In the first argument of ‘g’, namely ‘x’ In the expression: g x id diff --git a/testsuite/tests/typecheck/should_fail/tcfail180.stderr b/testsuite/tests/typecheck/should_fail/tcfail180.stderr index 8baeb4ed51..7764b7798b 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail180.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail180.stderr @@ -1,6 +1,6 @@ tcfail180.hs:10:9: - Couldn't match expected type ‛f0 b0’ with actual type ‛Bool’ + Couldn't match expected type ‘f0 b0’ with actual type ‘Bool’ In the pattern: True In a case alternative: True -> () In the expression: case p of { True -> () } diff --git a/testsuite/tests/typecheck/should_fail/tcfail181.stderr b/testsuite/tests/typecheck/should_fail/tcfail181.stderr index 5f272da112..905a523174 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail181.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail181.stderr @@ -1,16 +1,16 @@ tcfail181.hs:17:9: - Could not deduce (Monad m0) arising from a use of ‛foo’ + Could not deduce (Monad m0) arising from a use of ‘foo’ from the context (Monad m) bound by the inferred type of wog :: Monad m => t -> Something (m Bool) e at tcfail181.hs:17:1-30 - The type variable ‛m0’ is ambiguous + The type variable ‘m0’ is ambiguous Note: there are several potential instances: - instance Monad ((->) r) -- Defined in ‛GHC.Base’ - instance Monad IO -- Defined in ‛GHC.Base’ - instance Monad [] -- Defined in ‛GHC.Base’ + instance Monad ((->) r) -- Defined in ‘GHC.Base’ + instance Monad IO -- Defined in ‘GHC.Base’ + instance Monad [] -- Defined in ‘GHC.Base’ ...plus one other In the expression: foo In the expression: foo {bar = return True} - In an equation for ‛wog’: wog x = foo {bar = return True} + In an equation for ‘wog’: wog x = foo {bar = return True} diff --git a/testsuite/tests/typecheck/should_fail/tcfail182.stderr b/testsuite/tests/typecheck/should_fail/tcfail182.stderr index ad01d392f0..c242ccf54a 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail182.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail182.stderr @@ -1,10 +1,10 @@ tcfail182.hs:9:3: - Couldn't match expected type ‛Prelude.Maybe a’ - with actual type ‛Maybe t0’ - NB: ‛Prelude.Maybe’ is defined in ‛Data.Maybe’ in package ‛base’ - ‛Maybe’ is defined at tcfail182.hs:6:1-18 + Couldn't match expected type ‘Prelude.Maybe a’ + with actual type ‘Maybe t0’ + NB: ‘Prelude.Maybe’ is defined in ‘Data.Maybe’ in package ‘base’ + ‘Maybe’ is defined at tcfail182.hs:6:1-18 Relevant bindings include f :: Prelude.Maybe a -> Int (bound at tcfail182.hs:9:1) In the pattern: Foo - In an equation for ‛f’: f Foo = 3 + In an equation for ‘f’: f Foo = 3 diff --git a/testsuite/tests/typecheck/should_fail/tcfail184.stderr b/testsuite/tests/typecheck/should_fail/tcfail184.stderr index 6efa33726a..8d349cd864 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail184.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail184.stderr @@ -3,5 +3,5 @@ tcfail184.hs:8:19: Illegal polymorphic or qualified type: forall a. Ord a => [a] -> [a] Perhaps you intended to use RankNTypes or Rank2Types - In the definition of data constructor ‛MkSwizzle’ - In the newtype declaration for ‛Swizzle’ + In the definition of data constructor ‘MkSwizzle’ + In the newtype declaration for ‘Swizzle’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail185.stderr b/testsuite/tests/typecheck/should_fail/tcfail185.stderr index 2c39b007d4..785b5d6dd0 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail185.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail185.stderr @@ -1,6 +1,6 @@ tcfail185.hs:7:46: - Couldn't match expected type ‛Int -> Int’ with actual type ‛Bool’ + Couldn't match expected type ‘Int -> Int’ with actual type ‘Bool’ In the expression: x In the expression: let diff --git a/testsuite/tests/typecheck/should_fail/tcfail186.stderr b/testsuite/tests/typecheck/should_fail/tcfail186.stderr index f9ced11d36..1842628e40 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail186.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail186.stderr @@ -1,8 +1,8 @@ tcfail186.hs:7:9: - Couldn't match type ‛[Char]’ with ‛Int’ + Couldn't match type ‘[Char]’ with ‘Int’ Expected type: PhantomSyn a0 Actual type: [Char] - In the first argument of ‛f’, namely ‛"hoo"’ + In the first argument of ‘f’, namely ‘"hoo"’ In the expression: f "hoo" - In an equation for ‛foo’: foo = f "hoo" + In an equation for ‘foo’: foo = f "hoo" diff --git a/testsuite/tests/typecheck/should_fail/tcfail187.stderr b/testsuite/tests/typecheck/should_fail/tcfail187.stderr index 10a9115ff5..799485a69f 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail187.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail187.stderr @@ -1,5 +1,5 @@ tcfail187.hs:7:6: - Constructor ‛:::’ should have no arguments, but has been given 2 + Constructor ‘:::’ should have no arguments, but has been given 2 In the pattern: x ::: y - In an equation for ‛foo’: foo (x ::: y) = () + In an equation for ‘foo’: foo (x ::: y) = () diff --git a/testsuite/tests/typecheck/should_fail/tcfail189.stderr b/testsuite/tests/typecheck/should_fail/tcfail189.stderr index fd86dbdf70..69e8b3dbba 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail189.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail189.stderr @@ -1,8 +1,8 @@ tcfail189.hs:10:31: - Couldn't match type ‛[a0]’ with ‛a -> a1’ + Couldn't match type ‘[a0]’ with ‘a -> a1’ Expected type: (a -> a1) -> [a] -> [[a]] Actual type: [a0] -> [a0] - Possible cause: ‛take’ is applied to too many arguments + Possible cause: ‘take’ is applied to too many arguments In the expression: take 2 In a stmt of a list comprehension: then group by x using take 2 diff --git a/testsuite/tests/typecheck/should_fail/tcfail190.stderr b/testsuite/tests/typecheck/should_fail/tcfail190.stderr index df56a79a73..6b5374416e 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail190.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail190.stderr @@ -1,6 +1,6 @@ tcfail190.hs:14:31: - No instance for (Ord Unorderable) arising from a use of ‛groupWith’ + No instance for (Ord Unorderable) arising from a use of ‘groupWith’ In the expression: groupWith In a stmt of a list comprehension: then group by x using groupWith In the expression: diff --git a/testsuite/tests/typecheck/should_fail/tcfail191.stderr b/testsuite/tests/typecheck/should_fail/tcfail191.stderr index e82a54af6e..c766699880 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail191.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail191.stderr @@ -1,7 +1,7 @@ tcfail191.hs:11:26: - Couldn't match type ‛a’ with ‛[a]’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘[a]’ + ‘a’ is a rigid type variable bound by a type expected by the context: [a] -> [[a]] at tcfail191.hs:11:9 Expected type: [a] -> [[a]] Actual type: [a] -> [a] diff --git a/testsuite/tests/typecheck/should_fail/tcfail192.stderr b/testsuite/tests/typecheck/should_fail/tcfail192.stderr index b6388c25ed..412aac6b74 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail192.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail192.stderr @@ -1,7 +1,7 @@ tcfail192.hs:10:26: - Couldn't match type ‛a’ with ‛[a]’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘[a]’ + ‘a’ is a rigid type variable bound by a type expected by the context: [a] -> [[a]] at tcfail192.hs:10:9 Expected type: [a] -> [[a]] Actual type: [a] -> [a] diff --git a/testsuite/tests/typecheck/should_fail/tcfail193.stderr b/testsuite/tests/typecheck/should_fail/tcfail193.stderr index 0ae78576c5..6cbf6d81bb 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail193.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail193.stderr @@ -1,7 +1,7 @@ tcfail193.hs:10:31: - Couldn't match type ‛a’ with ‛[a]’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘[a]’ + ‘a’ is a rigid type variable bound by a type expected by the context: [a] -> [a] at tcfail193.hs:10:26 Expected type: [a] -> [a] Actual type: [a] -> [[a]] diff --git a/testsuite/tests/typecheck/should_fail/tcfail194.stderr b/testsuite/tests/typecheck/should_fail/tcfail194.stderr index 1b21e5a616..eeae9d0219 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail194.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail194.stderr @@ -1,9 +1,9 @@ tcfail194.hs:9:29: - Couldn't match type ‛[a0]’ with ‛a -> t’ + Couldn't match type ‘[a0]’ with ‘a -> t’ Expected type: (a -> t) -> [a] -> [a] Actual type: [a0] -> [a0] Relevant bindings include z :: [t] (bound at tcfail194.hs:9:1) - Possible cause: ‛take’ is applied to too many arguments + Possible cause: ‘take’ is applied to too many arguments In the expression: take 5 In a stmt of a list comprehension: then take 5 by x diff --git a/testsuite/tests/typecheck/should_fail/tcfail195.stderr b/testsuite/tests/typecheck/should_fail/tcfail195.stderr index 4800e75642..96d968f8bf 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail195.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail195.stderr @@ -1,5 +1,5 @@ tcfail195.hs:6:3: Illegal polymorphic or qualified type: forall a. a - In the definition of data constructor ‛Foo’ - In the data declaration for ‛Foo’ + In the definition of data constructor ‘Foo’ + In the data declaration for ‘Foo’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail196.stderr b/testsuite/tests/typecheck/should_fail/tcfail196.stderr index ffedbdf1b9..723c91de5e 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail196.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail196.stderr @@ -1,5 +1,5 @@ tcfail196.hs:5:8: Illegal polymorphic or qualified type: forall a. a - In the type signature for ‛bar’: + In the type signature for ‘bar’: bar :: Num (forall a. a) => Int -> Int diff --git a/testsuite/tests/typecheck/should_fail/tcfail197.stderr b/testsuite/tests/typecheck/should_fail/tcfail197.stderr index c2b1602821..35d24e490c 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail197.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail197.stderr @@ -2,4 +2,4 @@ tcfail197.hs:5:8: Illegal polymorphic or qualified type: forall a. a Perhaps you intended to use ImpredicativeTypes - In the type signature for ‛foo’: foo :: [forall a. a] -> Int + In the type signature for ‘foo’: foo :: [forall a. a] -> Int diff --git a/testsuite/tests/typecheck/should_fail/tcfail198.stderr b/testsuite/tests/typecheck/should_fail/tcfail198.stderr index 62e9eeed15..76557906ba 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail198.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail198.stderr @@ -1,7 +1,7 @@ tcfail198.hs:6:36: - Couldn't match expected type ‛a1’ with actual type ‛a’ - because type variable ‛a1’ would escape its scope + Couldn't match expected type ‘a1’ with actual type ‘a’ + because type variable ‘a1’ would escape its scope This (rigid, skolem) type variable is bound by an expression type signature: a1 at tcfail198.hs:6:36-41 @@ -10,4 +10,4 @@ tcfail198.hs:6:36: x :: a (bound at tcfail198.hs:6:19) f3 :: [a] -> [a] (bound at tcfail198.hs:6:6) In the expression: x :: a - In the second argument of ‛(++)’, namely ‛[x :: a]’ + In the second argument of ‘(++)’, namely ‘[x :: a]’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail199.stderr b/testsuite/tests/typecheck/should_fail/tcfail199.stderr index 660e69d04c..4833c769f9 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail199.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail199.stderr @@ -1,5 +1,5 @@ tcfail199.hs:5:1: - Couldn't match expected type ‛IO t0’ with actual type ‛[Char]’ + Couldn't match expected type ‘IO t0’ with actual type ‘[Char]’ In the expression: main - When checking the type of the IO action ‛main’ + When checking the type of the IO action ‘main’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail200.stderr b/testsuite/tests/typecheck/should_fail/tcfail200.stderr index e70a55cef9..5a35839689 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail200.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail200.stderr @@ -7,4 +7,4 @@ tcfail200.hs:5:15: x :: (t1, Char) (bound at tcfail200.hs:5:9) In the expression: 1# In the expression: (1#, 'c') - In an equation for ‛x’: x = (1#, 'c') + In an equation for ‘x’: x = (1#, 'c') diff --git a/testsuite/tests/typecheck/should_fail/tcfail201.stderr b/testsuite/tests/typecheck/should_fail/tcfail201.stderr index 23d22744eb..a029e8c6d3 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail201.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail201.stderr @@ -1,7 +1,7 @@ tcfail201.hs:17:27: - Couldn't match expected type ‛a’ with actual type ‛HsDoc t0’ - ‛a’ is a rigid type variable bound by + Couldn't match expected type ‘a’ with actual type ‘HsDoc t0’ + ‘a’ is a rigid type variable bound by the type signature for gfoldl' :: (forall a1 b. c (a1 -> b) -> a1 -> c b) -> (forall g. g -> c g) -> a -> c a diff --git a/testsuite/tests/typecheck/should_fail/tcfail203.stderr b/testsuite/tests/typecheck/should_fail/tcfail203.stderr index e1a00c3018..21454e345d 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail203.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail203.stderr @@ -2,7 +2,7 @@ tcfail203.hs:28:11: Pattern bindings containing unlifted types should use an outermost bang pattern: (I# x) = 5 - In an equation for ‛fail2’: + In an equation for ‘fail2’: fail2 = 'a' where @@ -11,7 +11,7 @@ tcfail203.hs:28:11: tcfail203.hs:31:11: Pattern bindings containing unlifted types should use an outermost bang pattern: (b, I# x) = (True, 5) - In an equation for ‛fail3’: + In an equation for ‘fail3’: fail3 = 'a' where @@ -20,7 +20,7 @@ tcfail203.hs:31:11: tcfail203.hs:40:11: Pattern bindings containing unlifted types should use an outermost bang pattern: (I# !x) = 5 - In an equation for ‛fail6’: + In an equation for ‘fail6’: fail6 = 'a' where @@ -29,7 +29,7 @@ tcfail203.hs:40:11: tcfail203.hs:43:11: Pattern bindings containing unlifted types should use an outermost bang pattern: (b, !(I# x)) = (True, 5) - In an equation for ‛fail7’: + In an equation for ‘fail7’: fail7 = 'a' where diff --git a/testsuite/tests/typecheck/should_fail/tcfail204.stderr b/testsuite/tests/typecheck/should_fail/tcfail204.stderr index 0834428783..66d7269262 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail204.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail204.stderr @@ -1,12 +1,12 @@ tcfail204.hs:10:7: Warning: - Defaulting the following constraint(s) to type ‛Double’ + Defaulting the following constraint(s) to type ‘Double’ (RealFrac a0) - arising from a use of ‛ceiling’ at tcfail204.hs:10:7-13 + arising from a use of ‘ceiling’ at tcfail204.hs:10:7-13 (Fractional a0) - arising from the literal ‛6.3’ at tcfail204.hs:10:15-17 + arising from the literal ‘6.3’ at tcfail204.hs:10:15-17 In the expression: ceiling 6.3 - In an equation for ‛foo’: foo = ceiling 6.3 + In an equation for ‘foo’: foo = ceiling 6.3 <no location info>: Failing due to -Werror. diff --git a/testsuite/tests/typecheck/should_fail/tcfail206.stderr b/testsuite/tests/typecheck/should_fail/tcfail206.stderr index 5a30f93e81..4fe402982a 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail206.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail206.stderr @@ -1,50 +1,50 @@ tcfail206.hs:5:5:
- Couldn't match type ‛Bool’ with ‛Int’
+ Couldn't match type ‘Bool’ with ‘Int’
Expected type: Bool -> (Int, Bool)
Actual type: Bool -> (Bool, Bool)
In the expression: (, True)
- In an equation for ‛a’: a = (, True)
+ In an equation for ‘a’: a = (, True)
tcfail206.hs:8:5:
- Couldn't match type ‛(t0, Int)’ with ‛Bool -> (Int, Bool)’
+ Couldn't match type ‘(t0, Int)’ with ‘Bool -> (Int, Bool)’
Expected type: Int -> Bool -> (Int, Bool)
Actual type: Int -> (t0, Int)
In the expression: (1,)
- In an equation for ‛b’: b = (1,)
+ In an equation for ‘b’: b = (1,)
tcfail206.hs:11:5:
- Couldn't match type ‛a’ with ‛Bool’
- ‛a’ is a rigid type variable bound by
+ Couldn't match type ‘a’ with ‘Bool’
+ ‘a’ is a rigid type variable bound by
the type signature for c :: a -> (a, Bool) at tcfail206.hs:10:6
Expected type: a -> (a, Bool)
Actual type: a -> (a, a)
Relevant bindings include
c :: a -> (a, Bool) (bound at tcfail206.hs:11:1)
In the expression: (True || False,)
- In an equation for ‛c’: c = (True || False,)
+ In an equation for ‘c’: c = (True || False,)
tcfail206.hs:14:5:
- Couldn't match type ‛Bool’ with ‛Int’
+ Couldn't match type ‘Bool’ with ‘Int’
Expected type: Bool -> (# Int, Bool #)
Actual type: Bool -> (# Bool, Bool #)
In the expression: (# , True #)
- In an equation for ‛d’: d = (# , True #)
+ In an equation for ‘d’: d = (# , True #)
tcfail206.hs:17:5:
- Couldn't match type ‛(# a0, Int #)’ with ‛Bool -> (# Int, Bool #)’
+ Couldn't match type ‘(# a0, Int #)’ with ‘Bool -> (# Int, Bool #)’
Expected type: Int -> Bool -> (# Int, Bool #)
Actual type: Int -> (# a0, Int #)
In the expression: (# 1, #)
- In an equation for ‛e’: e = (# 1, #)
+ In an equation for ‘e’: e = (# 1, #)
tcfail206.hs:20:5:
- Couldn't match type ‛a’ with ‛Bool’
- ‛a’ is a rigid type variable bound by
+ Couldn't match type ‘a’ with ‘Bool’
+ ‘a’ is a rigid type variable bound by
the type signature for f :: a -> (# a, Bool #) at tcfail206.hs:19:6
Expected type: a -> (# a, Bool #)
Actual type: a -> (# a, a #)
Relevant bindings include
f :: a -> (# a, Bool #) (bound at tcfail206.hs:20:1)
In the expression: (# True || False, #)
- In an equation for ‛f’: f = (# True || False, #)
+ In an equation for ‘f’: f = (# True || False, #)
diff --git a/testsuite/tests/typecheck/should_fail/tcfail207.stderr b/testsuite/tests/typecheck/should_fail/tcfail207.stderr index 3263589203..986d7d5740 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail207.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail207.stderr @@ -1,14 +1,14 @@ tcfail207.hs:5:7: - Couldn't match expected type ‛[Int] -> [Int]’ - with actual type ‛[a1]’ - Possible cause: ‛take’ is applied to too many arguments + Couldn't match expected type ‘[Int] -> [Int]’ + with actual type ‘[a1]’ + Possible cause: ‘take’ is applied to too many arguments In the expression: take x [] - In an equation for ‛f’: f x = take x [] + In an equation for ‘f’: f x = take x [] tcfail207.hs:9:5: - Couldn't match expected type ‛[Int]’ - with actual type ‛[a0] -> [a0]’ - Probable cause: ‛take’ is applied to too few arguments + Couldn't match expected type ‘[Int]’ + with actual type ‘[a0] -> [a0]’ + Probable cause: ‘take’ is applied to too few arguments In the expression: take 3 - In an equation for ‛g’: g = take 3 + In an equation for ‘g’: g = take 3 diff --git a/testsuite/tests/typecheck/should_fail/tcfail208.stderr b/testsuite/tests/typecheck/should_fail/tcfail208.stderr index 7419e90c52..c83c63be3f 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail208.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail208.stderr @@ -1,9 +1,9 @@ tcfail208.hs:4:19: - Could not deduce (Eq (m a)) arising from a use of ‛==’ + Could not deduce (Eq (m a)) arising from a use of ‘==’ from the context (Monad m, Eq a) bound by the type signature for f :: (Monad m, Eq a) => a -> m a -> Bool at tcfail208.hs:3:6-40 In the expression: (return x == y) - In an equation for ‛f’: f x y = (return x == y) + In an equation for ‘f’: f x y = (return x == y) diff --git a/testsuite/tests/typecheck/should_fail/tcfail209.stderr b/testsuite/tests/typecheck/should_fail/tcfail209.stderr index 7e7e2bd19a..d9a9ca37ae 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail209.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail209.stderr @@ -1,5 +1,5 @@ tcfail209.hs:3:1: - Illegal constraint synonym of kind: ‛* -> Constraint’ + Illegal constraint synonym of kind: ‘* -> Constraint’ (Use ConstraintKinds to permit this) - In the type declaration for ‛Showish’ + In the type declaration for ‘Showish’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail209a.stderr b/testsuite/tests/typecheck/should_fail/tcfail209a.stderr index 25721019c7..446d76f421 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail209a.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail209a.stderr @@ -2,5 +2,5 @@ tcfail209a.hs:3:6: Illegal tuple constraint: (Show a, Num a) (Use ConstraintKinds to permit this) - In the type signature for ‛g’: + In the type signature for ‘g’: g :: ((Show a, Num a), Eq a) => a -> a diff --git a/testsuite/tests/typecheck/should_fail/tcfail210.stderr b/testsuite/tests/typecheck/should_fail/tcfail210.stderr index 9b998d425e..9df9b7ef8f 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail210.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail210.stderr @@ -1,3 +1,3 @@ tcfail210.hs:4:31: - Not in scope: type constructor or class ‛Constraint’ + Not in scope: type constructor or class ‘Constraint’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail211.stderr b/testsuite/tests/typecheck/should_fail/tcfail211.stderr index 491349b123..191805298a 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail211.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail211.stderr @@ -1,6 +1,6 @@ tcfail211.hs:16:13: - Unbound implicit parameter (?imp::Int) arising from a use of ‛test’ - In the first argument of ‛print’, namely ‛test’ + Unbound implicit parameter (?imp::Int) arising from a use of ‘test’ + In the first argument of ‘print’, namely ‘test’ In the expression: print test - In an equation for ‛use’: use = print test + In an equation for ‘use’: use = print test diff --git a/testsuite/tests/typecheck/should_fail/tcfail212.stderr b/testsuite/tests/typecheck/should_fail/tcfail212.stderr index b116fd1d95..72e5fe8104 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail212.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail212.stderr @@ -1,10 +1,10 @@ tcfail212.hs:10:7: - Expecting one more argument to ‛Maybe’ - The first argument of a tuple should have kind ‛*’, - but ‛Maybe’ has kind ‛* -> *’ - In the type signature for ‛f’: f :: (Maybe, Either Int) + Expecting one more argument to ‘Maybe’ + The first argument of a tuple should have kind ‘*’, + but ‘Maybe’ has kind ‘* -> *’ + In the type signature for ‘f’: f :: (Maybe, Either Int) tcfail212.hs:13:7: - Expecting a lifted type, but ‛Int#’ is unlifted - In the type signature for ‛g’: g :: (Int#, Int#) + Expecting a lifted type, but ‘Int#’ is unlifted + In the type signature for ‘g’: g :: (Int#, Int#) diff --git a/testsuite/tests/typecheck/should_fail/tcfail213.stderr b/testsuite/tests/typecheck/should_fail/tcfail213.stderr index 14c330be87..f54379481f 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail213.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail213.stderr @@ -1,7 +1,7 @@ tcfail213.hs:8:1: - Illegal constraint ‛F a’ in a superclass/instance context + Illegal constraint ‘F a’ in a superclass/instance context (Use UndecidableInstances to permit this) In the context: (F a) - While checking the super-classes of class ‛C’ - In the class declaration for ‛C’ + While checking the super-classes of class ‘C’ + In the class declaration for ‘C’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail214.stderr b/testsuite/tests/typecheck/should_fail/tcfail214.stderr index f3d90784db..93101f45cc 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail214.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail214.stderr @@ -1,7 +1,7 @@ tcfail214.hs:9:10: - Illegal constraint ‛F a’ in a superclass/instance context + Illegal constraint ‘F a’ in a superclass/instance context (Use UndecidableInstances to permit this) In the context: (F a) While checking an instance declaration - In the instance declaration for ‛C [a]’ + In the instance declaration for ‘C [a]’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail215.stderr b/testsuite/tests/typecheck/should_fail/tcfail215.stderr index a9fe4da24e..d7fa2d84f7 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail215.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail215.stderr @@ -1,4 +1,4 @@ tcfail215.hs:8:15: - Expecting a lifted type, but ‛Int#’ is unlifted - In the type signature for ‛foo’: foo :: ?x :: Int# => Int + Expecting a lifted type, but ‘Int#’ is unlifted + In the type signature for ‘foo’: foo :: ?x :: Int# => Int diff --git a/testsuite/tests/typecheck/should_fail/tcfail216.stderr b/testsuite/tests/typecheck/should_fail/tcfail216.stderr index 11b077e7e1..d354867480 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail216.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail216.stderr @@ -1,4 +1,4 @@ tcfail216.hs:5:1: Cycle in class declaration (via superclasses): A -> A - In the class declaration for ‛A’ + In the class declaration for ‘A’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail217.stderr b/testsuite/tests/typecheck/should_fail/tcfail217.stderr index 64584169e9..c51b97d8b5 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail217.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail217.stderr @@ -1,4 +1,4 @@ tcfail217.hs:7:1: Cycle in class declaration (via superclasses): A -> Aish -> A - In the class declaration for ‛A’ + In the class declaration for ‘A’ diff --git a/testsuite/tests/typecheck/should_fail/tcfail218.stderr b/testsuite/tests/typecheck/should_fail/tcfail218.stderr index 2afa201652..7978004387 100644 --- a/testsuite/tests/typecheck/should_fail/tcfail218.stderr +++ b/testsuite/tests/typecheck/should_fail/tcfail218.stderr @@ -1,11 +1,11 @@ tcfail218.hs:10:5: - Overlapping instances for C [a] b arising from a use of ‛foo’ + Overlapping instances for C [a] b arising from a use of ‘foo’ Matching instances: instance [incoherent] C [a] b -- Defined at tcfail218.hs:5:10 instance C [Int] b -- Defined at Tcfail218_Help.hs:7:10 - (The choice depends on the instantiation of ‛a, b’ + (The choice depends on the instantiation of ‘a, b’ To pick the first instance above, use IncoherentInstances when compiling the other instance declarations) In the expression: foo - In an equation for ‛x’: x = foo + In an equation for ‘x’: x = foo diff --git a/testsuite/tests/typecheck/should_run/T7861.stderr b/testsuite/tests/typecheck/should_run/T7861.stderr index 4f2b6230b0..b3e3140edc 100644 --- a/testsuite/tests/typecheck/should_run/T7861.stderr +++ b/testsuite/tests/typecheck/should_run/T7861.stderr @@ -1,10 +1,10 @@ T7861: T7861.hs:11:5: - Couldn't match type ‛a’ with ‛[a]’ - ‛a’ is a rigid type variable bound by + Couldn't match type ‘a’ with ‘[a]’ + ‘a’ is a rigid type variable bound by the type signature for f :: A a -> a at T7861.hs:10:6 Expected type: A a -> a Actual type: A a -> [a] Relevant bindings include f :: A a -> a (bound at T7861.hs:11:1) In the expression: doA - In an equation for ‛f’: f = doA + In an equation for ‘f’: f = doA (deferred type error) diff --git a/testsuite/tests/typecheck/should_run/tcrun035.stderr b/testsuite/tests/typecheck/should_run/tcrun035.stderr index 9c7a3c7488..2eed11d2f3 100644 --- a/testsuite/tests/typecheck/should_run/tcrun035.stderr +++ b/testsuite/tests/typecheck/should_run/tcrun035.stderr @@ -1,11 +1,11 @@ tcrun035.hs:13:7: - Couldn't match type ‛IO a’ - with ‛forall (m :: * -> *). Monad m => m a’ + Couldn't match type ‘IO a’ + with ‘forall (m :: * -> *). Monad m => m a’ Expected type: (forall (m :: * -> *). Monad m => m a) -> IO a Actual type: IO a -> IO a Relevant bindings include foo :: (forall (m :: * -> *). Monad m => m a) -> IO a (bound at tcrun035.hs:13:1) In the expression: id . id - In an equation for ‛foo’: foo = id . id + In an equation for ‘foo’: foo = id . id |