diff --git a/Language/Haskell/Homplexity/CodeFragment.hs b/Language/Haskell/Homplexity/CodeFragment.hs
--- a/Language/Haskell/Homplexity/CodeFragment.hs
+++ b/Language/Haskell/Homplexity/CodeFragment.hs
@@ -157,6 +157,12 @@
   matchAST = Just 
   fragmentName (Module _ (Just (ModuleHead _ (ModuleName _ theName) _ _)) _ _ _) = 
                 "module " ++ theName
+  fragmentName (Module _  Nothing                                         _ _ _) = 
+                "<unnamed module>"
+  fragmentName (XmlPage   _ (ModuleName _ theName) _ _ _ _ _)            = "XML page " ++ theName
+  fragmentName (XmlHybrid _ (Just (ModuleHead _ (ModuleName _ theName) _ _))
+                          _ _ _ _ _ _ _) = "module with XML " ++ theName
+  fragmentName (XmlHybrid _  Nothing                  _ _ _ _ _ _ _    ) = "<unnamed module with XML>"
 
 -- | Proxy for passing @Module@ type as an argument.
 moduleT :: Proxy (Module SrcLoc)
diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,8 @@
 Changelog
 =========
+    0.4.4.1  Nov 2018
+        * Fix crashes on unnamed modules, and XML pages
+
     0.4.4.0  Nov 2018
         * Relax dependencies for GHC up to 8.6
         * Build as a library
diff --git a/homplexity.cabal b/homplexity.cabal
--- a/homplexity.cabal
+++ b/homplexity.cabal
@@ -1,5 +1,5 @@
 name:                homplexity
-version:             0.4.4.0
+version:             0.4.4.1
 synopsis:            Haskell code quality tool
 description:         Homplexity aims to measure code complexity,
                      warning about fragments that might have higher defect probability
