Skip to content

Commit

Permalink
Support the return of an IO Status from both uploadImage and uploadIm…
Browse files Browse the repository at this point in the history
…ageWithAttr
  • Loading branch information
killerswan committed May 2, 2012
1 parent fd9e456 commit 2142b90
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions upload.hs
Expand Up @@ -100,10 +100,12 @@ main =

do
token <- readToken (tokenFile opts)
case coord opts
of Nothing -> uploadImage token (status opts) (image opts)
Just latlon -> uploadImageWithAttr token (status opts) (image opts)
[ DisplayCoords
, LatLon (fst latlon) (snd latlon)
]
new <- case coord opts
of Nothing -> uploadImage token (status opts) (image opts)
Just latlon -> uploadImageWithAttr token (status opts) (image opts)
[ DisplayCoords
, LatLon (fst latlon) (snd latlon)
]

print new

0 comments on commit 2142b90

Please sign in to comment.