more nested instances hacks

This commit is contained in:
Joey Hess 2015-02-22 17:09:54 -04:00
parent 5d974b26fc
commit 0f4a0762b6

View file

@ -496,10 +496,13 @@ mangleCode = flip_colon
- ^^^^^^^^ - ^^^^^^^^
- The marked word should not be there. - The marked word should not be there.
- -
- FIXME: This is a yesod-specific hack, it should look for the - FIXME: This is a yesod and persistent-specific hack,
- outer instance. - it should look for the outer instance.
-} -}
nested_instances = replace " data instance Route" " data Route" nested_instances = replace " data instance Route" " data Route"
. replace " data instance Unique" " data Unique"
. replace " data instance EntityField" " data EntityField"
. replace " type instance PersistEntityBackend" = " type PersistEntityBackend"
{- GHC does not properly parenthesise generated data type {- GHC does not properly parenthesise generated data type
- declarations. -} - declarations. -}