Give stack instructions (fixes #113)

This commit is contained in:
Michael Snoyman 2015-08-13 12:09:08 +03:00
parent 78ac5c4456
commit c0b3ea9302
2 changed files with 25 additions and 23 deletions

View File

@ -5,37 +5,30 @@ $newline never
<p> <p>
Published on #{yearMonthDay (snapshotCreated snapshot)} Published on #{yearMonthDay (snapshotCreated snapshot)}
<span .separator> <span .separator>
<span>
stack #
<code>resolver: #{toPathPiece name}
<span .separator>
<span> <span>
<a href=@{SnapshotR name StackageCabalConfigR}> <a href=@{SnapshotR name StackageCabalConfigR}>
\cabal.config \cabal.config
<h3>Setup guide <h3>Setup guide
<div class="accordion" id="accordion2">
<div class="accordion-group"> <p>Edit your stack.yaml and set the following:
<div class="accordion-heading"> <p .stack-resolver-yaml>resolver: #{toPathPiece name}
<span class="accordion-toggle" data-parent="#accordion0" href="#collapse1"> <p>You can also use <code>--resolver #{toPathPiece name}</code> on the command line
<span .number>1
Download the #
<a href=@{SnapshotR name StackageCabalConfigR}?download=true>
\cabal.config
\ into your project or sandbox root directory
<div class="accordion-group">
<div class="accordion-heading">
<span class="accordion-toggle" data-toggle="collapse" data-parent="#accordion0" href="#collapse2">
<span .number>2
<code>cabal update
<div class="accordion-group">
<div class="accordion-heading">
<span class="accordion-toggle" data-toggle="collapse" data-parent="#accordion0" href="#collapse3">
<span .number>3
<code>cabal install
<p> <p>
<strong>Note: # <b>New to stack?
For a global installation, please use # \ Check out <a href="https://github.com/commercialhaskell/stack#readme">the stack homepage</a>
<p .cabal>
cabal users can either use the #
<a href=@{SnapshotR name StackageCabalConfigR}?download=true>
project specific cabal.config
\ (placed in your project directory, next to your .cabal file) or #
<a href=@{SnapshotR name StackageCabalConfigR}?global=true> <a href=@{SnapshotR name StackageCabalConfigR}?global=true>
the global configuration instructions follow the global configuration instructions
<h3>Hoogle <h3>Hoogle
^{hoogleForm} ^{hoogleForm}

View File

@ -84,3 +84,12 @@ p + ul {
.keyword { color: #366354 } .keyword { color: #366354 }
.url { color: #06537d } .url { color: #06537d }
.stack-resolver-yaml {
font-size: 1.3em;
font-weight: 600;
}
.cabal {
font-size: 0.9em;
}