more nested instances hacks
This commit is contained in:
parent
5d974b26fc
commit
0f4a0762b6
1 changed files with 6 additions and 3 deletions
|
@ -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. -}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue