Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
haskell-src-exts Language.Haskell.Exts.Syntax The head of a module, including the name and export specification.
ModuleHead :: l -> ModuleName l -> Maybe (WarningText l) -> Maybe (ExportSpecList l) -> ModuleHead lhaskell-src-exts Language.Haskell.Exts.Syntax No documentation available.
unsafeHead :: MonoFoldable mono => mono -> Element monomono-traversable Data.MonoTraversable Equivalent to headEx.
-
Parsers that can lookAhead.
class Parsing m =>
LookAheadParsing (m :: Type -> Type)parsers Text.Parser.LookAhead Additional functionality needed to describe parsers independent of input type.
lookAhead :: LookAheadParsing m => m a -> m aparsers Text.Parser.LookAhead lookAhead p parses p without consuming any input.
poHeaderWS :: ParseOutput -> Linesstring-interpolate Data.String.Interpolate.Parse No documentation available.
_head :: Cons s s a a => Traversal' s ario RIO.Lens _head traverses the 1st element of something (usually a list, but can also be a Seq, etc):
>>> [1..5] ^? _head Just 1
It can be used to modify too, as in this example where the 1st letter of a sentence is capitalised:>>> "mary had a little lamb." & _head %~ toTitle "Mary had a little lamb."
The reason it's a traversal and not a lens is that there's nothing to traverse when the list is empty:>>> [] ^? _head Nothing
This package only lets you use _head on lists, but if you use microlens-ghc you get instances for ByteString and Seq, and if you use microlens-platform you additionally get instances for Text and Vector.-
rio RIO.Vector.Boxed.Unsafe No documentation available.
unsafeHeadM :: Monad m => Vector a -> m ario RIO.Vector.Boxed.Unsafe No documentation available.