Îõ³h&Žj Safe-Inferred \minicurl Curl handle.minicurl(Globally) initialize libcurl. Wrap your main in it: main :: IO () main =  $ do ... minicurlCreate curl handle.Note: you can reuse  handle for multiple requests.minicurlPerform request.The resulting ’ will be exactly of the size specified by size argument. If response is smaller, the rest will be zeros; if larger the response will be truncated (not read further)! It's your job to verify that transport was successful, e.g. if you know the expected hash of the download.& is thread-safe (underlying handle in  is wrapped in ).minicurlGet (last) response code.minicurl CURL handleminicurlURLminicurlExpected size of the output.  minicurl-0-inplaceMiniCurlCURL withLibcurlwithCurl curlPerformcurlResponseCodebytestring-0.11.3.1Data.ByteString.Internal ByteStringbaseGHC.MVarMVar