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. class Suffixed t

    lens Data.List.Lens

    No documentation available.

  2. prefixed :: Prefixed t => t -> Prism' t t

    lens Data.List.Lens

    A Prism stripping a prefix from a sequence when used as a Traversal, or prepending that prefix when run backwards:

    >>> "preview" ^? prefixed "pre"
    Just "view"
    
    >>> "review" ^? prefixed "pre"
    Nothing
    
    >>> prefixed "pre" # "amble"
    "preamble"
    

  3. stripSuffix :: Eq a => [a] -> [a] -> Maybe [a]

    lens Data.List.Lens

    The stripSuffix function drops the given suffix from a list. It returns Nothing if the list did not end with the suffix given, or Just the list after the suffix, if it does.

    >>> stripSuffix "bar" "foobar"
    Just "foo"
    
    >>> stripSuffix "foo" "foo"
    Just ""
    
    >>> stripSuffix "bar" "barfoo"
    Nothing
    
    >>> stripSuffix "foo" "barfoobaz"
    Nothing
    

  4. suffixed :: Suffixed t => t -> Prism' t t

    lens Data.List.Lens

    A Prism stripping a suffix from a sequence when used as a Traversal, or appending that suffix when run backwards:

    >>> "review" ^? suffixed "view"
    Just "re"
    
    >>> "review" ^? suffixed "tire"
    Nothing
    
    >>> suffixed ".o" # "hello"
    "hello.o"
    

  5. vectorIx :: forall (v :: Type -> Type) a . Vector v a => Int -> Traversal' (v a) a

    lens Data.Vector.Generic.Lens

    Like ix but polymorphic in the vector type.

  6. _InfixC :: Prism' Con (BangType, Name, BangType)

    lens Language.Haskell.TH.Lens

    No documentation available.

  7. _InfixD :: Prism' Dec (Fixity, NamespaceSpecifier, Name)

    lens Language.Haskell.TH.Lens

    _InfixD :: Prism' Dec (Fixity, NamespaceSpecifier, Name) -- template-haskell-2.22+
    _InfixD :: Prism' Dec (Fixity, Name)                     -- Earlier versions
    

  8. _InfixE :: Prism' Exp (Maybe Exp, Exp, Maybe Exp)

    lens Language.Haskell.TH.Lens

    No documentation available.

  9. _InfixL :: Prism' FixityDirection ()

    lens Language.Haskell.TH.Lens

    No documentation available.

  10. _InfixN :: Prism' FixityDirection ()

    lens Language.Haskell.TH.Lens

    No documentation available.

Page 47 of many | Previous | Next