Skip to content
Snippets Groups Projects
Commit 50fa8165 authored by Javran Cheng's avatar Javran Cheng Committed by Marge Bot
Browse files

Suppress unused do-binding if discarded variable is Any or ZonkAny.

Consider example (#25895):

>  do { forever (return ()); blah }

where `forever :: forall a b. IO a -> IO b`.

Nothing constrains `b`, so it will be instantiates with `Any` or
`ZonkAny`.
But we certainly don't want to complain about a discarded do-binding.

Fixes #25895
parent 9995c2b7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment