From itz at madbat.mine.nu Fri Jun 8 09:35:58 2007 From: itz at madbat.mine.nu (Ian Zimmerman) Date: Fri Jun 8 09:34:51 2007 Subject: [Hugs-users] library directory Message-ID: <87y7iu1sch.fsf@unicorn.ahiker.homeip.net> Is it possible to somehow determine mechanically what the standard library directory of a running Hugs interpreter is? The output of :set gives the load path, but that hides the library directory as {Hugs}. Some other (unnamed, grin) tools provide similar information in their --version output, or have a special option that outputs only this. Thanks. -- This line is completely ham. From aspam at cox.net Fri Jun 8 14:46:41 2007 From: aspam at cox.net (Joe Buehler) Date: Fri Jun 8 15:05:20 2007 Subject: [Hugs-users] strange socket I/O problem under HPUX 11.0 Message-ID: I ported Hugs to a number of UNIX variants but am running into a strange problem under HPUX 11.0. I wrote a trivial server program that reads a line from a socket and writes a message back to the client. This works fine, except under HPUX, where it does write the message to the client, but before it writes the message it writes back the line that was read from the client! Any ideas on this? Does Hugs use straight stdio or does it do something funny like reaching into the internals of the stdio data structures? Joe Buehler From ross at soi.city.ac.uk Fri Jun 8 17:23:47 2007 From: ross at soi.city.ac.uk (Ross Paterson) Date: Fri Jun 8 17:19:04 2007 Subject: [Hugs-users] library directory In-Reply-To: <87y7iu1sch.fsf@unicorn.ahiker.homeip.net> References: <87y7iu1sch.fsf@unicorn.ahiker.homeip.net> Message-ID: <20070608212347.GA16082@soi.city.ac.uk> On Fri, Jun 08, 2007 at 09:35:58AM -0400, Ian Zimmerman wrote: > Is it possible to somehow determine mechanically what the standard > library directory of a running Hugs interpreter is? hugs -q Is there any way to have hugs dump a trace during execution of a program? I would like to compare execution of a script on two machines, one working properly, one not, and see where they diverge. Joe Buehler From itz at madbat.mine.nu Sun Jun 10 09:42:37 2007 From: itz at madbat.mine.nu (Ian Zimmerman) Date: Sun Jun 10 09:42:13 2007 Subject: [Hugs-users] Yaham - Yet Another HAskell Mode for GNU Emacs Message-ID: <87645w3oz6.fsf@unicorn.ahiker.homeip.net> Quoting the README file: This is Yaham, Yet Another HAskell Mode for GNU Emacs. It has a different focus than the Moss haskell-mode that's normally used nowadays. Yaham strives, first and foremost, to integrate well with the rest of Emacs and respect the Emacs ecosystem. This is because I still use languages different from Haskell --- python, shell, Makefiles, even C ...) and see no end to this predicament. To my knowledge, Yaham completely and correctly handles all of Haskell's unusual lexical syntax - both line and nested comments, overloading of single quote and backslash, strings including gaps. There should be no runaway string or comment highlighting or broken cursor movement across these elements. If you find a broken case, please report it to the address below including the relevant piece of Haskell. Things that are still missing but are high priority to add: * specialization for GHC (one for Hugs is included) * texinfo documentation (for now, please explore the menus and keybindings) * installation script (perhaps a makefile) Things that are very low priority (i.e. probably won't be added): * Bird style literate source handling * XEmacs compatibility kludges To use or try it, * download http://primate.net/~itz/yaham/yaham.tar.gz * unpack * read the LICENSE (yes, please do) * copy *.el files to your local Elisp directory * optionally, byte-compile * add the following to your Emacs initialization (load-library "yaham-autoloads") (add-to-list 'auto-mode-alist '("\\.hs\\'" . yaham-mode)) ;; or if you have Hugs, you can do this: ;; (add-to-list 'auto-mode-alist '("\\.hs\\'" . yaham-hugs-mode)) Send all problem reports and patches to me (Ian Zimmerman) at yaham@madbat.mine.nu P.S. If you want to hack on it, let me know and I'll consider giving you access to the Subversion repo. Peace, Ian. -- This line is completely ham. From itz at madbat.mine.nu Sun Jun 10 09:49:00 2007 From: itz at madbat.mine.nu (Ian Zimmerman) Date: Sun Jun 10 09:47:13 2007 Subject: [Hugs-users] library directory In-Reply-To: <20070608212347.GA16082@soi.city.ac.uk> References: <87y7iu1sch.fsf@unicorn.ahiker.homeip.net> <20070608212347.GA16082@soi.city.ac.uk> Message-ID: <871wgj538z.fsf@unicorn.ahiker.homeip.net> Ross> hugs -q sed -n '11s@.*"\(.*\)/packages/base/Prelude.hs":@\1@p' What does the -q do? It is not mentioned either in the manpage or in the manual. -- This line is completely ham. From ross at soi.city.ac.uk Sun Jun 10 18:44:52 2007 From: ross at soi.city.ac.uk (Ross Paterson) Date: Sun Jun 10 18:40:02 2007 Subject: [Hugs-users] library directory In-Reply-To: <871wgj538z.fsf@unicorn.ahiker.homeip.net> References: <87y7iu1sch.fsf@unicorn.ahiker.homeip.net> <20070608212347.GA16082@soi.city.ac.uk> <871wgj538z.fsf@unicorn.ahiker.homeip.net> Message-ID: <20070610224452.GA4142@soi.city.ac.uk> On Sun, Jun 10, 2007 at 09:49:00AM -0400, Ian Zimmerman wrote: > Ross> hugs -q Ross> sed -n '11s@.*"\(.*\)/packages/base/Prelude.hs":@\1@p' > > What does the -q do? It is not mentioned either in the manpage or in > the manual. It is in the manpage and section 3.1.2 of the User's Guide, but you have to remember that Hugs toggle options come in +/- pairs: +q (the default) loads modules quietly; -q doesn't.