Created
August 4, 2014 16:01
-
-
Save dennisvennink/e922c8c2a0f8e3ec9b53 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
#!/usr/bin/env runhaskell | |
import Data.Either (either) | |
import Network.HTTP (simpleHTTP, getRequest, rspBody) | |
main :: IO () | |
main = simpleHTTP (getRequest "http://www.wikipedia.org/") >>= print . either show rspBody |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment