packages feed

mbox 0.3 → 0.3.1

raw patch · 3 files changed

+6/−6 lines, 3 filesdep +time-locale-compatdep −old-localedep ~timePVP ok

version bump matches the API change (PVP)

Dependencies added: time-locale-compat

Dependencies removed: old-locale

Dependency ranges changed: time

API changes (from Hackage documentation)

Files

Data/MBox.hs view
@@ -20,10 +20,10 @@ import Prelude hiding (tail, init, last, minimum, maximum, foldr1, foldl1, (!!), read) import Control.Arrow import Data.Char-import System.Locale import Data.Time import Safe import qualified Data.Text.Lazy as T+import qualified Data.Time.Locale.Compat as LC  type MBox = [Message] data Message = Message {fromLine :: T.Text, headers :: [Header], body :: T.Text} deriving (Read, Show)@@ -31,7 +31,7 @@  -- | Reads a date header as a UTCTime parseDateHeader :: T.Text -> Maybe UTCTime-parseDateHeader = parseTime defaultTimeLocale  "%A, %B %e, %Y %l:%M %p" . T.unpack+parseDateHeader = parseTime LC.defaultTimeLocale  "%A, %B %e, %Y %l:%M %p" . T.unpack  -- | Attempts to retrieve the contents of a forwarded message from an enclosing message. parseForward :: Message -> Message
Data/MBox/String.hs view
@@ -19,9 +19,9 @@ import Control.Arrow import Data.List (isPrefixOf) import Data.Char-import System.Locale import Data.Time import Safe+import qualified Data.Time.Locale.Compat as LC  type MBox = [Message] data Message = Message {fromLine :: String, headers :: [Header], body :: String} deriving (Read, Show)@@ -29,7 +29,7 @@  -- | Reads a date header as a UTCTime parseDateHeader :: String -> Maybe UTCTime-parseDateHeader = parseTime defaultTimeLocale  "%A, %B %e, %Y %l:%M %p"+parseDateHeader = parseTime LC.defaultTimeLocale  "%A, %B %e, %Y %l:%M %p"  -- | Attempts to retrieve the contents of a forwarded message from an enclosing message. parseForward :: Message -> Message
mbox.cabal view
@@ -1,5 +1,5 @@ name:                mbox-version:             0.3+version:             0.3.1 synopsis:            Read and write standard mailbox files. description:         Read and write standard mailbox (mboxrd) files. category:            system, text, data@@ -13,7 +13,7 @@ Cabal-Version:       >= 1.6  library-  build-depends:     base >= 4, base < 6, safe, time < 1.5, old-locale, text+  build-depends:     base >= 4, base < 6, safe, time < 1.6, time-locale-compat, text   exposed-modules:   Data.MBox, Data.MBox.String   ghc-options:       -Wall