Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
head :: forall (m :: Type -> Type) a . Monad m => Fold m a (Maybe a)streamly-core Streamly.Internal.Data.Fold Deprecated: Please use "one" instead
head :: Monad m => Stream m a -> m (Maybe a)streamly-core Streamly.Internal.Data.Stream No documentation available.
head :: Monad m => StreamK m a -> m (Maybe a)streamly-core Streamly.Internal.Data.StreamK No documentation available.
head :: (HasCallStack, Monad m) => Stream m a -> m avector-stream Data.Stream.Monadic First element of the Stream or error if empty
-
Agda Agda.Utils.List1 Extract the first element of the stream.
-
Agda Agda.Utils.List2 Safe. O(1).
-
binary-list Data.BinaryList O(log n). Get the first element of a binary list.
head :: HasCallStack => [a] -> adimensional Numeric.Units.Dimensional.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
head :: HasCallStack => [a] -> adistribution-opensuse OpenSuse.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
head :: HasCallStack => [a] -> afaktory Faktory.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