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.
head :: HasCallStack => [a] -> axmonad-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
-
http-types Network.HTTP.Types No documentation available.
-
http-types Network.HTTP.Types.Method No documentation available.
-
gogol-core Gogol.Prelude No documentation available.
-
servant Servant.API No documentation available.
-
servant Servant.API.Verbs No documentation available.
-
No documentation available.
-
yesod-core Yesod.Core.Types No documentation available.
Head :: HtmlUrl url -> Head urlyesod-core Yesod.Core.Types No documentation available.
-
HTTP Network.HTTP.Base No documentation available.