Created
June 30, 2017 17:30
-
-
Save furu/c9cf85b6396d2559fceeb502acb9a744 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{-# LANGUAGE OverloadedStrings #-} | |
import qualified Data.ByteString.Lazy.Char8 as L8 | |
import Network.HTTP.Simple | |
main :: IO () | |
main = do | |
resp <- httpLBS "https://httpbin.org/get?query=hello world" | |
L8.putStrLn $ getResponseBody resp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment