Hoogle Search
Within LTS Haskell 24.66 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
type family
GConIdNamedIf (n :: Symbol) t (o :: Maybe Nat) :: Natgeneric-data Generic.Data.Internal.Meta No documentation available.
conId :: Constructors a => a -> ConId ageneric-data Generic.Data.Internal.Meta Identifier of a constructor.
conIdEnum :: Constructors a => [ConId a]generic-data Generic.Data.Internal.Meta All constructor identifiers.
gconNum @a = length (conIdEnum @a)
conIdMax :: (Constructors a, NonEmptyType "conIdMax" a) => ConId ageneric-data Generic.Data.Internal.Meta The last constructor. This must not be called on an empty type.
conIdMin :: (Constructors a, NonEmptyType "conIdMin" a) => ConId ageneric-data Generic.Data.Internal.Meta The first constructor. This must not be called on an empty type.
conIdNamed :: forall (s :: Symbol) a . ConIdNamed s a => ConId ageneric-data Generic.Data.Internal.Meta Get a ConId by name.
>>> conIdNamed @"Nothing" :: ConId (Maybe Int) ConId 0 >>> conIdNamed @"Just" :: ConId (Maybe Int) ConId 1
conIdToString :: Constructors a => ConId a -> Stringgeneric-data Generic.Data.Internal.Meta Name of a constructor. See also gconName.
fromConId :: Generic a => ConId a -> GConId (Rep a)generic-data Generic.Data.Internal.Meta No documentation available.
gConId :: forall (p :: k) . GConstructors r => r p -> GConId rgeneric-data Generic.Data.Internal.Meta No documentation available.
gConIdToString :: GConstructors r => GConId r -> Stringgeneric-data Generic.Data.Internal.Meta No documentation available.