Skip to content

Instantly share code, notes, and snippets.

@minddnim
Created December 20, 2013 22:35
Show Gist options
  • Save minddnim/8062706 to your computer and use it in GitHub Desktop.
Save minddnim/8062706 to your computer and use it in GitHub Desktop.
import Network.HTTP
main :: IO()
main = do
htmlSrc <- openURL "http://flowermaster.web.fc2.com/lrnanido_sara.html"
print $ lines htmlSrc
aaa <- getLine
print aaa
openURL :: String -> IO String
openURL x = getResponseBody =<< simpleHTTP (getRequest x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment