Hoogle Search
Within LTS Haskell 24.53 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
unSingleton :: OneOfThem (Singleton a) -> atype-set Data.OneOfThem No documentation available.
unSingleton :: OneOrMore (Singleton a) -> atype-set Data.OneOrMore No documentation available.
unSingleton :: forall (f :: Type -> Type) a . OneOrMoreApp ('SetApp f (Singleton a)) -> atype-set Data.OneOrMoreApp No documentation available.
data
SetSingletonConstructors (a :: k)dhall Dhall.Deriving SetSingletonConstructors t replaces the singletonConstructors from options with the value-level version of t.
class
ToSingletonConstructors (a :: SingletonConstructors)dhall Dhall.Deriving Convert a type of kind SingletonConstructors into a value of type SingletonConstructors
asSingletonConstructors :: ToSingletonConstructors a => SingletonConstructorsdhall Dhall.Deriving No documentation available.
setSingletonConstructors :: SingletonConstructors -> InterpretOptions -> InterpretOptionsdhall Dhall.Deriving setSingletonConstructors v options replaces the singletonConstructors from options with v.
unorderedSingleton :: k -> v -> Map k vdhall Dhall.Map Create a Map from a single key-value pair. Any further operations on this map will not retain the order of the keys.
>>> unorderedSingleton "A" 1 fromList [("A",1)]asSingleton :: Array a -> Array aharpie Harpie.Array Convert a scalar to being a dimensioned array. Do nothing if not a scalar.
>>> asSingleton (toScalar 4) UnsafeArray [1] [4]
-
harpie Harpie.Fixed Convert a scalar to being a dimensioned array. Do nothing if not a scalar.
>>> asSingleton (toScalar 4) [4]