| |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| Synopsis | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| Documentation | |||||||||||||||||||||||||||||||||||
| data Hopefully a | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| data PatchInfoAnd p | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| data WPatchInfo | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| unWPatchInfo :: WPatchInfo -> PatchInfo | |||||||||||||||||||||||||||||||||||
| compareWPatchInfo :: WPatchInfo -> WPatchInfo -> EqCheck | |||||||||||||||||||||||||||||||||||
| piap :: PatchInfo -> Named p -> PatchInfoAnd p | |||||||||||||||||||||||||||||||||||
| piap i p creates a PatchInfoAnd containing p with info i. | |||||||||||||||||||||||||||||||||||
| n2pia :: Named p -> PatchInfoAnd p | |||||||||||||||||||||||||||||||||||
| n2pia creates a PatchInfoAnd representing a Named patch. | |||||||||||||||||||||||||||||||||||
| patchInfoAndPatch :: PatchInfo -> Hopefully (Named p) -> PatchInfoAnd p | |||||||||||||||||||||||||||||||||||
| conscientiously :: (Doc -> Doc) -> PatchInfoAnd p -> Named p | |||||||||||||||||||||||||||||||||||
| conscientiously er hp tries to extract a patch from a PatchInfoAnd. If it fails, it applies the error handling function er to a description of the patch info component of hp. | |||||||||||||||||||||||||||||||||||
| hopefully :: PatchInfoAnd p -> Named p | |||||||||||||||||||||||||||||||||||
| hopefully hp tries to get a patch from a PatchInfoAnd value. If it fails, it outputs an error "failed to read patch: <description of the patch>". We get the description of the patch from the info part of hp | |||||||||||||||||||||||||||||||||||
| info :: PatchInfoAnd p -> PatchInfo | |||||||||||||||||||||||||||||||||||
| winfo :: PatchInfoAnd p -> WPatchInfo | |||||||||||||||||||||||||||||||||||
| hopefullyM :: Monad m => PatchInfoAnd p -> m (Named p) | |||||||||||||||||||||||||||||||||||
| hopefullyM is a version of hopefully which calls fail in a monad instead of erroring. | |||||||||||||||||||||||||||||||||||
| createHashed :: String -> (String -> IO (Sealed a)) -> IO (Sealed (Hopefully a)) | |||||||||||||||||||||||||||||||||||
| extractHash :: PatchInfoAnd p -> Either (Named p) String | |||||||||||||||||||||||||||||||||||
| actually :: a -> Hopefully a | |||||||||||||||||||||||||||||||||||
| unavailable :: String -> Hopefully a | |||||||||||||||||||||||||||||||||||
| patchDesc :: forall p. PatchInfoAnd p -> String | |||||||||||||||||||||||||||||||||||
| Produced by Haddock version 2.5.0 |