úÎ!wjt6"      !Safe=?@AC$Safe =>?@APSXrI  lens-errorsRepresents a simple   lens-errors<Represents a lens-like which may fail with an error of type e  lens-errorsCConstruct a fizzler allowing failure both in the getter and setter.  lens-errorsWCause the current traversal to fizzle with a failure when the focus matches a predicate[("hi", [1, 2, 3, 4]) ^&.. _2 . traversed . fizzleWhen ["failure"] even :: ([String], [Int])(["failure","failure"],[1,3])  lens-errorsUCause the current traversal to fizzle with a failure when the focus fails a predicateH("hi", [1, 2, 3, 4]) ^&.. _2 . traversed . fizzleUnless ["failure"] even(["failure","failure"],[2,4]) lens-errors:Given a function which might produce an error, fizzle on ", pass through on # ¹>>> let p x >>> | even x = Just [show x <> " was even"] >>> | otherwise = Nothing >>> ("hi", [1, 2, 3, 4]) ^&.. _2 . traversed . maybeFizzleWith p (["2 was even","4 was even"],[1,3]) lens-errorsGFizzle using the given error builder when the focus matches a predicate!let p x = [show x <> " was even"]@("hi", [1, 2, 3, 4]) ^&.. _2 . traversed . fizzleWithWhen p even#(["2 was even","4 was even"],[1,3]) lens-errorsEFizzle using the given error builder when the focus fails a predicate!let p x = [show x <> " was even"]A("hi", [1, 2, 3, 4]) ^&.. _2 . traversed . fizzleWithUnless p odd#(["2 was even","4 was even"],[1,3]) lens-errors—Always fizzle with the given error builder >>> let p x = [show x] >>> ("hi", [1, 2, 3, 4]) ^&.. _2 . traversed . fizzleWith p (["1","2","3","4"],[]) lens-errorsKFail with the given error when the provided traversal produces no elements.[("hi", [1, 2, 3, 4]) ^&.. (_2 . traversed . filtered (> 10)) `orFizzle` ["nothing over 10"](["nothing over 10"],[]) lens-errorsTFail using the given error builder when the provided traversal produces no elements.“("hi", [1, 2, 3, 4]) ^&.. (_2 . traversed . filtered (> 10)) `orFizzleWith` (\(_, xs) -> ["searched " <> show (length xs) <> " elements, no luck"])%(["searched 4 elements, no luck"],[]) lens-errorsOperator alias of ‡View the focus of a lens or traversal over a monoid. Returns the element and the monoidal sum of any errors encountered. Analogous to $ with error collection.Y("hi", [1, 2, 3, 4]) ^&. _2 . traversed . fizzleWithWhen (\n -> [show n]) even . to (:[])(["2","4"],[1,3]) lens-errorsOperator alias of ~View the focuses of a traversal as a list. Returns the elements and the monoidal sum of any errors encountered. Analogous to % with error collection.R("hi", [1, 2, 3, 4]) ^&.. (_2 . traversed . fizzleWithWhen (\n -> [show n]) even)(["2","4"],[1,3]) lens-errors See also ‡View the focus of a lens or traversal over a monoid. Returns the element and the monoidal sum of any errors encountered. Analogous to $ with error collection._examine (_2 . traversed . fizzleWithWhen (\n -> [show n]) even . to (:[])) ("hi", [1, 2, 3, 4])(["2","4"],[1,3]) lens-errors See also ~View the focuses of a traversal as a list. Returns the elements and the monoidal sum of any errors encountered. Analogous to % with error collection.ZexamineList ((_2 . traversed . fizzleWithWhen (\n -> [show n]) even)) ("hi", [1, 2, 3, 4])(["2","4"],[1,3]) lens-errorsOperator alias of PFind the first element of a traversal; or return all errors found along the way.3[1, 2, 3, 4] ^&? traversed . fizzleWhen ["odd"] odd Success 2U[1, 2, 3, 4] ^&? traversed . fizzleWithWhen (\s -> [show s <> " is too small"]) (<10)MFailure ["1 is too small","2 is too small","3 is too small","4 is too small"] lens-errors See also PFind the first element of a traversal; or return all errors found along the way.<preexamine (traversed . fizzleWhen ["odd"] odd) [1, 2, 3, 4] Success 2^preexamine (traversed . fizzleWithWhen (\s -> [show s <> " is too small"]) (<10)) [1, 2, 3, 4]MFailure ["1 is too small","2 is too small","3 is too small","4 is too small"] lens-errorsOperator alias of 'trySetdSet the focus of a lens/traversal. Returns a monoidal summary of failures or the altered structure.U("hi", [1, 2, 3, 4]) & _2 . ix 1 . fizzleWhen ["shouldn't fail"] (const False) .&~ 42Success ("hi",[1,42,3,4])I("hi", [1, 2, 3, 4]) & _2 . ix 1 . fizzleWithWhen (\n -> [n]) even .&~ 42 Failure [2] lens-errors See also dSet the focus of a lens/traversal. Returns a monoidal summary of failures or the altered structure.XtrySet (_2 . ix 1 . fizzleWhen ["shouldn't fail"] (const False)) 42 ("hi", [1, 2, 3, 4])Success ("hi",[1,42,3,4])MtrySet (_2 . ix 1 . fizzleWithWhen (\n -> [n]) even) 42 ("hi", [1, 2, 3, 4]) Failure [2] lens-errorsOperator alias of gModify the focus of a lens/traversal. Returns a monoidal summary of failures or the altered structure.^("hi", [1, 2, 3, 4]) & _2 . traversed . fizzleWhen ["shouldn't fail"] (const False) %&~ (*100) Success ("hi",[100,200,300,400])R("hi", [1, 2, 3, 4]) & _2 . traversed . fizzleWithWhen (\n -> [n]) even %&~ (*100) Failure [2,4] lens-errors See also gModify the focus of a lens/traversal. Returns a monoidal summary of failures or the altered structure.etryModify (_2 . traversed . fizzleWhen ["shouldn't fail"] (const False)) (*100) ("hi", [1, 2, 3, 4]) Success ("hi",[100,200,300,400])YtryModify (_2 . traversed . fizzleWithWhen (\n -> [n]) even) (*100) ("hi", [1, 2, 3, 4]) Failure [2,4] lens-errorsOperator alias of †Modify the focus of a lens/traversal with a function which may fail. Returns a monoidal summary of failures or the altered structure.1The definition of this function is actually just: (%%&~) = (%%~)VBut this combinator is provided for discoverability, completeness, and hoogle-ability.]("hi", [1, 2, 3, 4]) & _2 . traversed . fizzleWithWhen (\n -> [n]) even %%&~ Success . (*100) Failure [2,4]P("hi", [1, 2, 3, 4]) & _2 . traversed %%&~ (\n -> Failure [show n <> " failed"])5Failure ["1 failed","2 failed","3 failed","4 failed"] lens-errors See also †Modify the focus of a lens/traversal with a function which may fail. Returns a monoidal summary of failures or the altered structure.etryModify' (_2 . traversed . fizzleWithWhen (\n -> [n]) even) (Success . (*100)) ("hi", [1, 2, 3, 4]) Failure [2,4]VtryModify' (_2 . traversed) (\n -> Failure [show n <> " failed"]) ("hi", [1, 2, 3, 4])5Failure ["1 failed","2 failed","3 failed","4 failed"]  lens-errorsËAdjust any errors which occur in the following branch. Note that we can't change the error type, but this can be helpful for adding context to errors if they occur at a position without enough context.*This is does nothing when no errors occur.€[1, 2, 3, 4 :: Int] ^&.. traversed . fizzleWhen ["got 4"] (== 4) . adjustingErrors (fmap (<> "!")) . fizzleWhen ["got 3"] (== 3)(["got 3!","got 4"],[1,2])! lens-errorsÿAdjust any errors which occur in the following branch, using the value available at the current position to add context.. Note that we can't change the error type, but this can be helpful for adding context to errors if they occur at a position without enough context.*This is does nothing when no errors occur.œ[1, 2, 3, 4 :: Int] ^&.. traversed . fizzleWhen ["got 4"] (== 4) . adjustingErrorsWith (\n -> fmap (\e -> show n <> ": " <> e)) . fizzleWhen ["fail"] (== 3)(["3: fail","got 4"],[1,2]))&'()*+,-./01  !  ! 888888Safet23456789:      !"#$%&'(&')*+,*-./01/02/03/04/05/06/07/08/09/0:/0;/0<=>?@ABCDE*lens-errors-0.2.2.0-36WHOme0ACf1Qe0dqDV1nP$Control.Lens.Error.Internal.LensFailControl.Lens.ErrorPaths_lens_errorsLensFailfizzle alterErrors joinErrors$fLensFaileValidation$fLensFaileEither$fLensFaileConst$fLensFaileConst0$fLensFaileConst1Fizzler'Fizzlerfizzler fizzleWhen fizzleUnlessmaybeFizzleWithfizzleWithWhenfizzleWithUnless fizzleWithorFizzle orFizzleWith^&.^&..examine examineList^&? preexamine.&~trySet%&~ tryModify%%&~ tryModify'adjustingErrorsadjustingErrorsWithbase GHC.MaybeJustNothing lens-4.17-EALdarGCXihHZl8pEd1LaEControl.Lens.Getter^.Control.Lens.Fold^.."either-5.0.1-LldBQXESVOwBr5xWxKE0jData.Either.Validationealtvapmapmvap _ValidationeitherToValidationvalidationToEither_Success_Failure ValidationFailureSuccessversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName