SearchPath

Automatic import chasing across the Internet for Haskell modules

Typical Usage Examples

$ sp --help
shows usage information
$ sp ghc --make -o myProgram -i src src/Main.hs
module chase in src directory and using the default module map to build myProgram
$ sp ghc --make -o myProgram -i src src/Main.hs --run arg1 arg2
same as above and run the program, recompiling and restarting on changes to source

How to install

Requirements: curl ghc
curl http://searchpath.org/searchpath/SearchPath.hs -o SearchPath.hs
ghc -main-is SearchPath --make SearchPath.hs -o sp
sudo mv sp /usr/local/bin
License is BSD3.

Note: curl is required to run searchpath as well so you need to have it installed. Fortunately, there are binaries for lots of platforms likely including yours available.

How to add projects to the default map

Check out the current default map file. Pull the darcs repo, modify default.map and send in a patch. See below.

How to Modify/Impove Searchpath code/docs/website

darcs get http://searchpath.org/searchpath
Send patches to: searchpath<nospam>@ happs.org
Some HTML layout help would be very appreciated.

News

Version 0.9.2 (1/10/2008)
Version 0.9.1 (12/28/2007)
Version 0.9 released (12/18/2007)