> What happens if one is using HTTP rather than curl?
Something like
Right res@Response { rspCode = (2,0,0) } -> return (rspBody res)
Right Response { rspCode = (x,y,z) } ->
debugFail $ "HTTP " ++ show x ++ show y ++ show z ++ " error getting
" ++ show uri
That is, it should be OK. Didn't test it, though.