tweak
This commit is contained in:
parent
ae2b1308a6
commit
872057303e
1 changed files with 3 additions and 2 deletions
5
Git.hs
5
Git.hs
|
@ -338,8 +338,9 @@ urlHostUser r = urlAuthPart uriUserInfo r ++ urlAuthPart uriRegName' r
|
||||||
|
|
||||||
{- The full authority portion an URL repo. (ie, "user@host:port") -}
|
{- The full authority portion an URL repo. (ie, "user@host:port") -}
|
||||||
urlAuthority :: Repo -> String
|
urlAuthority :: Repo -> String
|
||||||
urlAuthority r = flip urlAuthPart r $ \a ->
|
urlAuthority = urlAuthPart combine
|
||||||
uriUserInfo a ++ uriRegName' a ++ uriPort a
|
where
|
||||||
|
combine a = uriUserInfo a ++ uriRegName' a ++ uriPort a
|
||||||
|
|
||||||
{- Applies a function to extract part of the uriAuthority of an URL repo. -}
|
{- Applies a function to extract part of the uriAuthority of an URL repo. -}
|
||||||
urlAuthPart :: (URIAuth -> a) -> Repo -> a
|
urlAuthPart :: (URIAuth -> a) -> Repo -> a
|
||||||
|
|
Loading…
Reference in a new issue