[GHC] #7089: -fwarn-unused-do-bind with type families
GHC
cvs-ghc at haskell.org
Sat Jul 21 19:01:11 CEST 2012
#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
More information about the Glasgow-haskell-bugs
mailing list