[ ghc-Bugs-768658 ] bad warning for parallel list comprehension

SourceForge.net noreply at sourceforge.net
Mon Oct 6 09:15:09 EDT 2003


Bugs item #768658, was opened at 2003-07-09 18:47
Message generated for change (Settings changed) made by simonpj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=768658&group_id=8032

Category: Compiler
Group: 6.0
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: bad warning for parallel list comprehension

Initial Comment:
this piece of code:

module ParComp where

t :: [(Char,Char)]
t = [ (a,b) | a <- "foo" | b <- "bar" ]

will generate this warning:
ParComp.hs:4: Warning: Defined but not used: b

ParComp.hs:4: Warning: Defined but not used: a

This is on Linux ghc version 6.0

Brett Letner
bletner at galois.com


----------------------------------------------------------------------

>Comment By: Simon Peyton Jones (simonpj)
Date: 2003-10-06 13:15

Message:
Logged In: YES 
user_id=50165

Fixed, thanks to Sigbjorn.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=768658&group_id=8032


More information about the Glasgow-haskell-bugs mailing list