Commit 1a6709bb authored by Nicolas Pouillard's avatar Nicolas Pouillard

where->let

parent e102ceaa
......@@ -435,11 +435,12 @@ addWithFile cid i f =
addCorpusWithForm :: GargServer New.AddWithForm
addCorpusWithForm cid =
serveJobsAPI $
JobFunction (\i log -> New.addToCorpusWithForm cid i log')
where
log' x = do
printDebug "addCorpusWithForm" x
liftIO $ log x
JobFunction (\i log ->
let
log' x = do
printDebug "addCorpusWithForm" x
liftIO $ log x
in New.addToCorpusWithForm cid i log')
addAnnuaireWithForm :: GargServer Annuaire.AddWithForm
addAnnuaireWithForm cid =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment