-fwarn-unused-do-bind with type families
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?
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |