logo       

[ ghc-Bugs-768658 ] bad warning for parallel list comprehension: msg#00022

lang.haskell.glasgow.bugs

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

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

Category: Compiler
Group: 6.0
Status: Open
Resolution: None
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@xxxxxxxxxx


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

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise