Commits

Maxime Henrion committed 9443c2d

Import of the 1.0.4 release.

Comments (0)

Files changed (3)

 -- 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

 --
 -- 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.
 Name:		bsd-sysctl
-Version:	1.0.3
+Version:	1.0.4
 License-File:	LICENSE
 License:	BSD3
 Author:		Maxime Henrion
   .
   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