digestive-functors 0.5.0.3 → 0.5.0.4
raw patch · 2 files changed
+6/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
digestive-functors.cabal view
@@ -1,5 +1,5 @@ Name: digestive-functors-Version: 0.5.0.3+Version: 0.5.0.4 Synopsis: A practical formlet library Description:
src/Text/Digestive/Util.hs view
@@ -5,8 +5,10 @@ --------------------------------------------------------------------------------+import Data.Maybe (listToMaybe)+++-------------------------------------------------------------------------------- -- | 'read' in the 'Maybe' monad. readMaybe :: Read a => String -> Maybe a-readMaybe str = case readsPrec 1 str of- [(x, "")] -> Just x- _ -> Nothing+readMaybe str = listToMaybe [x | (x, "") <- readsPrec 1 str]