X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Flwn-epub.git;a=blobdiff_plain;f=src%2FLWN%2FURI.hs;h=1601c37111e80bd9c0c0641de730baf8f4292641;hp=d9076c419ed594494b2359c4d9400aa65c216fed;hb=4220827f62d772d7edcbdcc1c2f13d6c2eb5f534;hpb=f3321e2ce7d7645ad562dc8f6620bfd561edc75d diff --git a/src/LWN/URI.hs b/src/LWN/URI.hs index d9076c4..1601c37 100644 --- a/src/LWN/URI.hs +++ b/src/LWN/URI.hs @@ -63,7 +63,7 @@ add_trailing_slash url = if (isSuffixOf "/" old_path) || (isSuffixOf "bigpage" old_path) then -- It already had a trailing slash, or it's a 'bigpage' URL. -- Trailing slashes after 'bigpage' don't work. - url + url else show $ uri { uriPath = old_path ++ "/" } where @@ -163,7 +163,7 @@ make_absolute_uri relative_uri = make_absolute_url :: URL -> Maybe URL -make_absolute_url relative_url = +make_absolute_url relative_url = case parse_result of Nothing -> Nothing Just relative_uri ->