Replace a #if with a Haskell conditional