Created
January 5, 2012 19:37
-
-
Save aluink/1566827 to your computer and use it in GitHub Desktop.
aluink
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------ | |
-- | Handles package uploads | |
storeUploadedFile :: AppHandler () | |
storeUploadedFile = do | |
res <- handleFileUploads | |
tmpUploadDir | |
defaultUploadPolicy | |
(\_ -> allowWithMaximumSize maxUploadSize) | |
(mapM copyUploadedFile) | |
let str = concat $ map (show | |
. pkgName | |
. package | |
. packageDescription | |
. pkgDesc | |
) | |
$ catMaybes res | |
writeText $ T.pack str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment