[Code snippet] How to compile a `String` to an optimised `CoreExpr` using the GHC API

Cool idea, I updated the snippet to include parsing DynFlags

Edit: Only much later I realised that is not what the previous comment was aiming at. Anyway, now there’s DynFlags parsing