Thanks Brandon! Unfortunately, I don't think this is right (or at least it's not sufficient.) If I change the code to use: _ <- setSessionDynFlags $ gopt_set flags Opt_EnableRewriteRules
I still read in 0 rewrite rules.
(Unless I'm setting the wrong flag/not enough flags?)