Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. enumTypeInit :: Enumeration -> Maybe Text

    haskell-gi Data.GI.GIR.Enum

    No documentation available.

  2. enumLaws :: (Enum a, Eq a, Arbitrary a, Show a) => Proxy a -> Laws

    quickcheck-classes Test.QuickCheck.Classes

    Tests the following properties:

    This only works for Enum types that are not bounded, meaning that succ and pred must be total. This means that these property tests work correctly for types like Integer but not for Int. Sadly, there is not a good way to test fromEnum and toEnum, since many types that have reasonable implementations for succ and pred have more inhabitants than Int does.

  3. enum' :: forall (a :: k) . Enum' f => [f a]

    generic-deriving Generics.Deriving.Enum

    No documentation available.

  4. enumCompleteTypeInfo :: (HasCallStack, MonadIO m) => GType -> EnumValue -> m TypeInfo

    gi-gobject GI.GObject.Functions

    This function is meant to be called from the complete_type_info function of a TypePlugin implementation, as in the following example:

    C code

    static void
    my_enum_complete_type_info (GTypePlugin     *plugin,
    GType            g_type,
    GTypeInfo       *info,
    GTypeValueTable *value_table)
    {
    static const GEnumValue values[] = {
    { MY_ENUM_FOO, "MY_ENUM_FOO", "foo" },
    { MY_ENUM_BAR, "MY_ENUM_BAR", "bar" },
    { 0, NULL, NULL }
    };
    
    g_enum_complete_type_info (type, info, values);
    }
    

  5. enumGetValue :: (HasCallStack, MonadIO m) => EnumClass -> Int32 -> m (Maybe EnumValue)

    gi-gobject GI.GObject.Functions

    Returns the EnumValue for a value.

  6. enumGetValueByName :: (HasCallStack, MonadIO m) => EnumClass -> Text -> m (Maybe EnumValue)

    gi-gobject GI.GObject.Functions

    Looks up a EnumValue by name.

  7. enumGetValueByNick :: (HasCallStack, MonadIO m) => EnumClass -> Text -> m (Maybe EnumValue)

    gi-gobject GI.GObject.Functions

    Looks up a EnumValue by nickname.

  8. enumRegisterStatic :: (HasCallStack, MonadIO m) => Text -> EnumValue -> m GType

    gi-gobject GI.GObject.Functions

    Registers a new static enumeration type with the name name. It is normally more convenient to let [glib-mkenums][glib-mkenums], generate a my_enum_get_type() function from a usual C enumeration definition than to write one yourself using enumRegisterStatic.

  9. enumToString :: (HasCallStack, MonadIO m) => GType -> Int32 -> m Text

    gi-gobject GI.GObject.Functions

    Pretty-prints value in the form of the enum’s name. This is intended to be used for debugging purposes. The format of the output may change in the future. Since: 2.54

  10. enumCodec :: Eq enum => NonEmpty (enum, Codec context enum enum) -> Codec context enum enum

    autodocodec Autodocodec

    A codec for an enum that can be written each with their own codec.

    WARNING

    If you don't provide a string for one of the type's constructors, the last codec in the list will be used instead.

Page 42 of many | Previous | Next