[web-devel] Simple mime-type package

Michael Snoyman michael at snoyman.com
Wed Apr 21 12:56:11 EDT 2010


Hi all,

In Yesod, I have very modest needs when it comes to mime-types. Basically, I
want:

* a data type to represent mime-types
* convert a string to a mime-type
* convert a mime-type to a string
* determine mime-type of a file based on extension

I've stuck all this in a simple module: Web.Mime[1]. However, it seems like
this is a perfect candidate for a dedicated package. So I wanted to ask:

1) Is there a package out there- with minimal dependencies- that supplies
this functionality?
2) If not, would anyone else find it useful if I split this off into its own
package?

Michael

[1] http://github.com/snoyberg/yesod/blob/ver0.2/Web/Mime.hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/web-devel/attachments/20100421/8030d9f6/attachment.html


More information about the web-devel mailing list