Hoogle Search
Within LTS Haskell 24.22 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
singletonRange :: DiscreteOrdered v => v -> Range vRanged-sets Data.Ranged.Ranges A range containing a single value
singletonSMap :: forall (s :: Symbol) d . KnownSymbol s => Proxy s -> Val d s -> SMap d '[s]bowtie Bowtie.SMap No documentation available.
singletonMap :: IsMap map => ContainerKey map -> MapValue map -> mapclassy-prelude-yesod ClassyPrelude.Yesod Create a map from a single key-value pair.
singletonSet :: IsSet set => Element set -> setclassy-prelude-yesod ClassyPrelude.Yesod Create a set from a single element.
singletonCCSLbl :: CostCentre -> G Identghc-lib GHC.StgToJS.Profiling No documentation available.
singletonIndex :: val -> Index key valhaskey-btree Data.BTree.Primitives.Index Create an index with a single value.
singletonStatement :: QuasiQuoterhasql-th Hasql.TH :: Statement params row
Statement producing exactly one result row. Will cause the running session to fail with the UnexpectedAmountOfRows error if it's any other.Examples
>>> :t [singletonStatement|select 1 :: int2|] ... :: Statement () Int16
>>> :{ :t [singletonStatement| insert into "user" (email, name) values ($1 :: text, $2 :: text) returning id :: int4 |] :} ... ... :: Statement (Text, Text) Int32Incorrect SQL:>>> :t [singletonStatement|elect 1|] ... | 1 | elect 1 | ^ ...
-
xmonad-contrib XMonad.Util.Stack No documentation available.
-
This module exports the basic definitions to use singletons. See also Prelude.Singletons from the singletons-base library, which re-exports this module alongside many singled definitions based on the Prelude. You may also want to read the original papers presenting this library, available at https://richarde.dev/papers/2012/singletons/paper.pdf and https://richarde.dev/papers/2014/promotion/promotion.pdf.
module Control.Applicative.
Singletons Defines the promoted and singled versions of the Applicative type class.