Skip to content

Commit

Permalink
Merge pull request #242 from spl/patch-1
Browse files Browse the repository at this point in the history
Fix documentation
  • Loading branch information
snoyberg committed Apr 1, 2014
2 parents 09ea609 + 79dc886 commit 57fd84e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mime-types/Network/Mime.hs
Expand Up @@ -49,9 +49,9 @@ mimeByExt mm def =
defaultMimeLookup :: FileName -> MimeType
defaultMimeLookup = mimeByExt defaultMimeMap defaultMimeType

-- | Get a list of all of the file name extensions from a piece.
-- | Get a list of all of the file name extensions.
--
-- > pieceExtensions "foo.tar.gz" == ["tar.gz", "gz"]
-- > fileNameExtensions "foo.tar.gz" == ["tar.gz", "gz"]
fileNameExtensions :: FileName -> [Extension]
fileNameExtensions =
go . T.toLower . dropToExt
Expand Down

0 comments on commit 57fd84e

Please sign in to comment.