Hoogle Search

Within LTS Haskell 24.42 (ghc-9.10.3)

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

  1. showFixity :: Fixity -> String

    th-abstraction Language.Haskell.TH.Datatype

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

  2. showFixityDirection :: FixityDirection -> String

    th-abstraction Language.Haskell.TH.Datatype

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

  3. 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"
    

  4. 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"
    

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

    http-api-data Web.Internal.HttpApiData

    Like show, but returns Text.

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

    cmdargs System.Console.CmdArgs.Text

    Show some text using the given formatting.

  7. 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
    

  8. 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
    

  9. 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 [])
    

  10. showReadRoundTrip :: (Show a, Eq a, Read a, GenValid a) => Property

    genvalidity-hspec Test.Validity.Show

    showReadRoundTrip @Int
    

Page 69 of many | Previous | Next