module Rel8.Query.Order
( orderBy
)
where
import Prelude ()
import qualified Opaleye.Order as Opaleye ( orderBy )
import Rel8.Order ( Order( Order ) )
import Rel8.Query ( Query )
import Rel8.Query.Opaleye ( mapOpaleye )
orderBy :: Order a -> Query a -> Query a
orderBy :: Order a -> Query a -> Query a
orderBy (Order Order a
o) = (Select a -> Select a) -> Query a -> Query a
forall a b. (Select a -> Select b) -> Query a -> Query b
mapOpaleye (Order a -> Select a -> Select a
forall a. Order a -> Select a -> Select a
Opaleye.orderBy Order a
o)