Skip to content

Commit 7bd863e

Browse files
committed
PostgresMarshall: Use OVERALAPPABLE instead of OVERLAPS for (a ~ b) instances
1 parent 08c79f3 commit 7bd863e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/wire-api/src/Wire/API/PostgresMarshall.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import Imports
2727
class PostgresMarshall a b where
2828
postgresMarshall :: a -> b
2929

30-
instance {-# OVERLAPS #-} (a ~ b) => PostgresMarshall a b where
30+
instance {-# OVERLAPPABLE #-} (a ~ b) => PostgresMarshall a b where
3131
postgresMarshall = id
3232

3333
instance (PostgresMarshall a1 b1, PostgresMarshall a2 b2) => PostgresMarshall (a1, a2) (b1, b2) where
@@ -518,7 +518,7 @@ instance (PostgresMarshall a b) => PostgresMarshall (Vector a) (Vector b) where
518518
class PostgresUnmarshall a b where
519519
postgresUnmarshall :: a -> Either Text b
520520

521-
instance {-# OVERLAPS #-} (a ~ b) => PostgresUnmarshall a b where
521+
instance {-# OVERLAPPABLE #-} (a ~ b) => PostgresUnmarshall a b where
522522
postgresUnmarshall = Right
523523

524524
instance (PostgresUnmarshall a1 b1, PostgresUnmarshall a2 b2) => PostgresUnmarshall (a1, a2) (b1, b2) where

0 commit comments

Comments
 (0)