Created
October 29, 2012 01:42
-
-
Save niteria/3970925 to your computer and use it in GitHub Desktop.
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
module Main where | |
import qualified Data.ByteString.Lazy.UTF8 as L | |
import Data.Char | |
import Network.HTTP.Enumerator (simpleHttp) | |
import System.Environment | |
dupa :: String -> String | |
dupa [] = undefined | |
dupa (a:[]) = undefined | |
main :: IO () | |
main = do | |
(url:_) <- getArgs | |
page <- simpleHttp url | |
putStr (L.toString page) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment