-
Notifications
You must be signed in to change notification settings - Fork 642
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
Conversation
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 ] |
There was a problem hiding this comment.
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?
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. |
There was a problem hiding this comment.
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?
i'll remove the 'extra' comments, they are just styling and visual aides I use when working with most source files. |
Looks great! Once Travis is done, I'll merge and then go add support to @archaeron: FYI, this is incoming, and the Atom mode should be made to understand it. |
awesome! I like this a lot more. @david-christiansen and thanks for the heads up :) |
Improvements to ipkg files for dependancies.
iPKG files have a new option
pkgs
which takes a comma-separated listof package names that the idris project depends on. This reduces bloat
in the
opts
option with mutliple package declarations.So rather than have:
we can now say:
The file
PkgParser.hs
file was also cleaned up a little.