#7089: -fwarn-unused-do-bind with type families
------------------------------+---------------------------------------------
 Reporter:  dag               |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.1             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 When using acid-state, I get warnings for "unused do binds" from functions
 that return {{{()}}} but whose type involve asssociated types:


 {{{
 update :: UpdateEvent event => AcidState (EventState event) -> event -> IO
 (EventResult event)
 }}}


 Shouldn't GHC be able to deduce when {{{EventResult}}} resolves to unit?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7089>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to