homplexity 0.4.4.0 → 0.4.4.1
raw patch · 3 files changed
+10/−1 lines, 3 files
Files
- Language/Haskell/Homplexity/CodeFragment.hs +6/−0
- changelog.md +3/−0
- homplexity.cabal +1/−1
Language/Haskell/Homplexity/CodeFragment.hs view
@@ -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)
changelog.md view
@@ -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
homplexity.cabal view
@@ -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