summaryrefslogtreecommitdiff
path: root/testsuite/tests/rebindable
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2015-01-03 23:27:21 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2015-01-06 14:18:44 +0000
commit00e1fc1b18e1b5aa5db18bee9f9adc67435f00b0 (patch)
treedebc157bb5e87e8cf464f9fd9517c089a9dd5861 /testsuite/tests/rebindable
parentf17992a4954ac14cc6a3fe6a61ec6544a098da93 (diff)
downloadhaskell-00e1fc1b18e1b5aa5db18bee9f9adc67435f00b0.tar.gz
Modify a couple of error messages slightly
In particular In the type signature for: f :: Int -> Int I added the colon Also reword the "maybe you haven't applied a function to enough arguments?" suggestion to make grammatical sense. These tiny changes affect a lot of error messages.
Diffstat (limited to 'testsuite/tests/rebindable')
-rw-r--r--testsuite/tests/rebindable/rebindable6.stderr132
1 files changed, 66 insertions, 66 deletions
diff --git a/testsuite/tests/rebindable/rebindable6.stderr b/testsuite/tests/rebindable/rebindable6.stderr
index b9ae82096b..88cf8abac7 100644
--- a/testsuite/tests/rebindable/rebindable6.stderr
+++ b/testsuite/tests/rebindable/rebindable6.stderr
@@ -1,66 +1,66 @@
-
-rebindable6.hs:106:17:
- No instance for (HasSeq (IO a -> t0 -> IO b))
- (maybe you haven't applied enough arguments to a function?)
- arising from a do statement
- The type variable ‘t0’ is ambiguous
- Relevant bindings include
- g :: IO (Maybe b) (bound at rebindable6.hs:104:19)
- f :: IO a (bound at rebindable6.hs:104:17)
- test_do :: IO a -> IO (Maybe b) -> IO b
- (bound at rebindable6.hs:104:9)
- Note: there is a potential instance available:
- instance HasSeq (IO a -> IO b -> IO b)
- -- Defined at rebindable6.hs:52:18
- In a stmt of a 'do' block: f
- In the expression:
- do { f;
- Just (b :: b) <- g;
- return b }
- In an equation for ‘test_do’:
- test_do f g
- = do { f;
- Just (b :: b) <- g;
- return b }
-
-rebindable6.hs:107:17:
- No instance for (HasFail ([Prelude.Char] -> t1))
- (maybe you haven't applied enough arguments to a function?)
- arising from a do statement
- The type variable ‘t1’ is ambiguous
- Note: there is a potential instance available:
- instance HasFail (String -> IO a)
- -- Defined at rebindable6.hs:57:18
- In a stmt of a 'do' block: Just (b :: b) <- g
- In the expression:
- do { f;
- Just (b :: b) <- g;
- return b }
- In an equation for ‘test_do’:
- test_do f g
- = do { f;
- Just (b :: b) <- g;
- return b }
-
-rebindable6.hs:108:17:
- No instance for (HasReturn (b -> t1))
- (maybe you haven't applied enough arguments to a function?)
- arising from a use of ‘return’
- The type variable ‘t1’ is ambiguous
- Relevant bindings include
- b :: b (bound at rebindable6.hs:107:23)
- g :: IO (Maybe b) (bound at rebindable6.hs:104:19)
- test_do :: IO a -> IO (Maybe b) -> IO b
- (bound at rebindable6.hs:104:9)
- Note: there is a potential instance available:
- instance HasReturn (a -> IO a) -- Defined at rebindable6.hs:42:18
- In a stmt of a 'do' block: return b
- In the expression:
- do { f;
- Just (b :: b) <- g;
- return b }
- In an equation for ‘test_do’:
- test_do f g
- = do { f;
- Just (b :: b) <- g;
- return b }
+
+rebindable6.hs:106:17:
+ No instance for (HasSeq (IO a -> t0 -> IO b))
+ (maybe you haven't applied a function to enough arguments?)
+ arising from a do statement
+ The type variable ‘t0’ is ambiguous
+ Relevant bindings include
+ g :: IO (Maybe b) (bound at rebindable6.hs:104:19)
+ f :: IO a (bound at rebindable6.hs:104:17)
+ test_do :: IO a -> IO (Maybe b) -> IO b
+ (bound at rebindable6.hs:104:9)
+ Note: there is a potential instance available:
+ instance HasSeq (IO a -> IO b -> IO b)
+ -- Defined at rebindable6.hs:52:18
+ In a stmt of a 'do' block: f
+ In the expression:
+ do { f;
+ Just (b :: b) <- g;
+ return b }
+ In an equation for ‘test_do’:
+ test_do f g
+ = do { f;
+ Just (b :: b) <- g;
+ return b }
+
+rebindable6.hs:107:17:
+ No instance for (HasFail ([Prelude.Char] -> t1))
+ (maybe you haven't applied a function to enough arguments?)
+ arising from a do statement
+ The type variable ‘t1’ is ambiguous
+ Note: there is a potential instance available:
+ instance HasFail (String -> IO a)
+ -- Defined at rebindable6.hs:57:18
+ In a stmt of a 'do' block: Just (b :: b) <- g
+ In the expression:
+ do { f;
+ Just (b :: b) <- g;
+ return b }
+ In an equation for ‘test_do’:
+ test_do f g
+ = do { f;
+ Just (b :: b) <- g;
+ return b }
+
+rebindable6.hs:108:17:
+ No instance for (HasReturn (b -> t1))
+ (maybe you haven't applied a function to enough arguments?)
+ arising from a use of ‘return’
+ The type variable ‘t1’ is ambiguous
+ Relevant bindings include
+ b :: b (bound at rebindable6.hs:107:23)
+ g :: IO (Maybe b) (bound at rebindable6.hs:104:19)
+ test_do :: IO a -> IO (Maybe b) -> IO b
+ (bound at rebindable6.hs:104:9)
+ Note: there is a potential instance available:
+ instance HasReturn (a -> IO a) -- Defined at rebindable6.hs:42:18
+ In a stmt of a 'do' block: return b
+ In the expression:
+ do { f;
+ Just (b :: b) <- g;
+ return b }
+ In an equation for ‘test_do’:
+ test_do f g
+ = do { f;
+ Just (b :: b) <- g;
+ return b }