Skip to content

Instantly share code, notes, and snippets.

@aluink
Created January 5, 2012 19:37
Show Gist options
  • Save aluink/1566827 to your computer and use it in GitHub Desktop.
Save aluink/1566827 to your computer and use it in GitHub Desktop.
aluink
------------------------------------------------------------------------------
-- | 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