yesodweb/persistent — Issue #47: Compilation hangs in 0.7
Author: ozataman
Created: 2012-01-31 01:01:50+00:00
State: open

I am having compilation hang problems with code that worked perfectly fine with 0.6.

I tired a while, but it is way too hard to trace the source of the issue and since it is a proprietary project, I am not able to share code with you guys. However, on the following setup, compilation hangs while consuming steadily increasing amounts of memory (I terminated around 4GB).

I have a bunch of semi-complex types being serialized:

derivePersistField "A"
derivePersistField "B"
...
derivePersistField "IntFoo"
derivePersistField "BoolFoo"
...

Some of these are SynonymInstances and there are some that partially overlap. Example:

data Foo a = ....
type BoolFoo = Foo Bool
type IntFoo = Foo Int

Then, I do:

share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persist|

The rest is business as usual.