[Haskell] URLs in haskell module namespace

Glynn Clements glynn at gclements.plus.com
Thu Mar 24 14:26:07 EST 2005


S. Alexander Jacobson wrote:

> As I move from machine to machine, it would be nice not to have to 
> install all the libraries I use over and over again.  I'd like to be 
> able to do something like this:
> 
>    import http://module.org/someLib as someLib
> 
> If the requested module itself does local imports, the implementation 
> would first try to resolve the names on the client machine and 
> otherwise make requests along remote relative paths.

Embedding the path in the source code seems like a bad idea. If you
want to allow modules to be loaded via URLs, it would make more sense
to extend GHC's -i switch, i.e.

	ghc -i http://module.org/ ...

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the Haskell mailing list