-
Notifications
You must be signed in to change notification settings - Fork 8
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
Explanations on the Config datatype #29
Comments
As of now, You can check that The former contains the paths of additional header files that have to be included before performing the preprocessing, while the latter contains the paths of additional directories which contain additional header files. You'd use As you can see at Thanks for creating this issue. It made it possible to see where we can improve the command line options. We can now
In order to do that we'll have to ditch Docopt, because the last time I checked it does not support options that can be specified more than once. There's a list here (I'm not sure if it's up-to-date) with various alternatives for option parsing. |
Thanks, this makes things clearer. Can I ask why the cabal file is not searched/included automatically? It seems to me that the most common use case for argon is the parsing of an entire project. Could you make an actual example of an use case in which new headers files are included via Regarding the command line options, it seems to me that the best solution for this use case is Gabriel's |
The Cabal file could definitely be searched automatically, I just haven't done it yet. I've opened #30 about that. If your preprocessing is somewhat advanced and/or complicated it makes sense to modularize it with headers. Personally, I'd steer clear from that, as I think preprocessing makes sense for very simple tasks, without introducing unneeded complexity. In some cases preprocessing is an absolute necessity. For example, Argon makes use of the GHC API, and sometimes of its internals. Since those can (and do) change with time, there is no way other than CPP to support multiple versions. See, for instance, As I said, I wouldn't like to make my CPP much complicated, so apart from
I don't use IRC that much, but I'll make sure to drop by sometimes 😄 |
Can I close this issue? Or if you have other questions I'm happy to answer them. |
Sure, this issue can be closed. I'll probably ask a few more questions in another one though ;) Thanks! |
My question is about the
Types.Config
data type, and the uses the code makes ofexts
,headers
andincludeDirs
. This questions is not directly aimed at modifying or improving the code, I ask mainly to understand better how this works.exts
would be the extensions to activate in the parsing of the file. In the case in which the cabal file is read, is this option still useful? How?Similarly, could you do an example in which
headers
andincludeDirs
are useful?The text was updated successfully, but these errors were encountered: