Commit 25266102 authored by Matt Renaud's avatar Matt Renaud

Add info on common stanzas to quickstart.

[ci skip]
parent bcd1dcab
......@@ -185,6 +185,27 @@ The last is just shorthand, for example ``base == 4.*`` means exactly
the same thing as ``base >= 4 && < 5``. Please refer to the documentation
on the :pkg-field:`build-depends` field for more information.
Also, you can factor out shared ``build-depends`` (and other fields such
as ``ghc-options``) into a ``common`` stanza which you can ``import`` in
your libraries and executable sections. For example:
common shared-properties
default-language: Haskell2010
base == 4.*
import: shared-properties
Note that the ``import`` **must** be the first thing in the stanza. For more
information see the `Common stanzas`_ section.
Building the package
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment