Skip to content

Instantly share code, notes, and snippets.

@niteria
Created October 29, 2012 01:41
Show Gist options
  • Save niteria/3970923 to your computer and use it in GitHub Desktop.
Save niteria/3970923 to your computer and use it in GitHub Desktop.
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