summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-02-22 17:09:54 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-02-22 17:09:54 -0400
commita064f423f1bf957fb1d4899c43542d94dabaf15e (patch)
treeae3c623c2bae6600ad02ef6d5332ee587ea3a8b6 /Build
parent0193f308a63454a825cee0ce363066275f65b86a (diff)
more nested instances hacks
Diffstat (limited to 'Build')
-rw-r--r--Build/EvilSplicer.hs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Build/EvilSplicer.hs b/Build/EvilSplicer.hs
index e25608a3b..f9a508c11 100644
--- a/Build/EvilSplicer.hs
+++ b/Build/EvilSplicer.hs
@@ -496,10 +496,13 @@ mangleCode = flip_colon
- ^^^^^^^^
- The marked word should not be there.
-
- - FIXME: This is a yesod-specific hack, it should look for the
- - outer instance.
+ - FIXME: This is a yesod and persistent-specific hack,
+ - 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
- declarations. -}