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.
-
lens Data.List.Lens No documentation available.
prefixed :: Prefixed t => t -> Prism' t tlens 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"
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
suffixed :: Suffixed t => t -> Prism' t tlens 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"
vectorIx :: forall (v :: Type -> Type) a . Vector v a => Int -> Traversal' (v a) alens Data.Vector.Generic.Lens Like ix but polymorphic in the vector type.
_InfixC :: Prism' Con (BangType, Name, BangType)lens Language.Haskell.TH.Lens No documentation available.
_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
_InfixE :: Prism' Exp (Maybe Exp, Exp, Maybe Exp)lens Language.Haskell.TH.Lens No documentation available.
_InfixL :: Prism' FixityDirection ()lens Language.Haskell.TH.Lens No documentation available.
_InfixN :: Prism' FixityDirection ()lens Language.Haskell.TH.Lens No documentation available.