[Add some of the static html pages from the current hackage Duncan Coutts **20080721192602 and serve them up ] { adddir ./static move ./hackage.html ./static/hackage.html hunk ./Main.hs 89 + , fileServe [] "static" addfile ./static/hackage.css hunk ./static/hackage.css 1 +body { + font-family: sans-serif; + color: black; background: white; +} +div.header { + border: thin solid black; +} +h1 { + text-align: center; + margin-top: 0.6ex; + margin-bottom: 0.9ex; + font-weight: normal; + color: #888; +} +table.navigation { + background: #f1f1f1; + border-top: thin solid black; + width: 100%; +} +table.navigation td { + text-align: center; +} +.floatright { + float: right; + margin-right: 0; +} +.floatright a:link img { border-width: 1px; } +.floatright a:visited img { border-width: 1px; } +.floatright a:active img { border-width: 1px; } +.toc { + font-size: smaller; + padding: 3px; + background: #f1f1f1; + border: thin solid black; +} +h3.category { + color: #008; background-color: #e0f0ff; + padding: 2px 3px; + margin: 0; +} +ul.packages { + margin: 1ex 0; + list-style-image: url(/images/Cabal-tiny.png); + list-style-type: circle; +} +table.properties { + width: 100%; +} +tr.odd { background: #e2e2e2 } +tr.even { background: #f1f1f1 } +th.horizontal { + vertical-align: top; + text-align: left; +} +form.box { + background-color: #f8e8c1; + padding: 0.4ex 0.4em; + border-style: solid; + border-width: 2px; + border-color: #f4f3f2 #797876 #797876 #f4f3f2; + margin: 1.5ex 0; +} +strong.warning { color: red; } hunk ./static/hackage.html 2 -HackageDB: introduction +HackageDB: introduction + hunk ./static/hackage.html 5 -
-

hackageDB :: [Package]

+
+

hackageDB :: [Package]

hunk ./static/hackage.html 8 - - - - - - - - - -
+ + + + + + + + + +
hunk ./static/hackage.html 19 -
-

About HackageDB

+
+

About HackageDB

hunk ./static/hackage.html 22 -

HackageDB is a collection of released -Haskell packages. -Each package is in the Cabal format, +

HackageDB is a collection of released +Haskell packages. +Each package is in the Cabal format, hunk ./static/hackage.html 28 -called Hackage.) +called Hackage.) hunk ./static/hackage.html 31 -

Finding packages

+

Finding packages

hunk ./static/hackage.html 33 -

The Packages link above lists the available packages +

The Packages link above lists the available packages hunk ./static/hackage.html 35 -while What's new lists recent additions (also available -as an RSS feed). -See How to install a Cabal package for instructions on installing the packages you find here. +while What's new lists recent additions (also available +as an RSS feed). +See How to install a Cabal package for instructions on installing the packages you find here. hunk ./static/hackage.html 39 -command-line tool +command-line tool hunk ./static/hackage.html 42 -

Releasing packages through HackageDB

+

Releasing packages through HackageDB

hunk ./static/hackage.html 44 -

To upload your own releases, you'll first need to package them as Cabal +

To upload your own releases, you'll first need to package them as Cabal hunk ./static/hackage.html 46 -See How to create a Haskell package +See How to create a Haskell package hunk ./static/hackage.html 48 -You can check and upload your package using the Upload link above, +You can check and upload your package using the Upload link above, hunk ./static/hackage.html 50 -username and password. +username and password. hunk ./static/hackage.html 52 -

Getting the raw data

+

Getting the raw data

hunk ./static/hackage.html 54 - hunk ./static/hackage.html 61 -

Development

+

Development

hunk ./static/hackage.html 63 -

See the -HackageDB wiki page. +

See the +HackageDB wiki page. + +

hunk ./static/hackage.html 68 -

- }