Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit 934f2ec

Browse files
author
Gershom
committed
changes for os x documentation and cabal file gen
1 parent caa0894 commit 934f2ec

File tree

2 files changed

+59
-9
lines changed

2 files changed

+59
-9
lines changed

hptool/os-extras/osx/bin/cabal.wrap

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,43 @@ update_cabal_config() {
5353
--
5454
-- You may wish to bookmark that file
5555
56-
57-
remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive
58-
remote-repo-cache: ${user_haskell_dir}/repo-cache
56+
repository hackage.haskell.org
57+
url: http://hackage.haskell.org/
58+
-- secure: False
59+
-- root-keys:
60+
-- key-threshold:
61+
62+
-- default-user-config:
63+
-- require-sandbox: False
64+
-- ignore-sandbox: False
65+
-- ignore-expiry: False
66+
-- http-transport:
67+
68+
remote-repo-cache: ${cabal_dir}/packages
5969
-- local-repo:
6070
-- logs-dir:
6171
world-file: ${user_haskell_dir}/logs/world
6272
-- verbose: 1
6373
-- compiler: ghc
6474
-- with-compiler:
6575
-- with-hc-pkg:
66-
-- scratchdir:
6776
-- program-prefix:
6877
-- program-suffix:
6978
-- library-vanilla: True
7079
library-profiling: True
7180
-- shared:
7281
-- executable-dynamic: False
73-
-- executable-profiling: False
82+
-- profiling:
83+
-- executable-profiling:
84+
-- profiling-detail:
85+
-- library-profiling-detail:
7486
-- optimization: True
75-
-- library-for-ghci: False
87+
-- debug-info: False
88+
-- library-for-ghci:
7689
-- split-objs: False
7790
-- executable-stripping: True
91+
-- library-stripping: True
92+
-- configure-option:
7893
-- user-install: True
7994
-- package-db:
8095
-- flags:
@@ -83,7 +98,10 @@ library-profiling: True
8398
extra-prog-path: ${user_haskell_dir}/bin
8499
-- tests: False
85100
-- library-coverage: False
101+
-- allow-newer: False
102+
-- exact-configuration: False
86103
-- benchmarks: False
104+
-- relocatable: False
87105
-- cabal-lib-version:
88106
-- constraint:
89107
-- preference:
@@ -103,10 +121,30 @@ root-cmd: sudo
103121
build-summary: ${user_haskell_dir}/logs/build.log
104122
-- build-log:
105123
remote-build-reporting: anonymous
124+
-- report-planning-failure: False
106125
-- one-shot: False
107126
jobs: \$ncpus
127+
-- offline: False
108128
-- username:
109129
-- password:
130+
-- password-command:
131+
-- builddir:
132+
133+
haddock
134+
-- keep-temp-files: False
135+
-- hoogle: False
136+
-- html: False
137+
-- html-location:
138+
-- for-hackage: False
139+
-- executables: False
140+
-- tests: False
141+
-- benchmarks: False
142+
-- all:
143+
-- internal: False
144+
-- css:
145+
-- hyperlink-source: False
146+
-- hscolour-css:
147+
-- contents-location:
110148
111149
install-dirs user
112150
prefix: ${user_haskell_dir}
@@ -262,4 +300,3 @@ if update_cabal_config ; then
262300
fi
263301

264302
exec -a cabal /Library/Haskell/bin/cabal.real "$@"
265-

hptool/os-extras/osx/doc/start.html.mu

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,14 @@ p {
105105
<p>Documentation for the GHC API.</p>
106106
</li>
107107
<li>
108-
<!-- <p><a href="ghc-doc/Cabal/index.html">Cabal</a></p> -->
109108
<p><a href="http://www.haskell.org/cabal/users-guide/">Cabal</a></p>
110109
<p>An infrastructure for building and distributing Haskell software.</p>
111110
</li>
112111
<li>
112+
<p><a href="http://docs.haskellstack.org/">Stack</a></p>
113+
<p>A cross-platform program for developing Haskell projects.</p>
114+
</li>
115+
<li>
113116
<p><a href="ghc-doc/haddock/index.html">Haddock</a></p>
114117
<p>A tool for automatically generating documentation from annotated Haskell source code.</p>
115118
</li>
@@ -139,6 +142,16 @@ p {
139142
<p><b>N.B.</b> Built executables will be symlink'd into <tt>~/Library/Haskell/bin</tt>, you probably want to add that to your <tt>$PATH</tt> by adding this line to your <tt>~/.bash_profile</tt>:
140143
<p class="paths">export PATH="$HOME/Library/Haskell/bin:$PATH"</p>
141144

145+
<p><b>N.B.</b> Built executables by the stack tool will be symlink'd into <tt>~/.local/bin</tt>, you probably want to add that to your <tt>$PATH</tt> by adding this line to your <tt>~/.bash_profile</tt>:
146+
<p class="paths">export PATH="$HOME/.local/bin:$PATH"</p>
147+
148+
<p>In particular, when you upgrade to a new version of stack via
149+
the "stack upgrade" command (and you should consider doing so if
150+
the installed stack version is well behind the currently
151+
released one), it will be installed into the above directory,
152+
and will only be used if that directory is placed appropriately
153+
in your path.</p>
154+
142155
<div id="sidebar">
143156
<div class="module">
144157
<h2>Community</h2>
@@ -155,7 +168,7 @@ p {
155168
<div class="module">
156169
<h2>Development Resources</h2>
157170
<ul>
158-
<li><a href="http://hackage.haskell.org/packages/hackage.html">Hackage libary database</a></li>
171+
<li><a href="http://hackage.haskell.org/">Hackage libary database</a></li>
159172
<li><a href="http://haskell.org/hoogle/">Hoogle</a> and
160173
<a href="http://holumbus.fh-wedel.de/hayoo/">Hayoo</a> API search</li>
161174
</ul>

0 commit comments

Comments
 (0)