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

Improvements to ipkg files for dependancies. #2668

Merged
merged 2 commits into from
Sep 28, 2015
Merged

Improvements to ipkg files for dependancies. #2668

merged 2 commits into from
Sep 28, 2015

Conversation

jfdm
Copy link
Contributor

@jfdm jfdm commented Sep 26, 2015

iPKG files have a new option pkgs which takes a comma-separated list
of package names that the idris project depends on. This reduces bloat
in the opts option with mutliple package declarations.

So rather than have:

package foo

opts = "-p lightyear -p containers -p tests -p pruviloj -p effects -p x --log 4"

we can now say:

package foo

opts = "--log 4"

pkgs = lightyear, containers, tests, pruviloj, effects, x

The file PkgParser.hs file was also cleaned up a little.

iPKG files have a new option `pkgs` which takes a comma-separated list
of package names that the idris project depends on. This reduces bloat
in the `opts` option with mutliple package declarations.

So rather than have:

```
package foo

opts = "-p lightyear -p containers -p tests -p pruviloj -p effects -p x --log 4"
```

we can now sayL

```
package foo

opts = "--log 4"

pkgs = lightyear, containers, tests, pruviloj, effects, x
```
@@ -101,3 +113,4 @@ pClause = do reserved "executable"; lchar '=';
st <- get
put st { idris_tests = idris_tests st ++ ts }

-- -------------------------------------------------------------------- [ EOF ]
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the point of this comment?

@david-christiansen
Copy link
Contributor

This is a nice feature to add - thanks for doing it!

I added a couple questions as line annotations.

-- Copyright : (c) The Idris Community.
-- License : see LICENSE
--
-- The parser for Idris ipkg files.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good thing to add - but shouldn't it be a Haddock module description instead of a comment?

@jfdm
Copy link
Contributor Author

jfdm commented Sep 27, 2015

i'll remove the 'extra' comments, they are just styling and visual aides I use when working with most source files.

@david-christiansen
Copy link
Contributor

Looks great! Once Travis is done, I'll merge and then go add support to idris-mode.

@archaeron: FYI, this is incoming, and the Atom mode should be made to understand it.

@archaeron
Copy link

awesome! I like this a lot more.
is there a timeline on this? (I mean as a version bump)

@david-christiansen and thanks for the heads up :)

melted added a commit that referenced this pull request Sep 28, 2015
Improvements to ipkg files for dependancies.
@melted melted merged commit b8a8c79 into idris-lang:master Sep 28, 2015
@jfdm jfdm deleted the ipkg-file-improvements branch December 14, 2015 11:59
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.

4 participants