#2267: Bogus "unused import" warning
---------------------------------+------------------------------------------
    Reporter:  simonpj           |        Owner:                  
        Type:  bug               |       Status:  new             
    Priority:  high              |    Milestone:  6.10.2          
   Component:  Compiler          |      Version:  6.10.1          
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by snoyberg):

  * version:  6.8.2 => 6.10.1

Comment:

 Here's a small program with the bug. Hope this helps.


 {{{
 {-# OPTIONS_GHC -fwarn-unused-imports -Werror #-}
 import qualified Data.ByteString as B
 import qualified Data.ByteString.UTF8 as BU

 toString :: B.ByteString -> String
 toString = BU.toString

 fromString :: String -> B.ByteString
 fromString = BU.fromString

 main :: IO ()
 main = putStrLn $ toString $ fromString "Hello World!"
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2267#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to