mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-02-12 19:07:28 +01:00
Give stack instructions (fixes #113)
This commit is contained in:
parent
78ac5c4456
commit
c0b3ea9302
@ -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}
|
||||||
|
|||||||
@ -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;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user