-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support npm-style version ranges? #91
Comments
Btw, |
That's true. I'm more interested in the tilde and caret specifiers. |
I'm willing to implement this but I want to make sure it's a welcome change, first. What do you think, @sol? |
Skimming through the documentation, I don't think you can translate this to Haskell directly. It seems that Node always uses major, minor, patch. This is not true for the Haskell. Firstly the pvp defines the major version as So if somebody thinks it's worth working on this, the first step would probably be to write down how exactly we would translate this to Haskell. It may also make sense to consider each feature individually. E.g. I think version ranges could be nice, if we can figure out the semantics. On the other hand I'm not excited about |
Hackage does allow e.g. I think the overall ideas do translate directly to Haskell, we'd just have to account for major versions taking up two slots rather than one. Agreed that |
IIRC to |
I have some similar resemblance of something fishy there Sent from mobile
|
As much as I like this idea, I think it's not straight forward to apply this to Cabal (see the comments of @soenkehahn an me above). If somebody still wants aspects of this to happen (e.g. version ranges), then please feel free to open individual tickets for that. |
I would love to be able to specify version numbers using npm's advanced range syntax. Stuff like
1.2.x
,~1.2.3
, and^1.2.3
. I think the semver-range package can represent them, but I haven't ever played with it.The text was updated successfully, but these errors were encountered: