diff --git a/Import.hs b/Import.hs index 5664773..8eafce5 100644 --- a/Import.hs +++ b/Import.hs @@ -20,6 +20,11 @@ parseLtsPair t1 = do (y, "") <- either (const Nothing) Just $ decimal t3 Just (x, y) +packageUrl :: SnapName -> PackageName -> Version -> Route App +packageUrl sname pkgname pkgver = SnapshotR sname sdistR + where + sdistR = StackageSdistR (PNVNameVersion pkgname pkgver) + haddockUrl :: SnapName -> Text -- ^ package-version -> Text -- ^ module name diff --git a/templates/stackage-diff.hamlet b/templates/stackage-diff.hamlet index d2b90b6..d069288 100644 --- a/templates/stackage-diff.hamlet +++ b/templates/stackage-diff.hamlet @@ -33,15 +33,23 @@ $else