Commit Graph

265 Commits

Author SHA1 Message Date
Michael Snoyman
4107980263 More consistency in instances 2016-06-08 14:21:14 +02:00
Michael Snoyman
a708c630ae Add back exact support 2016-06-08 14:21:14 +02:00
Michael Snoyman
c1e16d8e1a Get Hoogle 5 working 2016-06-08 14:21:14 +02:00
Chris Done
77e92dc6ab Style up Haddocks to look like haskell-lang 2016-06-01 18:33:05 +02:00
Michael Snoyman
d49f3f5aaf Fix the Haddock mangling code (fixes #176) 2016-05-25 17:53:38 +03:00
Michael Snoyman
1fbaf13574 Overhaul to match latest Yesod scaffolding 2016-05-17 21:08:18 +03:00
Michael Snoyman
b81ff2a59d Properly display latest vs current package version #177 2016-05-17 19:44:34 +03:00
Michael Snoyman
413aa50450 Workaround for #176 2016-05-17 19:28:26 +03:00
Michael Snoyman
c5f16f2faa Prevent concurrent Hoogle queries #172 2016-05-08 11:39:19 +03:00
Michael Snoyman
4b953f8585 Force less of the Hoogle results #172 2016-05-08 11:33:53 +03:00
Michael Snoyman
dd0c4e3f4c Clean up warnings 2016-05-02 15:07:09 +03:00
Michael Snoyman
267f488bca Switch to secure Haddock URLs 2016-05-02 14:22:14 +03:00
Michael Snoyman
60af396f9c Add Haddock style.css and script.js 2016-05-02 14:18:27 +03:00
Michael Snoyman
a030ba4afb LTS bump 2016-05-02 14:16:11 +03:00
Jens Petersen
053c2e0631 add renderNoPackages to handle plural, and append colon 2016-02-19 20:38:15 +09:00
Jens Petersen
60dcfba8de Handler.Package: fix the empty warning correctly (thanks zudov) 2016-02-17 19:29:41 +09:00
Jens Petersen
6fcb72889f Handler.Package: hide empty from Import
stackage-server/Handler/Package.hs:170:9: Warning:
    This binding for ‘empty’ shadows the existing binding
      imported from ‘Import’ at Handler/Package.hs:20:1-23
      (and originally defined in ‘GHC.Base’)
2016-02-17 17:56:29 +09:00
Konstantin Zudov
912a0175d4 Provide snapshot content as JSON
```json
$ http --json http://localhost:4000/lts-5.1
{
  "snapshot": {
    "ghc": "7.10.3",
    "created": "2016-01-30",
    "name": "lts-5.1"
  },
  "packages": [
    {
      "isCore": false,
      "name": "abstract-deque",
      "version": "0.3",
      "synopsis": "Abstract, parameterized interface to mutable Deques."
    },
    {
      "isCore": false,
      "name": "abstract-par",
      "version": "0.3.3",
      "synopsis": "Type classes generalizing the functionality of the 'monad-par' library."
    },
    ...
  ]
}

```
2016-02-02 15:50:17 +02:00
Konstantin Zudov
26af5d29ed Upgrade to lts-5 2016-02-02 05:21:39 +02:00
Taylor Fausak
d2caecd432 Allow customizing entire badge label
This fixes #147.
2016-01-31 22:03:03 -06:00
Konstantin Zudov
ad053dc101 Set Cache-Control header on badges
Since github caches external resource we need to indicate that this
badge is supposed to be changing.

https://github.com/github/markup/issues/224
2015-11-16 13:34:59 +02:00
Konstantin Zudov
2decb3516e Allow change badge's label and style 2015-10-31 04:27:05 +02:00
Michael Snoyman
7cb7870d75 Include package count on snapshot page 2015-10-19 11:33:26 +00:00
Konstantin Zudov
492eaf0444 Change "non available" badge color to lightgray
The 'red' badge looks like "Something is wrong or broken", while
the 'lightgray' is pretty neutral.
2015-10-18 17:23:59 +03:00
Konstantin Zudov
b4f2c27017 Provide JSON representation of the diff 2015-10-17 20:29:35 +03:00
Konstantin Zudov
1e1e875bd0 Refactor snapshot diffs
- do not leak the HashMap out
- use existing types (Version, PackageName)
2015-10-17 17:20:41 +03:00
Konstantin Zudov
49828b012f Do not use nightlyBefore/ltsBefore 2015-10-17 17:15:36 +03:00
Konstantin Zudov
b798ac8236 Badges 2015-10-16 17:27:37 +03:00
Konstantin Zudov
c2fb5b1fa5 StackageBranch -> SnapshotBranch 2015-10-16 15:01:40 +03:00
Konstantin Zudov
e4a9880fde Remove obsolete TODO 2015-10-16 13:03:45 +03:00
Konstantin Zudov
5133a38006 Use StackageBranch in OldLinks 2015-10-16 10:01:31 +03:00
Konstantin Zudov
e66813be9f Use StackageBranch in Stackage.Database 2015-10-16 09:46:28 +03:00
Konstantin Zudov
62c0789ca6 Use StackageBranch for Feed 2015-10-16 07:14:45 +03:00
Michael Snoyman
b98bcfcf4a Add missing files 2015-10-15 04:29:50 +00:00
Konstantin Zudov
0e9164e5d6 Query database to get the preceding SnapName
That's much better than what I did before
2015-10-13 17:58:03 +03:00
Konstantin Zudov
5d1d97c46d Reflect the branch in the feed title/description 2015-10-13 14:58:21 +03:00
Konstantin Zudov
5c2e8ecf68 Add /feed/#LtsMajor (e.g /feed/lts-3) 2015-10-13 13:36:37 +03:00
Konstantin Zudov
8c9c916491 Add /feed/lts and /feed/nightly 2015-10-13 13:07:22 +03:00
Michael Snoyman
fcc36a3a81 Show snapshot diff on feed 2015-10-12 14:03:43 +00:00
Michael Snoyman
20d08ffa31 /feed 2015-10-11 14:16:10 +03:00
Konstantin Zudov
a192dcf1d2 Wildcarded unused names 2015-10-11 03:36:23 +03:00
Konstantin Zudov
734e3b60b3 Group snapshot list using <optgroup> 2015-10-11 01:59:01 +03:00
Konstantin Zudov
1ab01273bc Provide a link to snapshot's changes 2015-10-10 10:58:15 +03:00
Konstantin Zudov
160f2b02f9 Added UI for snapshot diffs 2015-10-10 10:44:06 +03:00
Konstantin Zudov
3fa3df3c4f Got rid of trivial ghc warnings 2015-10-06 13:03:31 +03:00
Konstantin Zudov
0f74359d79 Do not use deprecated FilePath related functions 2015-10-06 04:40:37 +03:00
Konstantin Zudov
ebbeba08b7 Lay out module listings hierarchically
Closes #115
2015-10-04 11:59:39 +03:00
Konstantin Zudov
3f8d0b3916 Highlight code in README files
Uses highlightjs
2015-10-03 09:28:05 +03:00
Michael Snoyman
768eaec573 Remove all social features
Motivation: these were the last things requiring a database. Once this
is gone, it simplifies deployment dramatically. I'm also not sure that
the social features were really worth keeping.
2015-09-25 17:43:50 +03:00
Michael Snoyman
bb01d34d8c Avoid duplicate packages on tag page (fixes #116) 2015-08-13 21:40:04 +03:00