mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-04 03:53:03 +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
|
||||
|
||||
-- | 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
|
||||
|
Loading…
Reference in New Issue
Block a user