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.
-
optics-core Optics.Traversal A version of traverseOf with the arguments flipped.
formatSize :: (HasCallStack, MonadIO m) => Word64 -> m Textgi-glib GI.GLib.Functions Formats a size (for example the size of a file) into a human readable string. Sizes are rounded to the nearest size prefix (kB, MB, GB) and are displayed rounded to the nearest tenth. E.g. the file size 3292528 bytes will be converted into the string "3.2 MB". The returned string is UTF-8, and may use a non-breaking space to separate the number and units, to ensure they aren’t separated when line wrapped. The prefix units base is 1000 (i.e. 1 kB is 1000 bytes). This string should be freed with free when not needed any longer. See formatSizeFull for more options about how the size might be formatted. Since: 2.30
formatSizeForDisplay :: (HasCallStack, MonadIO m) => Int64 -> m Textgi-glib GI.GLib.Functions Deprecated: (Since version 2.30)This function is broken due to its use of SIsuffixes to denote IEC units. Use formatSize instead.
formatSizeFull :: (HasCallStack, MonadIO m) => Word64 -> [FormatSizeFlags] -> m Textgi-glib GI.GLib.Functions Formats a size. This function is similar to formatSize but allows for flags that modify the output. See FormatSizeFlags. Since: 2.30
format :: Element t => String -> (t -> String) -> Matrix t -> Stringhmatrix Numeric.LinearAlgebra.Data Creates a string from a matrix given a separator and a function to show each entry. Using this function the user can easily define any desired display function:
import Text.Printf(printf)
disp = putStr . format " " (printf "%.2f")
-
haskell-src-exts Language.Haskell.Exts.Syntax No documentation available.
forM_ :: (MonoFoldable mono, Applicative m) => mono -> (Element mono -> m ()) -> m ()mono-traversable Data.MonoTraversable.Unprefixed Synonym for oforM_
for_ :: (MonoFoldable mono, Applicative f) => mono -> (Element mono -> f b) -> f ()mono-traversable Data.MonoTraversable.Unprefixed Synonym for ofor_
forEach :: (ToRow q, FromRow r) => Connection -> Query -> q -> (r -> IO ()) -> IO ()postgresql-simple Database.PostgreSQL.Simple A version of fold that does not transform a state value.
forEachWith :: ToRow q => RowParser r -> Connection -> Query -> q -> (r -> IO ()) -> IO ()postgresql-simple Database.PostgreSQL.Simple A version of forEach taking a parser as an argument