1{-# language DerivingStrategies #-}
2{-# language GeneralizedNewtypeDeriving #-}
3{-# language StandaloneKindSignatures #-}
11import Data.Kind ( Type )
15import qualified Opaleye.Select as Opaleye
18import Rel8.Query.Set ( unionAll )
19import Rel8.Query.Values ( values )
20import Rel8.Table.Alternative
22 , AlternativeTable, emptyTable
26-- | The @Query@ monad allows you to compose a @SELECT@ query. This monad has
27-- semantics similar to the list (@[]@) monad.
28type Query :: Type -> Type
29newtype Query a = Query (Opaleye.Select a)
30 deriving newtype (Functor, Applicative, Monad)
33-- | '<|>:' = 'unionAll'.
34instance AltTable Query where
38-- | 'emptyTable' = 'values' @[]@.
39instance AlternativeTable Query where
40 emptyTable = values []
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