diff --git a/relational-query/src/Database/Relational/Query/Internal/Sub.hs b/relational-query/src/Database/Relational/Query/Internal/Sub.hs index 531b06d6..d91e1b4d 100644 --- a/relational-query/src/Database/Relational/Query/Internal/Sub.hs +++ b/relational-query/src/Database/Relational/Query/Internal/Sub.hs @@ -56,11 +56,9 @@ data SubQuery = Table Table.Untyped newtype Qualifier = Qualifier Int deriving Show -- | Qualified query. -data Qualified a = Qualified Qualifier a deriving Show - --- | 'Functor' instance of 'Qualified' -instance Functor Qualified where - fmap f (Qualified q a) = Qualified q (f a) +data Qualified a = + Qualified Qualifier a + deriving (Show, Functor) -- | Projection structure unit data ProjectionUnit