diff --git a/README.md b/README.md
new file mode 100644
--- /dev/null
+++ b/README.md
@@ -0,0 +1,14 @@
+Posix-Timer
+===========
+
+[![Build](https://github.com/mvv/posix-timer/actions/workflows/ci.yml/badge.svg)](https://github.com/mvv/posix-timer/actions/workflows/ci.yml) [![Hackage](https://img.shields.io/hackage/v/posix-timer.svg)](http://hackage.haskell.org/package/posix-timer)
+
+This package provides bindings to POSIX clock and timer functions
+that are missing from `System.Posix.Time`.
+
+Installation
+------------
+The usual:
+
+	$ cabal install
+
diff --git a/posix-timer.cabal b/posix-timer.cabal
--- a/posix-timer.cabal
+++ b/posix-timer.cabal
@@ -1,5 +1,5 @@
 Name: posix-timer
-Version: 0.3.0.1
+Version: 0.3.0.2
 Category: System
 Stability: experimental
 Synopsis: Bindings to POSIX clock and timer functions.
@@ -15,19 +15,24 @@
 License: BSD3
 License-File: LICENSE
 
-Cabal-Version: >= 1.6.0
-Build-Type: Simple
+Extra-Source-Files:
+  include/posix-timer.macros.h
+  README.md
 
-Extra-Source-Files: include/posix-timer.macros.h
+Tested-With: GHC==7.0.4, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, GHC==7.10.3,
+             GHC==8.0.2, GHC==8.2.2, GHC==8.4.4, GHC==8.6.5, GHC==8.8.4,
+             GHC==8.10.7, GHC==9.0.2, GHC==9.2.8, GHC==9.4.8, GHC==9.6.6,
+             GHC==9.8.4, GHC==9.10.1, GHC==9.12.1
 
-Tested-With: GHC==7.0.4, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4,
-             GHC==7.10.3, GHC==8.0.2, GHC==8.2.2
+Cabal-Version: >= 1.10.0
+Build-Type: Simple
 
 Source-Repository head
   Type: git
   Location: https://github.com/mvv/posix-timer.git
 
 Library
+  Default-Language: Haskell2010
   Build-Depends: base < 5, unix, transformers-base >= 0.3
   Hs-Source-Dirs: src
   Include-Dirs: include
diff --git a/src/System/Posix/Clock.hsc b/src/System/Posix/Clock.hsc
--- a/src/System/Posix/Clock.hsc
+++ b/src/System/Posix/Clock.hsc
@@ -55,6 +55,7 @@
 #include <time.h>
 #include <HsBaseConfig.h>
 #include <posix-timer.macros.h>
+#include <stdio.h>
 
 #let alignment t = "%lu", (unsigned long) offsetof (struct { char x__; t (y__); }, y__)
 
diff --git a/src/System/Posix/Timer.hsc b/src/System/Posix/Timer.hsc
--- a/src/System/Posix/Timer.hsc
+++ b/src/System/Posix/Timer.hsc
@@ -34,6 +34,7 @@
 #include <time.h>
 #include <signal.h>
 #include <posix-timer.macros.h>
+#include <stdio.h>
 
 #let alignment t = "%lu", (unsigned long) offsetof (struct { char x__; t (y__); }, y__)
 
