bsd-sysctl 1.0.3 → 1.0.4
raw patch · 3 files changed
+7/−6 lines, 3 filesbuild-type:Customsetup-changedPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ System.BSD.Sysctl: instance SysctlKey String
+ System.BSD.Sysctl: sysctlNameToOid :: String -> IO OID
+ System.BSD.Sysctl: sysctlNameToOidArgs :: String -> [Int32] -> IO OID
Files
- Setup.hs +3/−2
- System/BSD/Sysctl.hsc +2/−2
- bsd-sysctl.cabal +2/−2
Setup.hs view
@@ -16,6 +16,7 @@ -- Horrible hack to force re-processing of the .hsc file. Otherwise -- the __HADDOCK__ macro doesn't end up being defined. removePreProcessedFiles :: FilePath -> IO ()-removePreProcessedFiles dir =+removePreProcessedFiles dir = do+ putStrLn $ "Trying to remove source in: " ++ dir removeFile (dir </> "System/BSD/Sysctl.hs")- `catch` \_ -> return ()+ `catch` \_ -> putStrLn "Could not find source file!" >> return ()
System/BSD/Sysctl.hsc view
@@ -22,8 +22,8 @@ -- -- On some platforms, there are sysctl nodes that accept parameters via -- additional components in the OID (see for instance the \"kern.proc.pid\"--- sysctl described in sysctl(3) on FreeBSD). The 'sysctlNameToOidArgs' makes--- it easy to query such nodes as well.+-- sysctl described in sysctl(3) on FreeBSD). The 'sysctlNameToOidArgs'+-- function makes it easy to query such nodes as well. -- -- Nodes may be queried either by their OID as a list of integers, by their -- binary OID for maximum speed, or by their names on platforms that support it.
bsd-sysctl.cabal view
@@ -1,5 +1,5 @@ Name: bsd-sysctl-Version: 1.0.3+Version: 1.0.4 License-File: LICENSE License: BSD3 Author: Maxime Henrion@@ -13,7 +13,7 @@ . It allows to read and write both basic sysctl types, as well as complex opaque types (typically C structures) described via Storable instances.-Build-Type: Simple+Build-Type: Custom Cabal-Version: >= 1.2 Tested-with: GHC ==6.10 Data-Files: demo/Demo.hsc demo/demo.cabal demo/demo.output demo/Setup.hs