mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-23 10:42:19 +03:00
Inlining
This commit is contained in:
parent
05dc480ab9
commit
7760d4d944
@ -164,10 +164,13 @@ data Query a b =
|
||||
deriving (Functor)
|
||||
|
||||
instance Profunctor Query where
|
||||
{-# INLINE lmap #-}
|
||||
lmap f (Query p1 p2 p3 p4) =
|
||||
Query p1 (contramap f p2) p3 p4
|
||||
{-# INLINE rmap #-}
|
||||
rmap f (Query p1 p2 p3 p4) =
|
||||
Query p1 p2 (fmap f p3) p4
|
||||
{-# INLINE dimap #-}
|
||||
dimap f1 f2 (Query p1 p2 p3 p4) =
|
||||
Query p1 (contramap f1 p2) (fmap f2 p3) p4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user