Hoogle Search
Within LTS Haskell 24.48 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
formatOrShow :: FormatStyle -> Maybe Int -> Double -> Textformatn Data.FormatN Format with the shorter of show and a style.
>>> format (ExponentStyle Nothing) Nothing 0 "0e0" >>> formatOrShow (ExponentStyle Nothing) Nothing 0 "0"
formatSF :: FormatStyle -> SigFig -> Textformatn Data.FormatN format a SigFig according to a style
>>> formatSF CommaStyle (toSigFig (Just 2) 1234) "1,200" >>> formatSF CommaStyle (SigFig SigFigPos 0 1) "0" >>> formatSF CommaStyle (SigFig SigFigPos 0 (-1)) "0.0"
formats :: Bool -> Bool -> (Double -> FormatStyle) -> Maybe Int -> [Double] -> [Text]formatn Data.FormatN Consistently format a list of numbers,using the minimum number of decimal places or minimum exponent.
>>> formats True True precStyle (Just 1) [0,0.5,1,2] ["0.0","0.5","1.0","2.0"]
Note how the presence of 0.5 in the example above changes the format of all numbers. Without it:>>> formats True True precStyle (Just 1) [0,1,2] ["0","1","2"]
>>> formats False True precStyle (Just 1) $ ((-1)*) <$> [0,0.5,1,2] ["0.0","-0.5","-1.0","-2.0"] >>> formats True True commaPrecStyle (Just 1) $ ((-1000)*) <$> [0,0.5,1,2] [" 0"," -500","-1,000","-2,000"] >>> formats True True commaPrecStyle (Just 1) $ ((1e6)*) <$> [0,0.5,1,2] [" 0"," 500,000","1,000,000","2,000,000"] >>> formats True True commaPrecStyle (Just 1) $ ((1e6)*) <$> [0.9,2,3] ["0.9e6","2.0e6","3.0e6"] >>> formats True True commaPrecStyle (Just 1) $ ((1e-6)*) <$> [0,0.5,1,2] ["0.0e-6","0.5e-6","1.0e-6","2.0e-6"] >>> formats True True commaPrecStyle (Just 1) $ ((1e-3)*) <$> [0,0.5,1,2] ["0.0000","0.0005","0.0010","0.0020"] >>> formats True False (const (ExponentStyle Nothing)) (Just 2) [0..4] ["0.0e0","1.0e0","2.0e0","3.0e0","4.0e0"] >>> formats True True (const (ExponentStyle Nothing)) (Just 2) [0..4] ["0e0","1e0","2e0","3e0","4e0"]
formatsSF :: Maybe Int -> [Double] -> [SigFig]formatn Data.FormatN Consistently convert a list of numbers to SigFigs, using the minimum natural exponent of the list.
fork :: (a -> b) -> (a -> c) -> a -> (b, c)generic-lens-core Data.GenericLens.Internal No documentation available.
forall' :: [HsTyVarBndrS'] -> HsType' -> HsType'ghc-source-gen GHC.SourceGen.Type A type variable binding.
forall a . T a ===== forall' [bvar "a"] $ var "T" @@ var "a"
formatParserError :: Maybe String -> ParserError -> Stringginger Text.Ginger.Parse Formats a parser errror into something human-friendly. If template source code is not provided, only the line and column numbers and the error message are printed. If template source code is provided, the offending source line is also printed, with a caret (^) marking the exact location of the error.
formatFileSize :: Bool -> Integer -> Stringginger Text.Ginger.Run.Builtins No documentation available.
force :: OpClose -> !Maybe Boolgreskell-websocket Network.Greskell.WebSocket.Request.Session No documentation available.
foreground :: GCValues -> Colorgtk Graphics.UI.Gtk.Gdk.GC No documentation available.