mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Give stack instructions (fixes #113)
This commit is contained in:
parent
78ac5c4456
commit
c0b3ea9302
@ -5,37 +5,30 @@ $newline never
|
||||
<p>
|
||||
Published on #{yearMonthDay (snapshotCreated snapshot)}
|
||||
<span .separator>
|
||||
<span>
|
||||
stack #
|
||||
<code>resolver: #{toPathPiece name}
|
||||
<span .separator>
|
||||
<span>
|
||||
<a href=@{SnapshotR name StackageCabalConfigR}>
|
||||
\cabal.config
|
||||
<h3>Setup guide
|
||||
<div class="accordion" id="accordion2">
|
||||
|
||||
<div class="accordion-group">
|
||||
<div class="accordion-heading">
|
||||
<span class="accordion-toggle" data-parent="#accordion0" href="#collapse1">
|
||||
<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>Edit your stack.yaml and set the following:
|
||||
<p .stack-resolver-yaml>resolver: #{toPathPiece name}
|
||||
<p>You can also use <code>--resolver #{toPathPiece name}</code> on the command line
|
||||
|
||||
<p>
|
||||
<strong>Note: #
|
||||
For a global installation, please use #
|
||||
<b>New to stack?
|
||||
\ 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>
|
||||
the global configuration instructions
|
||||
follow the global configuration instructions
|
||||
|
||||
<h3>Hoogle
|
||||
^{hoogleForm}
|
||||
|
||||
@ -84,3 +84,12 @@ p + ul {
|
||||
|
||||
.keyword { color: #366354 }
|
||||
.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