From 35f0f40cfabeb49b468c6ae3c68fedded145a022 Mon Sep 17 00:00:00 2001 From: Don Stewart Date: Fri, 4 Jan 2008 16:23:04 -0800 Subject: Move MIME stuff into proper Codec.* namespace. Add copyrights where missing. --- MIME/QuotedPrintable.hs | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 MIME/QuotedPrintable.hs (limited to 'MIME/QuotedPrintable.hs') diff --git a/MIME/QuotedPrintable.hs b/MIME/QuotedPrintable.hs deleted file mode 100644 index 514ce4e..0000000 --- a/MIME/QuotedPrintable.hs +++ /dev/null @@ -1,12 +0,0 @@ -module MIME.QuotedPrintable where - -import Data.Char - -decode :: String -> String -decode "" = "" -decode ('=':x1:x2:xs) - | isHexDigit x1 && isHexDigit x2 = - chr (digitToInt x1 * 16 + digitToInt x2) : decode xs -decode ('=':xs) = '=':decode xs - -- make it explicit that we propagate other '=' occurrences. -decode (x1:xs) = x1:decode xs -- cgit v1.2.3