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
-- | 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