Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

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

  1. formatIntegral' :: Integral a => Text -> LocaleName -> a -> Text

    text-icu Data.Text.ICU

    Create a number formatter and apply it to an integral number.

  2. formatCalendar :: DateFormatter -> Calendar -> Text

    text-icu Data.Text.ICU.DateFormatter

    Format a Calendar using a DateFormatter.

    >>> import Data.Text
    
    >>> dfDe <- standardDateFormatter LongFormatStyle LongFormatStyle (Locale "de_DE") (pack "CET")
    
    >>> c <- calendar (pack "CET") (Locale "de_DE") TraditionalCalendarType
    
    >>> formatCalendar dfDe c
    "13. Oktober 2021 um 12:44:09 GMT+2"
    

  3. formatNumber :: FormattableNumber n => NumberFormat -> n -> Text

    text-icu Data.Text.ICU.Number

    No documentation available.

  4. formatNumber' :: FormattableNumber n => NumberFormatStyle -> LocaleName -> n -> Text

    text-icu Data.Text.ICU.Number

    Create a formatter and apply it in one step.

  5. formatDouble :: NumberFormatter -> Double -> Text

    text-icu Data.Text.ICU.NumberFormatter

    Format a Double. See https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html for how to specify the number skeletons.

    >>> import Data.Text
    
    >>> nf3 <- numberFormatter (pack "precision-currency-cash") (Locale "it")
    
    >>> formatDouble nf3 12345.6789
    "12.345,68"
    

  6. formatDouble' :: Text -> LocaleName -> Double -> Text

    text-icu Data.Text.ICU.NumberFormatter

    Create a number formatter and apply it to a Double.

  7. formatIntegral :: Integral a => NumberFormatter -> a -> Text

    text-icu Data.Text.ICU.NumberFormatter

    Format an integral number. See https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html for how to specify the number skeletons.

    >>> import Data.Text
    
    >>> nf <- numberFormatter (pack "precision-integer") (Locale "de")
    
    >>> formatIntegral nf 12345
    "12.345"
    
    >>> nf2 <- numberFormatter (pack "precision-integer") (Locale "fr")
    
    >>> formatIntegral nf2 12345
    "12\8239\&345"
    

  8. formatIntegral' :: Integral a => Text -> LocaleName -> a -> Text

    text-icu Data.Text.ICU.NumberFormatter

    Create a number formatter and apply it to an integral number.

  9. foreColorDiff :: DisplayAttrDiff -> DisplayColorDiff

    vty Graphics.Vty.DisplayAttributes

    No documentation available.

  10. foreColor :: Color -> InlineM ()

    vty Graphics.Vty.Inline

    Set the foreground color to the provided Color.

Page 58 of many | Previous | Next