Add TcRnMonad.unlessXOptM
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 28 Aug 2017 12:37:56 +0000 (13:37 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 29 Aug 2017 08:33:26 +0000 (09:33 +0100)
commit6f050d9caa2db8330f73f5ebeee986371e5aa56d
treeff2cad6c87d2d58a972abdee4ae0edf948c6cbc5
parent547e4c03809e082a34d9fd844c59e4844cd323ad
Add TcRnMonad.unlessXOptM

This usefully joins whenXOptM; there are probably lots of places
we should use it!

This patch does not use new new function at all; but it's preparing
for an upcoming patch when I do use it.
compiler/typecheck/TcRnMonad.hs