[Haskell-cafe] Re: Network.URI bug? (

Bárður Árantsson spam at scientician.net
Tue Oct 7 14:25:25 EDT 2008

Bárður Árantsson wrote:
> Hi all,

*Smacks forehead*

Apparently you absolutely need a trailing slash on the relative URIs.

  base = fromJust $ parseURI "http://localhost:9000"
  d1 = fromJust $ parseRelativeReference "d1/"
  d2 = fromJust $ parseRelativeReference "d2/"

  let u = base
  let u1 = fromJust $ d1 `relativeTo` base
  let u2 = fromJust $ d2 `relativeTo` u1

works as expected.

Apologies for the noise.


Bardur Arantsson
<bardurREMOVE at THISscientician.net>

- You can't expect to wield supreme executive power just because
some watery tart threw a sword at you.
                         Dennis / Monty Python and the Holy Grail

More information about the Haskell-Cafe mailing list