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

Cabal common stanzas get ignored for Android build of executables #595

Open
kmicklas opened this issue Dec 24, 2019 · 2 comments
Open

Cabal common stanzas get ignored for Android build of executables #595

kmicklas opened this issue Dec 24, 2019 · 2 comments
Labels

Comments

@kmicklas
Copy link
Contributor

Cabal common stanzas require an import as the first subfield of a component, e.g.

executable frontend
  import: default
  ...

This doesn't work with the sed script used to set up linking for Android. Weirdly Cabal doesn't seem to complain but just doesn't import the stanza. Although something more future-proof would be preferable, I believe this could be fixed by changing the script to match the import clause and preserving it before the stuff that gets added.

@kmicklas kmicklas added the bug label Dec 24, 2019
@kmicklas kmicklas changed the title Android build breaks for executables using Cabal common stanzas Cabal common stanzas get ignored for Android build of executables Dec 24, 2019
@Ericson2314
Copy link
Member

This reminds me we ought to switch to using https://cabal.readthedocs.io/en/latest/developing-packages.html#foreign-libraries

@Ericson2314
Copy link
Member

Ericson2314 commented Dec 24, 2019

That further reminds me that if we want to better abstract over this stuff for the user, the program entry point should be some sort of backpack thing so you can write more libraries and things around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants