diff options
author | odr <olshanskydr@gmail.com> | 2014-01-11 02:02:43 +0400 |
---|---|---|
committer | odr <olshanskydr@gmail.com> | 2014-01-11 02:02:43 +0400 |
commit | 4203423f5a55108d82ecd5f8e6c2b5da8fdc630d (patch) | |
tree | 17c4f3b166376bcdec7fbd51cd02bb12b938819e /Codec/MIME/Utils.hs | |
parent | 5c2f21e06ebc2c3be936efadfe92872fecd82db9 (diff) |
Text-based API
Diffstat (limited to 'Codec/MIME/Utils.hs')
-rw-r--r-- | Codec/MIME/Utils.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Codec/MIME/Utils.hs b/Codec/MIME/Utils.hs index 8606342..dd54860 100644 --- a/Codec/MIME/Utils.hs +++ b/Codec/MIME/Utils.hs @@ -18,10 +18,11 @@ module Codec.MIME.Utils import Codec.MIME.Type import Data.List ( find ) import Control.Monad ( msum ) +import Data.Text(Text) -- | Given a parameter name, locate it within a MIME value, -- returning the corresponding (sub) MIME value. -findMultipartNamed :: String -> MIMEValue -> Maybe MIMEValue +findMultipartNamed :: Text -> MIMEValue -> Maybe MIMEValue findMultipartNamed nm mv = case mime_val_content mv of Multi ms -> msum (map (findMultipartNamed nm) ms) |