Hoogle Search

Within LTS Haskell 24.52 (ghc-9.10.3)

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

  1. signum :: Num a => a -> a

    classy-prelude-yesod ClassyPrelude.Yesod

    Sign of a number. The functions abs and signum should satisfy the law:

    abs x * signum x == x
    
    For real numbers, the signum is either -1 (negative), 0 (zero) or 1 (positive).

  2. toEnum :: Enum a => Int -> a

    classy-prelude-yesod ClassyPrelude.Yesod

    Convert from an Int.

  3. cssNumberText :: Number -> Text

    clay Clay.Property

    No documentation available.

  4. unNumber :: Number -> Fixed E5

    clay Clay.Property

    No documentation available.

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

    columnar Text.Columnar

    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
    

  6. data EnumTextConfig

    columnar Text.Columnar

    Configures the default implementation of renderEnumText

  7. EnumTextConfig :: (Text -> Text) -> (Char -> Char) -> EnumTextConfig

    columnar Text.Columnar

    No documentation available.

  8. newtype UsingEnumText a

    columnar Text.Columnar

    No documentation available.

  9. UsingEnumText :: a -> UsingEnumText a

    columnar Text.Columnar

    No documentation available.

  10. _UsingEnumText :: UsingEnumText a -> a

    columnar Text.Columnar

    No documentation available.

Page 556 of many | Previous | Next