diff --git a/Text/XML/LibXML/Enumerator.hs b/Text/XML/LibXML/Enumerator.hs
--- a/Text/XML/LibXML/Enumerator.hs
+++ b/Text/XML/LibXML/Enumerator.hs
@@ -60,6 +60,7 @@
 	set SAX.parsedCharacters (addEvent . X.EventContent . X.ContentText . fromStrict)
 	set SAX.parsedComment (addEvent . X.EventComment . fromStrict)
 	set SAX.parsedInstruction (addEvent . X.EventInstruction)
+	set SAX.parsedDoctype (addEvent . X.EventDoctype)
 
 parseBytesIO :: MonadIO m => Maybe T.Text -> E.Enumeratee B.ByteString X.Event m b
 parseBytesIO = parseIO SAX.parseBytes
diff --git a/libxml-enumerator.cabal b/libxml-enumerator.cabal
--- a/libxml-enumerator.cabal
+++ b/libxml-enumerator.cabal
@@ -1,5 +1,5 @@
 name: libxml-enumerator
-version: 0.4.0.2
+version: 0.4.0.3
 synopsis: Enumerator-based API for libXML's SAX interface
 license: MIT
 license-file: license.txt
@@ -19,15 +19,19 @@
   location: http://john-millikin.com/software/libxml-enumerator/
 
 library
-  ghc-options: -Wall -fno-warn-unused-do-bind
+  if true
+    ghc-options: -Wall
 
+  if impl(ghc >= 6.11)
+    ghc-options: -fno-warn-unused-do-bind
+
   build-depends:
       base >= 4 && < 5
     , bytestring >= 0.9 && < 0.10
     , text >= 0.7 && < 0.11
     , enumerator >= 0.4 && < 0.5
     , transformers >= 0.2 && < 0.3
-    , libxml-sax >= 0.6 && < 0.7
+    , libxml-sax >= 0.6.1 && < 0.7
     , xml-types >= 0.1.1 && < 0.2
 
   exposed-modules:
