Hoogle Search

Within LTS Haskell 24.35 (ghc-9.10.3)

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

  1. module GI.Gdk.Enums

    No documentation available.

  2. data EnumFromTo (a :: Nat) (b :: Nat) (c :: [Nat])

    harpie Harpie.Shape

    Enumerate between two Nats

    >>> :k! Eval (EnumFromTo 0 3)
    ...
    = [0, 1, 2, 3]
    

  3. data Enumeration

    lsp-types Language.LSP.MetaModel.Types

    An enumeration type.

  4. Enumeration :: Text -> Type -> [EnumerationEntry] -> Maybe Bool -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> Enumeration

    lsp-types Language.LSP.MetaModel.Types

    No documentation available.

  5. data EnumerationEntry

    lsp-types Language.LSP.MetaModel.Types

    An entry in an enumeration.

  6. EnumerationEntry :: Text -> TextOrInteger -> Maybe Text -> Maybe Text -> Maybe Bool -> Maybe Text -> EnumerationEntry

    lsp-types Language.LSP.MetaModel.Types

    No documentation available.

  7. data EnumMap c

    apecs Apecs.Experimental.Reactive

    Allows you to look up entities by component value. Use e.g. withReactive $ enumLookup True to retrieve a list of entities that have a True component. Based on an IntMap IntSet internally.

  8. ENumber :: Variable -> NumberForm -> ElementType a

    citeproc Citeproc.Types

    No documentation available.

  9. class (Buildable e, Bounded e, Enum e, Eq e, Ord e, Show e, TextParsable e) => EnumText e

    enum-text Text.Enum.Text

    Our toolkit for enumerated types which should be defined as follows:

    import Fmt
    import Text.Enum.Text
    
    data Foo = FOO_bar | FOO_bar_baz
    deriving (Bounded,Enum,Eq,Ord,Show)
    
    instance EnumText     Foo
    instance Buildable    Foo where build     = buildEnumText
    instance TextParsable Foo where parseText = parseEnumText
    
    With the DeriveAnyClass language extension you can list EnumText in the deriving clause, and with DerivingVia (available from GHC 8.6.1) you can derive via UsingEnumText as follows:
    {-# LANGUAGE DeriveAnyClass    #-}
    {-# LANGUAGE DerivingVia       #-}
    
    import Fmt
    import Text.Enum.Text
    
    data Foo = FOO_bar | FOO_bar_baz
    deriving (Bounded,Enum,EnumText,Eq,Ord,Show)
    deriving (Buildable,TextParsable) via UsingEnumText Foo
    

  10. data EnumTextConfig

    enum-text Text.Enum.Text

    Configures the default implementation of renderEnumText

Page 20 of many | Previous | Next