applicative-extras 0.1.1 → 0.1.2
raw patch · 2 files changed
+3/−6 lines, 2 files
Files
Control/Applicative/Error.hs view
@@ -20,11 +20,8 @@ Failure msgs' <*> Success _ = Failure msgs' Success f <*> Success x = Success (f x) --- | Tries to read a value-maybeRead :: Read a - => String -- | The value- -> String -- | The error message- -> Failing a+-- | Tries to read a value. Shows an error message when reading fails.+maybeRead :: Read a => String -> String -> Failing a maybeRead s msg | [(i, _)] <- readsPrec 0 s = Success i | otherwise = Failure [msg]
applicative-extras.cabal view
@@ -1,5 +1,5 @@ Name: applicative-extras-Version: 0.1.1+Version: 0.1.2 Synopsis: Instances for Applicative Description: Some instances for Applicative and type-level composition. Category: Control