haskell/network — pull request #42 by AaronFriel (2012-08-01 20:56:02+00:00)
Title: Fixes URI parsing for regnames prefixed by URIs

This resolves https://github.com/haskell/network/issues/41

Before:

```haskell
> parseURI "http://192.168.0.1.example.com/"
Nothing
> parseURI "http://192.168.0.1.example.com./"
Nothing
> parseURI "http://192.168.0.1test.example.com/"
Nothing
```

After:

```haskell
> parseURI "http://192.168.0.1.example.com/"
Just http://192.168.0.1.example.com/
> parseURI "http://192.168.0.1.example.com./"
Just http://192.168.0.1.example.com./
> parseURI "http://192.168.0.1test.example.com/"
Just http://192.168.0.1test.example.com/
```

Notes:

I was unable to compile Network.URI on Windows without modifications to URI.hs (adding a LANGUAGE pragma and removing some #ifs), once these changes were made I remained unable to do a "cabal build" because Network has external dependencies that make it more difficult to compile than most packages.