私は単純なHTTPを使用してHTTPクラスの応答タイプだと思いますから応答コード(200,404など)を取得しようとしていますこれまで:
--how to get the http response Int from response
getStatusCode response = print 0
--this works...
--- othercode ---
rsp <- simpleHTTP (defaultGETRequest_ clean_uri)
file_buffer <- getResponseBody(rsp)
--this fails
response = (getStatusCode rsp)