mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-12 12:09:08 +03:00
switch to derived functor.
This commit is contained in:
parent
4d8098eeba
commit
b96c4618d0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user