1{-# language DerivingStrategies #-}
2{-# language GeneralizedNewtypeDeriving #-}
3{-# language StandaloneKindSignatures #-}
11import Data.Functor.Contravariant ( Contravariant )
12import Data.Kind ( Type )
16import Data.Functor.Contravariant.Divisible ( Decidable, Divisible )
19import qualified Opaleye.Order as Opaleye
22-- | An ordering expression for @a@. Primitive orderings are defined with
23-- 'Rel8.asc' and 'Rel8.desc', and you can combine @Order@ via its various
26-- A common pattern is to use '<>' to combine multiple orderings in sequence,
27-- and 'Data.Functor.Contravariant.>$<' to select individual columns.
28type Order :: Type -> Type
29newtype Order a = Order (Opaleye.Order a)
30 deriving newtype (Contravariant, Divisible, Decidable, Semigroup, Monoid)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list