fix: improve haskell classifiers (#4793)

Signed-off-by: witchcraze <witchcraze@gmail.com>
This commit is contained in:
witchcraze
2026-04-20 12:23:35 -04:00
committed by GitHub
parent 66ba575ae2
commit ff6c34de7e
6 changed files with 76 additions and 4 deletions
@@ -1364,6 +1364,28 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
Metadata: metadata("deno-binary"),
},
},
{
logicalFixture: "haskell-ghc/7.10.3/linux-amd64",
expected: pkg.Package{
Name: "haskell/ghc",
Version: "7.10.3",
Type: "binary",
PURL: "pkg:generic/haskell/ghc@7.10.3",
Locations: locations("ghc"),
Metadata: metadata("haskell-ghc-binary"),
},
},
{
logicalFixture: "haskell-ghc/8.10.4/linux-amd64",
expected: pkg.Package{
Name: "haskell/ghc",
Version: "8.10.4",
Type: "binary",
PURL: "pkg:generic/haskell/ghc@8.10.4",
Locations: locations("ghc"),
Metadata: metadata("haskell-ghc-binary"),
},
},
{
logicalFixture: "haskell-ghc/9.6.5/linux-amd64",
expected: pkg.Package{
@@ -1375,6 +1397,17 @@ func Test_Cataloger_PositiveCases(t *testing.T) {
Metadata: metadata("haskell-ghc-binary"),
},
},
{
logicalFixture: "haskell-cabal/1.22.6.0/linux-amd64",
expected: pkg.Package{
Name: "haskell/cabal",
Version: "1.22.6.0",
Type: "binary",
PURL: "pkg:generic/haskell/cabal@1.22.6.0",
Locations: locations("cabal"),
Metadata: metadata("haskell-cabal-binary"),
},
},
{
logicalFixture: "haskell-cabal/3.10.3.0/linux-amd64",
expected: pkg.Package{