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.
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.
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
isPrefixOf :: Eq a => [a] -> NonEmpty a -> Boolbase-compat-batteries Data.List.NonEmpty.Compat The isPrefixOf function returns True if the first argument is a prefix of the second.
isInfixDataCon :: String -> Boolderiving-compat Data.Deriving.Internal Checks if a String names a valid Haskell infix data constructor (i.e., does it begin with a colon?).
-
deriving-compat Data.Ix.Deriving Generates a Ix instance declaration for the given data type or data family instance.
-
deriving-compat Data.Ix.Deriving.Internal Generates a Ix instance declaration for the given data type or data family instance.
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"
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"
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"
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..."