Skip to content
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

Convert-from-nuget should simplify framework restrictions if possible #1159

Merged
merged 4 commits into from
Oct 22, 2015

Conversation

forki
Copy link
Member

@forki forki commented Oct 22, 2015

implements #1107

/cc @theimowski could you please take a short look? Thx

@forki forki force-pushed the restrictionsimplyfier branch 3 times, most recently from f2e5e72 to e4d38c1 Compare October 22, 2015 18:23
@@ -296,7 +296,9 @@ let createDependenciesFileR (rootDirectory : DirectoryInfo) nugetEnv mode =

Paket.DependenciesFile(DependenciesFileParser.parseDependenciesFile dependenciesFileName newLines))

if File.Exists dependenciesFileName then read() else create()
match (if File.Exists dependenciesFileName then read() else create()) with
Copy link
Member

Choose a reason for hiding this comment

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

use Trial.lift (map) ?

@theimowski
Copy link
Member

LGTM, wondering if SimplifyFrameworkRestrictions could be made a bit more idiomatic, but that's probably just some cosmetics

@forki
Copy link
Member Author

forki commented Oct 22, 2015

What would you call it?
On Oct 22, 2015 8:55 PM, "Tomasz Heimowski" notifications@github.com
wrote:

LGTM, wondering if SimplifyFrameworkRestrictions could be made a bit more
idiomatic, but that's probably just some cosmetics


Reply to this email directly or view it on GitHub
#1159 (comment).

@theimowski
Copy link
Member

don't mean name itself, but rather the logic - maybe replace ifs with pattern matching where possible - but as I said it's just cosmetics, not crucial

@forki forki merged commit d5c4273 into master Oct 22, 2015
@theimowski
Copy link
Member

👍

@forki forki deleted the restrictionsimplyfier branch October 23, 2015 08:02
@forki
Copy link
Member Author

forki commented Oct 23, 2015

we now allow to simplify common framework restrictions. see https://github.com/fsprojects/Paket/blob/master/tests/Paket.Tests/Simplifier/BasicScenarioSpecs.fs#L342

@theimowski
Copy link
Member

neat!

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.

2 participants