Is there a way to disable the constant folding optimization in GHC?

Viewed 495

I need to compiler some Haskell source code with GHC -O1 optimization but with the constant folding optimization disabled. I could not find an optimization flag for toggling constant folding in GHC manual however. Is this possible to turn off it meanwhile keep other optimizations?

1 Answers
Related