@@ -378,7 +378,7 @@ sourceRepositoryToHtml :: SourceRepo -> Html
378
378
sourceRepositoryToHtml sr
379
379
= toHtml (display (repoKind sr) ++ " : " )
380
380
+++ case repoType sr of
381
- Just Darcs
381
+ Just ( KnownRepoType Darcs )
382
382
| (Just url, Nothing , Nothing ) <-
383
383
(repoLocation sr, repoModule sr, repoBranch sr) ->
384
384
concatHtml [toHtml " darcs get " ,
@@ -392,7 +392,7 @@ sourceRepositoryToHtml sr
392
392
<< toHtml sd)
393
393
+++ toHtml " )"
394
394
Nothing -> noHtml]
395
- Just Git
395
+ Just ( KnownRepoType Git )
396
396
| (Just url, Nothing ) <-
397
397
(repoLocation sr, repoModule sr) ->
398
398
concatHtml [toHtml " git clone " ,
@@ -406,15 +406,15 @@ sourceRepositoryToHtml sr
406
406
case repoSubdir sr of
407
407
Just sd -> toHtml (" (" ++ sd ++ " )" )
408
408
Nothing -> noHtml]
409
- Just SVN
409
+ Just ( KnownRepoType SVN )
410
410
| (Just url, Nothing , Nothing , Nothing ) <-
411
411
(repoLocation sr, repoModule sr, repoBranch sr, repoTag sr) ->
412
412
concatHtml [toHtml " svn checkout " ,
413
413
anchor ! [href url] << toHtml url,
414
414
case repoSubdir sr of
415
415
Just sd -> toHtml (" (" ++ sd ++ " )" )
416
416
Nothing -> noHtml]
417
- Just CVS
417
+ Just ( KnownRepoType CVS )
418
418
| (Just url, Just m, Nothing , Nothing ) <-
419
419
(repoLocation sr, repoModule sr, repoBranch sr, repoTag sr) ->
420
420
concatHtml [toHtml " cvs -d " ,
@@ -423,7 +423,7 @@ sourceRepositoryToHtml sr
423
423
case repoSubdir sr of
424
424
Just sd -> toHtml (" (" ++ sd ++ " )" )
425
425
Nothing -> noHtml]
426
- Just Mercurial
426
+ Just ( KnownRepoType Mercurial )
427
427
| (Just url, Nothing ) <-
428
428
(repoLocation sr, repoModule sr) ->
429
429
concatHtml [toHtml " hg clone " ,
@@ -437,7 +437,7 @@ sourceRepositoryToHtml sr
437
437
case repoSubdir sr of
438
438
Just sd -> toHtml (" (" ++ sd ++ " )" )
439
439
Nothing -> noHtml]
440
- Just Bazaar
440
+ Just ( KnownRepoType Bazaar )
441
441
| (Just url, Nothing , Nothing ) <-
442
442
(repoLocation sr, repoModule sr, repoBranch sr) ->
443
443
concatHtml [toHtml " bzr branch " ,
@@ -456,7 +456,7 @@ sourceRepositoryToHtml sr
456
456
toHtml " " ,
457
457
toHtml (takeFileName (dropTrailingPathSeparator url) ++ " .fossil" )
458
458
]
459
- Just (OtherRepoType " pijul " )
459
+ Just (KnownRepoType Pijul )
460
460
| (Just url, Nothing , Nothing ) <-
461
461
(repoLocation sr, repoModule sr, repoTag sr) ->
462
462
concatHtml [toHtml " pijul clone " ,
0 commit comments