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.
singletonStar :: OptionsMonad q => [Name] -> q [Dec]singletons-th Data.Singletons.TH.CustomStar Produce a representation and singleton for the collection of types given. A datatype Rep is created, with one constructor per type in the declared universe. When this type is promoted by the singletons-th library, the constructors become full types in *, not just promoted data constructors. For example,
$(singletonStar [''Nat, ''Bool, ''Maybe])
generates the following:data Rep = Nat | Bool | Maybe Rep deriving (Eq, Ord, Read, Show)
and its singleton. However, because Rep is promoted to *, the singleton is perhaps slightly unexpected:data SRep (a :: *) where SNat :: Sing Nat SBool :: Sing Bool SMaybe :: Sing a -> Sing (Maybe a) type instance Sing = SRep
The unexpected part is that Nat, Bool, and Maybe above are the real Nat, Bool, and Maybe, not just promoted data constructors. Please note that this function is very experimental. Use at your own risk.singleton2 :: BCP47 -> a -> Trie2 abcp47 Data.BCP47.Trie.Internal No documentation available.
singletonWithConflict :: Var QPN -> Conflict -> ConflictSetcabal-install-solver Distribution.Solver.Modular.ConflictSet No documentation available.
singletonMap :: Key κ => κ -> ν -> Map κ νcore-data Core.Data.Structures Construct a dictionary with only a single key/value pair.
singletonSet :: Key ε => ε -> Set εcore-data Core.Data.Structures Construct a collection comprising only the supplied element.
singletonN :: (Representable k, Representable a) => k % 1 -> a % 1 -> Pool % 1 -> NEHeap k alinear-base Foreign.Heap No documentation available.
singletonBundle :: forall a (m :: Type -> Type) . a -> Bundle m areactive-midyim Reactive.Banana.MIDI.Common No documentation available.
singletonCached :: Cached -> Maybe Dynamicregistry Data.Registry.Internal.Cache No documentation available.
-
registry Data.Registry.Rio Make singletons for all the output types of a registry but only if they not specialized values
singletonDT :: [Key] -> a -> DiscrimTree aAgda Agda.TypeChecking.DiscrimTree.Types Construct the case tree corresponding to only performing proper matches on the given key. In this context, a "proper match" is any Key that is not FlexK.