Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

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

  1. fixedPointNoEq :: Fractional a => (Forward a -> Forward a) -> a -> [a]

    ad Numeric.AD.Rank1.Newton

    The fixedPointNoEq function behaves the same as fixedPoint except that it doesn't truncate the list once the results become constant. This means it can be used with types without an Eq instance.

  2. fixedPoint :: (ForwardDouble -> ForwardDouble) -> Double -> [Double]

    ad Numeric.AD.Rank1.Newton.Double

    The fixedPoint function find a fixedpoint of a scalar function using Newton's method; its output is a stream of increasingly accurate results. (Modulo the usual caveats.) If the stream becomes constant ("it converges"), no further elements are returned.

    >>> last $ take 10 $ fixedPoint cos 1
    0.7390851332151607
    

  3. isPrefixOf :: Eq a => [a] -> NonEmpty a -> Bool

    base-compat-batteries Data.List.NonEmpty.Compat

    The isPrefixOf function returns True if the first argument is a prefix of the second.

  4. isInfixDataCon :: String -> Bool

    deriving-compat Data.Deriving.Internal

    Checks if a String names a valid Haskell infix data constructor (i.e., does it begin with a colon?).

  5. deriveIx :: Name -> Q [Dec]

    deriving-compat Data.Ix.Deriving

    Generates a Ix instance declaration for the given data type or data family instance.

  6. deriveIx :: Name -> Q [Dec]

    deriving-compat Data.Ix.Deriving.Internal

    Generates a Ix instance declaration for the given data type or data family instance.

  7. binPrefix :: Integral a => Int64 -> Format r (a -> r)

    formatting Formatting.Combinators

    Render an integer using binary notation with a leading 0b, padding with zeroes to the given width:

    >>> format (binPrefix 16) 4097
    "0b0001000000000001"
    

  8. cfixed :: Int64 -> Int64 -> Char -> Format r (a -> r) -> Format r (a -> r)

    formatting Formatting.Combinators

    Format the item with a fixed width, padding with the given character on either side to extend, adding an ellipsis in the center to shorten. The total length will be `l + r + 3` characters.

    >>> format (cfixed 4 3 ' ' int) 123
    "    123   "
    
    >>> format (cfixed 4 3 ' ' int) 1234567890
    "1234567890"
    
    >>> format (cfixed 4 3 ' ' int) 123456789012345
    "1234...345"
    

  9. hexPrefix :: Integral a => Int64 -> Format r (a -> r)

    formatting Formatting.Combinators

    Render an integer using octal notation with a leading 0x, padding with zeroes to the given width:

    >>> format (hexPrefix 16) 4097
    "0x0000000000001001"
    

  10. lfixed :: Int64 -> Char -> Format r (a -> r) -> Format r (a -> r)

    formatting Formatting.Combinators

    Format the item with a fixed width, padding with the given character on the left to extend, adding an ellipsis on the right to shorten:

    >>> format (lfixed 10 ' ' int) 123
    "123       "
    
    >>> format (lfixed 10 ' ' int) 1234567890
    "1234567890"
    
    >>> format (lfixed 10 ' ' int) 123456789012345
    "1234567..."
    

Page 190 of many | Previous | Next