curlhs 0.0.1 → 0.0.2
raw patch · 4 files changed
+7/−12 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Network/Curlhs/Base.hsc +2/−7
- Network/Curlhs/Errors.hsc +2/−2
- Network/Curlhs/Setopt.hsc +2/−2
- curlhs.cabal +1/−1
Network/Curlhs/Base.hsc view
@@ -37,16 +37,11 @@ module Network.Curlhs.Base where -import Foreign.C.Types (CChar, CInt, CUInt, CLong, CLLong, CDouble)-import Foreign.C.Types (CSize, CFile, CTime)-import Foreign.Ptr (Ptr, FunPtr, castPtr)+import Foreign.C.Types import Foreign.Storable (Storable (..))+import Foreign.Ptr (Ptr, FunPtr, castPtr) import Control.Applicative ((<$>), (<*>))--#if defined(WIN32) && !defined(__LWIP_OPT_H__)-import Foreign.C.Types (CUIntPtr)-#endif -------------------------------------------------------------------------------
Network/Curlhs/Errors.hsc view
@@ -40,7 +40,7 @@ --------------------------------------------------------------------------------#define hsc_curlcode(code) printf(#code " -> c" #code);+#{let curlcode code = #code " -> c" #code} fromCURLcode :: CURLcode -> CCURLcode fromCURLcode x = case x of@@ -127,7 +127,7 @@ --------------------------------------------------------------------------------#define hsc_ccurlcode(code) printf("| x == c" #code " = " #code);+#{let ccurlcode code = "| x == c" #code " = " #code} fromCCURLcode :: CCURLcode -> CURLcode fromCCURLcode x
Network/Curlhs/Setopt.hsc view
@@ -60,7 +60,7 @@ --------------------------------------------------------------------------------#define hsc_setopt(opt, fun) printf(#opt " x -> " #fun " c" #opt " x");+#{let setopt opt, fun = #opt " x -> " #fun " c" #opt " x"} ------------------------------------------------------------------------------- -- | Set options for a curl easy handle@@ -334,7 +334,7 @@ --------------------------------------------------------------------------------#define hsc_option(opt) printf(#opt " -> c" #opt);+#{let option opt = #opt " -> c" #opt} class CURLenum a where fromCURLenum :: a -> CLong
curlhs.cabal view
@@ -1,5 +1,5 @@ name: curlhs-version: 0.0.1+version: 0.0.2 synopsis: bindings to libcurl, the multiprotocol file transfer library author: Krzysztof Kardzis <kkardzis@gmail.com> maintainer: Krzysztof Kardzis <kkardzis@gmail.com>