Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

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

  1. data FractionalLit

    ghc GHC.Types.SourceText

    Fractional Literal Used (instead of Rational) to represent exactly the floating point literal that we encountered in the user's source program. This allows us to pretty-print exactly what the user wrote, which is important e.g. for floating point numbers that can't represented as Doubles (we used to via Double for pretty-printing). See also #2245. Note [FractionalLit representation] in GHC.HsToCore.Match.Literal The actual value then is: sign * fl_signi * (fl_exp_base^fl_exp) where sign = if fl_neg then (-1) else 1 For example FL { fl_neg = True, fl_signi = 5.3, fl_exp = 4, fl_exp_base = Base10 } denotes -5300

  2. data IntegralLit

    ghc GHC.Types.SourceText

    Integral Literal Used (instead of Integer) to represent negative zegative zero which is required for NegativeLiterals extension to correctly parse `-0::Double` as negative zero. See also #13211.

  3. fractionalLitFromRational :: Rational -> FractionalLit

    ghc GHC.Types.SourceText

    No documentation available.

  4. integralFractionalLit :: Bool -> Integer -> FractionalLit

    ghc GHC.Types.SourceText

    The integer should already be negated if it's negative.

  5. mkFractionalLit :: SourceText -> Bool -> Rational -> Integer -> FractionalExponentBase -> FractionalLit

    ghc GHC.Types.SourceText

    No documentation available.

  6. mkIntegralLit :: Integral a => a -> IntegralLit

    ghc GHC.Types.SourceText

    No documentation available.

  7. mkSourceFractionalLit :: String -> Bool -> Integer -> Integer -> FractionalExponentBase -> FractionalLit

    ghc GHC.Types.SourceText

    The arguments should already be negated if they are negative.

  8. mkTHFractionalLit :: Rational -> FractionalLit

    ghc GHC.Types.SourceText

    No documentation available.

  9. negateFractionalLit :: FractionalLit -> FractionalLit

    ghc GHC.Types.SourceText

    No documentation available.

  10. negateIntegralLit :: IntegralLit -> IntegralLit

    ghc GHC.Types.SourceText

    No documentation available.

Page 321 of many | Previous | Next