Hoogle Search
Within LTS Haskell 24.54 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
isSingleton :: NonEmptyText -> Boolnon-empty-text Data.NonEmptyText O(1) Check if the string is composed of only one character
noSingletonProduct :: PrimQueryFoldP a (PrimQuery' a) (PrimQuery' a)opaleye Opaleye.Internal.Optimize No documentation available.
unsingleton :: NERAVec 'BE a -> aral Data.RAVec.NonEmpty No documentation available.
equalsSingletonChar :: ShortText# -> Char# -> Int#unlifted Data.Text.Short.Unlifted Is the short text a single character? Only works for ascii characters.
rSingleton :: DiscreteOrdered v => v -> RSet vRanged-sets Data.Ranged.RangedSet Create a Ranged Set from a single element.
prop_emptyNonSingleton :: BoolRanged-sets Data.Ranged.Ranges The empty range is not a singleton.
prop_emptyNonSingleton = rangeSingletonValue emptyRange == Nothing
-
Ranged-sets Data.Ranged.Ranges The full range is not a singleton.
prop_fullNonSingleton = rangeSingletonValue fullRange == Nothing
prop_intSingleton :: Integer -> Integer -> PropertyRanged-sets Data.Ranged.Ranges For all integers x and y, any range formed from boundaries on either side of x and y is a singleton iff it contains exactly one integer.
prop_nonSingleton :: Double -> Double -> PropertyRanged-sets Data.Ranged.Ranges For real x and y, x < y implies that any range between them is a non-singleton.
prop_singletonRangeConverse :: DiscreteOrdered a => a -> BoolRanged-sets Data.Ranged.Ranges A singleton range can have its value extracted.
prop_singletonRangeConverse v = rangeSingletonValue (singletonRange v) == Just v