Out-of-memory error when building Yesod

I’m trying to use Circle to build my Haskell project written with Yesod, a common Haskell web framework.

(My project is here: https://github.com/gabebw/croniker/pull/74)

I’m using Stack (http://docs.haskellstack.org/en/stable/README/) but am hitting OOM errors.

Is there a standard way to build Yesod with Circle that avoids OOM errors? I think the problem is Yesod, not Stack, since smaller projects build fine with Stack.