Commits

Luke Plant committed 887bd4e

Removed unnecessary usage of UTF8 library

  • Participants
  • Parent commits 349fe4c

Comments (0)

Files changed (1)

 import qualified Data.ByteString.Char8 as B
-import qualified Data.ByteString.UTF8 as UTF8
 import qualified Category as C
 import qualified Post as P
 import qualified Settings
                               toSql $ C.slug c2]
                        return c2
 
-slugFromTitle title = map toLower $ UTF8.toString $
+slugFromTitle title = map toLower $ B.unpack $
                       regexReplace (B.pack "-+$") (B.pack "") $
                       regexReplace (B.pack "[^A-Za-z0-9]+") (B.pack "-") (B.pack title)