Skip to content

Commit

Permalink
Hey! We're downloading a page!
Browse files Browse the repository at this point in the history
  • Loading branch information
bos committed Sep 7, 2011
1 parent 91097dd commit 888b050
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Download.hs
@@ -0,0 +1,5 @@
module Download where

import Network.HTTP.Enumerator

download url = simpleHttp url
3 changes: 3 additions & 0 deletions src/Main.hs
@@ -1,5 +1,8 @@
import System.Environment
import Download

main = do
args <- getArgs
putStrLn ("So! Your args are " ++ show args)
page <- download (head args)
print page
4 changes: 3 additions & 1 deletion strange-loop-2011.cabal
Expand Up @@ -7,4 +7,6 @@ executable strange-loop
hs-source-dirs: src
main-is: Main.hs

build-depends: base
build-depends:
base,
http-enumerator

0 comments on commit 888b050

Please sign in to comment.