Hoogle Search

Within LTS Haskell 24.10 (ghc-9.10.2)

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

  1. showPlainGhcException :: PlainGhcException -> ShowS

    ghc GHC.Utils.Panic.Plain

    Append a description of the given exception to this string.

  2. showFixity :: Fixity -> String

    th-abstraction Language.Haskell.TH.Datatype

    Render a Fixity as it would appear in Haskell source. Example: infixl 5

  3. showFixityDirection :: FixityDirection -> String

    th-abstraction Language.Haskell.TH.Datatype

    Render a FixityDirection like it would appear in Haskell source. Examples: infixl infixr infix

  4. showTextData :: Show a => a -> Text

    http-api-data Web.HttpApiData

    Lower case. Convert to URL piece using Show instance. The result is always lower cased.

    >>> showTextData True
    "true"
    
    This can be used as a default implementation for enumeration types:
    >>> data MyData = Foo | Bar | Baz deriving (Show)
    
    >>> instance ToHttpApiData MyData where toUrlPiece = showTextData
    
    >>> toUrlPiece Foo
    "foo"
    

  5. showTextData :: Show a => a -> Text

    http-api-data Web.Internal.HttpApiData

    Lower case. Convert to URL piece using Show instance. The result is always lower cased.

    >>> showTextData True
    "true"
    
    This can be used as a default implementation for enumeration types:
    >>> data MyData = Foo | Bar | Baz deriving (Show)
    
    >>> instance ToHttpApiData MyData where toUrlPiece = showTextData
    
    >>> toUrlPiece Foo
    "foo"
    

  6. showt :: Show a => a -> Text

    http-api-data Web.Internal.HttpApiData

    Like show, but returns Text.

  7. showText :: TextFormat -> [Text] -> String

    cmdargs System.Console.CmdArgs.Text

    Show some text using the given formatting.

  8. showReadSpec :: (Show a, Eq a, Read a, Typeable a, GenValid a) => Spec

    genvalidity-hspec Test.Validity

    Standard test spec for properties of Show and Read instances for valid values Example usage:

    showReadSpec @Int
    

  9. showReadSpecOnArbitrary :: (Show a, Eq a, Read a, Typeable a, Arbitrary a) => Spec

    genvalidity-hspec Test.Validity

    Standard test spec for properties of Show and Read instances for arbitrary values Example usage:

    showReadSpecOnArbitrary @Double
    

  10. showReadSpecOnGen :: (Show a, Eq a, Read a, Typeable a) => Gen a -> String -> (a -> [a]) -> Spec

    genvalidity-hspec Test.Validity

    Standard test spec for properties of Show and Read instances for values generated by a custom generator Example usage:

    showReadSpecOnGen ((* 2) <$> genValid @Int) "even" (const [])
    

Page 69 of many | Previous | Next