[Hugs-users] Re: [Haskell] Accessing files without typing the entire path name

Ross Paterson ross at soi.city.ac.uk
Fri Jan 12 21:03:55 EST 2007


[moving to hugs-users]

On Fri, Jan 12, 2007 at 04:22:51PM -0800, Neena Kaushik wrote:
> I am trying to set up the hugs search path so that all the files from a
> particular directory can be loaded without giving the entire path name.
> I tried the following
> 
> Hugs.Base> :set
> -P.:{Home}/lib/hugs/packages/*:/usr/local/lib/hugs/packages/*:{Hugs}/libraries:{Hugs}/packages/*:{Hugs}/oldlib:/home/nkaushik/coen70/lab1
> Hugs.Base> :load lab1.hs
> Error - Unable to open file "lab1.hs"  
> 
> Hugs.Base> :load /home/nkaushik/coen70/lab1/lab1.hs
> Main>

Call the file Lab1.hs, and then say

:l Lab1

(Your file should also begin with the line "module Lab1 where".)



More information about the Hugs-Users mailing list