Skip to content

Instantly share code, notes, and snippets.

@furu
Created June 30, 2017 17:30
Show Gist options
  • Save furu/c9cf85b6396d2559fceeb502acb9a744 to your computer and use it in GitHub Desktop.
Save furu/c9cf85b6396d2559fceeb502acb9a744 to your computer and use it in GitHub Desktop.
{-# 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