Hoogle Search

Within LTS Haskell 24.18 (ghc-9.10.3)

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

  1. showCommandForUser :: FilePath -> [String] -> String

    io-streams System.IO.Streams.Process

    Given a program p and arguments args, showCommandForUser p args returns a string suitable for pasting into /bin/sh (on Unix systems) or CMD.EXE (on Windows).

  2. showToPathPiece :: Show s => s -> Text

    path-pieces Web.PathPieces

    See the documentation for readFromPathPiece. Since 0.2.1.

  3. showCodecABit :: Codec context input output -> String

    autodocodec Autodocodec

    Show a codec to a human. This function exists for codec debugging. It omits any unshowable information from the output.

  4. shownBoundedEnumCodec :: (Show enum, Eq enum, Enum enum, Bounded enum) => JSONCodec enum

    autodocodec Autodocodec

    A codec for a Bounded Enum that uses its Show instance to have the values correspond to literal Text values.

    Example usage

    >>> data Fruit = Apple | Orange deriving (Show, Eq, Enum, Bounded)
    
    >>> let c = shownBoundedEnumCodec
    
    >>> toJSONVia c Apple
    String "Apple"
    
    >>> JSON.parseMaybe (parseJSONVia c) (String "Orange") :: Maybe Fruit
    Just Orange
    

  5. showCodecABit :: Codec context input output -> String

    autodocodec Autodocodec.Codec

    Show a codec to a human. This function exists for codec debugging. It omits any unshowable information from the output.

  6. shownBoundedEnumCodec :: (Show enum, Eq enum, Enum enum, Bounded enum) => JSONCodec enum

    autodocodec Autodocodec.Codec

    A codec for a Bounded Enum that uses its Show instance to have the values correspond to literal Text values.

    Example usage

    >>> data Fruit = Apple | Orange deriving (Show, Eq, Enum, Bounded)
    
    >>> let c = shownBoundedEnumCodec
    
    >>> toJSONVia c Apple
    String "Apple"
    
    >>> JSON.parseMaybe (parseJSONVia c) (String "Orange") :: Maybe Fruit
    Just Orange
    

  7. showIdeaANSI :: Idea -> String

    hlint Language.Haskell.HLint

    Show an Idea with ANSI color codes to give syntax coloring to the Haskell code.

  8. showLitChar :: Char -> ShowS

    rio RIO.Char

    Convert a character to a string using only printable characters, using Haskell source-language escape conventions. For example:

    showLitChar '\n' s  =  "\\n" ++ s
    

  9. showTree :: (Show k, Show a) => Map k a -> String

    rio RIO.Map

    Show the tree that implements the map. The tree is shown in a compressed, hanging format. See showTreeWith.

  10. showTreeWith :: (k -> a -> String) -> Bool -> Bool -> Map k a -> String

    rio RIO.Map

    The expression (showTreeWith showelem hang wide map) shows the tree that implements the map. Elements are shown using the showElem function. If hang is True, a hanging tree is shown otherwise a rotated tree is shown. If wide is True, an extra wide version is shown.

    Map> let t = fromDistinctAscList [(x,()) | x <- [1..5]]
    Map> putStrLn $ showTreeWith (\k x -> show (k,x)) True False t
    (4,())
    +--(2,())
    |  +--(1,())
    |  +--(3,())
    +--(5,())
    
    Map> putStrLn $ showTreeWith (\k x -> show (k,x)) True True t
    (4,())
    |
    +--(2,())
    |  |
    |  +--(1,())
    |  |
    |  +--(3,())
    |
    +--(5,())
    
    Map> putStrLn $ showTreeWith (\k x -> show (k,x)) False True t
    +--(5,())
    |
    (4,())
    |
    |  +--(3,())
    |  |
    +--(2,())
    |
    +--(1,())
    

Page 40 of many | Previous | Next