summaryrefslogtreecommitdiffstats
path: root/Codec/MIME/Utils.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Codec/MIME/Utils.hs')
-rw-r--r--Codec/MIME/Utils.hs3
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)