switch to derived functor.

This commit is contained in:
Kei Hibino 2017-02-11 15:58:23 +09:00
parent 4d8098eeba
commit b96c4618d0

View File

@ -56,11 +56,9 @@ data SubQuery = Table Table.Untyped
newtype Qualifier = Qualifier Int deriving Show newtype Qualifier = Qualifier Int deriving Show
-- | Qualified query. -- | Qualified query.
data Qualified a = Qualified Qualifier a deriving Show data Qualified a =
Qualified Qualifier a
-- | 'Functor' instance of 'Qualified' deriving (Show, Functor)
instance Functor Qualified where
fmap f (Qualified q a) = Qualified q (f a)
-- | Projection structure unit -- | Projection structure unit
data ProjectionUnit data ProjectionUnit