(Disclaimer: I've never used yesod-dsl myself.)
IME, splitting into different modules is the only option. Even so, it
will reduce your compilation times but only by so much. Memory usage
is likely to be greatly improved.
I've had to split my Yesod app many, many times until I got acceptable
compile times. I've even started to use mutually recursive modules in
order to split things like the Foundation module into 6 pieces.
It seems to me that the main problem is that GHC is not able to
iterate its optimizer on the parts of the module that need it, and
instead always loops through the whole thing.
Cheers,
> --
> You received this message because you are subscribed to the Google Groups
> "Yesod Web Framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
yesodweb+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Felipe.