[web-devel] Simple mime-type package
michael at snoyman.com
Thu Apr 22 11:59:30 EDT 2010
A quick look through the docs didn't find a similar module. Do you know
where in particular it might be? I'm not familiar with the gitit codebase at
On Wed, Apr 21, 2010 at 1:24 PM, Thomas Hartman <
thomashartman1 at googlemail.com> wrote:
> there's something like this in gitit I believe.
> On Wed, Apr 21, 2010 at 9:56 AM, Michael Snoyman <michael at snoyman.com>
> > 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. However, it seems
> > 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
> > package?
> > Michael
> >  http://github.com/snoyberg/yesod/blob/ver0.2/Web/Mime.hs
> > _______________________________________________
> > web-devel mailing list
> > web-devel at haskell.org
> > http://www.haskell.org/mailman/listinfo/web-devel
> Need somewhere to put your code? http://patch-tag.com
> Want to build a webapp? http://happstack.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-devel