Skip to content

Conversation

@blackheaven
Copy link
Collaborator

hsec-tools

  • Previous advisories are still valid

/cc @tchoutri

@blackheaven blackheaven linked an issue Nov 29, 2025 that may be closed by this pull request
Comment on lines 59 to 60
= Hackage PackageName
| Repository RepositoryURL RepositoryName PackageName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you want to make Hackage more special than the others. Maybe a Pattern to build a Hackage package with pre-filled values would be useful, but I don't think it should be its own constructor.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 64 to 66
newtype PackageName
= PackageName { unPackageName :: Text }
deriving stock (Eq, Ord, Show)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

hackage = Repository (RepositoryURL "https://hackage.haskell.org") (RepositoryName "hackage")

newtype RepositoryURL
= RepositoryURL { unRepositoryURL :: Text }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this shouldn't be a proper URI or URL type?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point it's not that important, that being said, if you have any good library to integrate, I'd be grateful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for other namespaces

2 participants