Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

  1. head :: HasCallStack => [a] -> a

    xmonad-contrib XMonad.Prelude

    Extract the first element of a list, which must be non-empty. To disable the warning about partiality put {-# OPTIONS_GHC -Wno-x-partial -Wno-unrecognised-warning-flags #-} at the top of the file. To disable it throughout a package put the same options into ghc-options section of Cabal file. To disable it in GHCi put :set -Wno-x-partial -Wno-unrecognised-warning-flags into ~/.ghci config file. See also the migration guide.

    Examples
    >>> head [1, 2, 3]
    1
    
    >>> head [1..]
    1
    
    >>> head []
    *** Exception: Prelude.head: empty list
    

  2. HEAD :: StdMethod

    http-types Network.HTTP.Types

    No documentation available.

  3. HEAD :: StdMethod

    http-types Network.HTTP.Types.Method

    No documentation available.

  4. HEAD :: StdMethod

    gogol-core Gogol.Prelude

    No documentation available.

  5. HEAD :: StdMethod

    servant Servant.API

    No documentation available.

  6. HEAD :: StdMethod

    servant Servant.API.Verbs

    No documentation available.

  7. module GHC.Tc.Gen.Head

    No documentation available.

  8. newtype Head url

    yesod-core Yesod.Core.Types

    No documentation available.

  9. Head :: HtmlUrl url -> Head url

    yesod-core Yesod.Core.Types

    No documentation available.

  10. HEAD :: RequestMethod

    HTTP Network.HTTP.Base

    No documentation available.

Page 19 of many | Previous | Next