packages feed

dhscanner-ast 1.1.4 → 1.1.5

raw patch · 2 files changed

+7/−5 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Ast: ImportLocalContent :: FilePath -> ImportLocalContent
- Ast: newtype ImportLocalContent
+ Ast: ImportLocalDir :: FilePath -> ImportLocalContent
+ Ast: ImportLocalFile :: FilePath -> ImportLocalContent
+ Ast: data ImportLocalContent

Files

dhscanner-ast.cabal view
@@ -22,7 +22,7 @@     and models both of them as plain sequential code blocks. Every file has exactly one ast that represents it.
     Non Haskell parogrammers note: The ast is /immutable/ (like everything else in Haskell ...)
 
-version:            1.1.4
+version:            1.1.5
 license:            GPL-3.0-only
 license-file:       LICENSE
 author:             OrenGitHub
@@ -34,7 +34,7 @@ 
 common ghc_options
 
-    ghc-options: -Wall -O2
+    ghc-options: -Wall -Werror=incomplete-patterns -O2
 
 library
 
src/Ast.hs view
@@ -10,8 +10,7 @@ --
 --     * first step for /static code analysis/ 
 --     * part of the [dhscanner](https://github.com/OrenGitHub/dhscanner) framework for
---       CI\/CD container security checks 🔒 and
---       [PII](https://en.wikipedia.org/wiki/Personal_data) leaks detection 🪪
+--       CI\/CD SAST security checks 🔒
 --
 -- * As part of the [dhscanner](https://github.com/OrenGitHub/dhscanner) framework:
 --
@@ -366,7 +365,10 @@    deriving ( Show, Eq, Ord, Generic, ToJSON, FromJSON )
 
 -- | Filename or directory
-newtype ImportLocalContent = ImportLocalContent FilePath deriving ( Show, Eq, Ord, Generic, ToJSON, FromJSON )
+data ImportLocalContent
+   = ImportLocalFile FilePath
+   | ImportLocalDir FilePath
+   deriving ( Show, Eq, Ord, Generic, ToJSON, FromJSON )
 
 -- |
 -- Names that do not exist as directories in the repo