[commit: ghc] wip/T11028: Apply option 3 for T5331, accept the new behaviour (cdac0b5)

git at git.haskell.org git at git.haskell.org
Mon Nov 30 13:59:48 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/T11028
Link       : http://ghc.haskell.org/trac/ghc/changeset/cdac0b57536fabc2a3734ef6516b0124658797f9/ghc

>---------------------------------------------------------------

commit cdac0b57536fabc2a3734ef6516b0124658797f9
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date:   Mon Nov 30 15:47:55 2015 +0200

    Apply option 3 for T5331, accept the new behaviour
    
    This means that for
    
    data W where
      W1 :: forall a. W
    
    we get
    
    T5331.hs:11:16: Warning:
        Unused quantified type variable ‘a’
        In the type `forall a. W’
    
    instead of
    
    T5331.hs:11:16: Warning:
        Unused quantified type variable ‘a’
        In the definition of data constructor ‘W1’


>---------------------------------------------------------------

cdac0b57536fabc2a3734ef6516b0124658797f9
 testsuite/tests/rename/should_compile/T5331.stderr | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/tests/rename/should_compile/T5331.stderr b/testsuite/tests/rename/should_compile/T5331.stderr
index 13249b0..965e15a 100644
--- a/testsuite/tests/rename/should_compile/T5331.stderr
+++ b/testsuite/tests/rename/should_compile/T5331.stderr
@@ -5,7 +5,7 @@ T5331.hs:8:17: warning:
 
 T5331.hs:11:16: warning:
     Unused quantified type variable ‘a’
-    In the definition of data constructor ‘W1’
+    In the type ‘forall a. W’
 
 T5331.hs:13:13: warning:
     Unused quantified type variable ‘a’



More information about the ghc-commits mailing list