mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 15:36:41 +01:00
feat: implement haskell support (#1096)
This commit is contained in:
@@ -23,6 +23,7 @@ const (
|
||||
Dotnet Language = "dotnet"
|
||||
Swift Language = "swift"
|
||||
CPP Language = "c++"
|
||||
Haskell Language = "haskell"
|
||||
)
|
||||
|
||||
// AllLanguages is a set of all programming languages detected by syft.
|
||||
@@ -38,6 +39,7 @@ var AllLanguages = []Language{
|
||||
Dotnet,
|
||||
Swift,
|
||||
CPP,
|
||||
Haskell,
|
||||
}
|
||||
|
||||
// String returns the string representation of the language.
|
||||
@@ -78,6 +80,8 @@ func LanguageByName(name string) Language {
|
||||
return Swift
|
||||
case packageurl.TypeConan, string(CPP):
|
||||
return CPP
|
||||
case packageurl.TypeHackage, string(Haskell):
|
||||
return Haskell
|
||||
default:
|
||||
return UnknownLanguage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user