Comments (11)
Ideally the approach can be extended to arch
and flag
, if we ever reach the point that we need it.
Relevant Cabal documentation: https://www.haskell.org/cabal/users-guide/developing-packages.html#conditional-blocks
from hpack.
Some ideas:
dependencies:
- name: Win32
when: os(windows) && arch(i386)
- name: unix
when: "!os(windows)"
windows-i386-dependencies:
- Win32
unix-dependencies:
- unix
os:
windows:
arch:
i386:
dependencies: Win32
other:
dependencies: unix
if:
condition: os(windows) && arch(i386)
then:
dependencies:
- Win32
else:
dependencies:
- unix
from hpack.
when:
condition: os(windows) && arch(i386)
dependencies:
- Win32
when:
condition: "!os(windows)"
dependencies:
- unix
from hpack.
when:
os: windows
arch: i386
dependencies:
- Win32
when:
os: "!windows"
dependencies:
- unix
from hpack.
when:
condition: os(windows) && arch(i386)
then:
dependencies:
- Win32
else:
dependencies:
- unix
from hpack.
For flags:
flags:
integration-tests:
description: Run the integration test suite
manual: yes
default: no
or
flags:
- name: integration-tests
description: Run the integration test suite
manual: yes
default: no
from hpack.
when:
- condition: os(windows) && arch(i386)
dependencies:
- Win32
- condition: "!os(windows)"
dependencies:
- unix
from hpack.
Any decisions? The last one, and either of the flag proposals, sound good to me. Happy to help implementing.
from hpack.
Yes, sounds good to me. Maybe the first flags proposal?
Sent from my iPhone
On 24 Sep 2015, at 9:12 pm, Julian Arni [email protected] wrote:
Any decisions? The last one, and either of the flag proposals, sound good to me. Happy to help implementing.
—
Reply to this email directly or view it on GitHub.
from hpack.
I long avoided need to flags, but atm I just cannot avoid it anymore. So I'd like to see this happen. I'd like the
flags:
integration-tests:
description: Run the integration test suite
manual: yes
default: no
and
when:
- condition: os(windows) && arch(i386)
dependencies:
- Win32
- condition: "!os(windows)"
dependencies:
- unix
- condition: flag(integration-tests)
dependencies:
- QuickCheck
from hpack.
Supports for conditionals is on master
and we have PRs for flags.
Closing.
from hpack.
Related Issues (20)
- Get ready for sublibraries. HOT 6
- Support Cabal library 3.6 HOT 3
- How can I use hpack to generate common imports? HOT 6
- Set cabal-version with common or import fields.
- Two cabal-version fields with verbatim. HOT 4
- Make `autogen-modules` a deprecated alias for `generated-exposed-modules`
- Enhancement: Allow file exclusion where file globs are supported
- Consider using $XDG_CACHE_HOME/hpack instead of ~/.hpack for cached defaults
- Support for common stanzas HOT 3
- Binaries & releases
- Incorrect translation of caret operator `^>=` HOT 1
- build-tools for executable in same package incorrect HOT 9
- when used with stack, generates the .cabal file in the wrong directory, if it's in a sub-directory HOT 1
- JSON schema HOT 9
- Verbatim imports put at bottom of stanza first time HOT 2
- Relax upper bound on Cabal dependency to admit Cabal-3.8.1.0 HOT 2
- test "Hpack.renderCabalFile is inverse to readCabalFile" fails with carriage-returns HOT 9
- Introduce an `HpackException` type, for Hpack exceptions HOT 6
- Release 0.35.0 is missing on github HOT 4
- `ghc-shared-options` support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hpack.