Skip to content

Instantly share code, notes, and snippets.

View kevbradwick's full-sized avatar

Kevin Bradwick kevbradwick

  • South Wales, UK
View GitHub Profile
@owainlewis
owainlewis / Example.hs
Last active June 1, 2020 20:30
Haskell HTTP GET request example
module Example () where
import Network.HTTP
-- Non HTTPS
-- 1. Perform a basic HTTP get request and return the body
get :: String -> IO String
get url = simpleHTTP (getRequest url) >>= getResponseBody