I think that this only makes sense if you also compile all libraries with -O2.

On September 22, 2020 3:18:10 AM GMT+02:00, ivan <ivan.brennan@gmail.com> wrote:
Hi,

Is it inadvisable to compile your xmonad.hs with level 2 optimization enabled? I added the following pragma to my config, and haven't had any problems yet:

    {-# OPTIONS_GHC -O2 #-}

I searched issues/commits/google but wasn't able to find any discussion on this

-Ivan.

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.