You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting: parsing "template-haskell installed" with readUserConstraint returns UserConstraintInstalled (PackageName "template-haskell"), but parsing the same string with parse returns [UserConstraintInstalled (PackageName "template-haskell"),UserConstraintFlags (PackageName "template-haskell") [(FlagName "installed",True)]].
Looks like the ambiguity was always there, and I just triggered it by using parseCommaList parse.
The bug was caused by missing parentheses in the UserConstraint parser: +++ and <++ are right-associative, so a +++ b +++ c <++ d is parsed as (a +++ (b +++ (c <++ d))).
I have the following in my .cabal/config:
When I do a
cabal sandbox-init
I get acabal.sandbox.config
containing the following lines:Then
cabal sandbox-configure
says:With a constraint other than
installed
(specifying the version, for example), it works fine.The text was updated successfully, but these errors were encountered: