Skip to content

Commit

Permalink
Comment.
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
23Skidoo committed May 11, 2016
1 parent cc1ce86 commit 2c08bc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cabal-install/Distribution/Client/Upload.hs
Expand Up @@ -30,6 +30,10 @@ import Data.Char (isSpace)

type Auth = Maybe (String, String)

-- > stripExtensions ["tar", "gz"] "foo.tar.gz"
-- Just "foo"
-- > stripExtensions ["tar", "gz"] "foo.gz.tar"
-- Nothing
stripExtensions :: [String] -> FilePath -> Maybe String
stripExtensions exts path = foldM f path (reverse exts)
where
Expand Down

0 comments on commit 2c08bc7

Please sign in to comment.