Re: ghci balkiness on OS X?

2014-10-23 Thread Judah Jacobson
I haven't seen this before myself (running on OS X), though in the past we had a report of slowdown in long-running ghci sessions which was hard to reproduce. What versions of GHC and OS X are you using? Do you know if this is a problem with text entry in general or only haskeline? If you run

A possible alternative to dot notation for record access

2013-06-30 Thread Judah Jacobson
Hi all, I had a quick idea about record field syntax as specified in the GSoC project plan: http://hackage.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields/Plan . Instead of f.x (to access field x of record f), maybe we could write f{x} as the record selection. That is, we'd reuse the

Re: Segfault while building GHC HEAD on Mac OS X 10.7/XCode 4.1

2011-09-29 Thread Judah Jacobson
There's a ticket for this problem, but it doesn't look like any progress has been made so far: http://hackage.haskell.org/trac/ghc/ticket/5484 From the ticket, it seems like a platform-independent problem with building HEAD using ghc-7.2.1. Best, -Judah On Thu, Sep 29, 2011 at 3:35 PM, Johan

Re: alternative to loadWithLogge

2011-08-18 Thread Judah Jacobson
On Tue, Aug 16, 2011 at 2:25 AM, Kazu Yamamoto k...@iij.ad.jp wrote: Hello, ghc-mod, IDE-like back-end for Emacs, uses warning related APIs including loadWithLogger and getWarnings in GHC 7.0.3 API. I found that they disappeared in GHC 7.2.1 API. What should I use to handle warnings in GHC

Re: Output character encoding for ghc on OpenBSD

2010-04-18 Thread Judah Jacobson
On Sun, Apr 18, 2010 at 7:01 AM, Matthias Kilian k...@outback.escape.de wrote: Hi, as some of you may know, I'm working on an update of OpenBSDs ghc port to 6.12.2, currently chasing down the last remaining testsuite failures. Yesterday, I ran into a problem which I have a fix for, but only

Re: no backspace, delete or arrow keys in ghci

2009-09-07 Thread Judah Jacobson
On Mon, Sep 7, 2009 at 11:12 AM, Gabriel Schwaneng.schwa...@gmail.com wrote: Hello to everybody, I'm currently working with Haskell via the ghc interpreter (version 6.10.4 on Ubuntu 9.10). The problem, if it is really a problem and not a normal comportement, happens when I try, as example,

Re: Libraries in the repo

2009-08-26 Thread Judah Jacobson
On Wed, Aug 26, 2009 at 9:15 AM, Simon Marlowmarlo...@gmail.com wrote: Simon and I have been chatting about how we accommodate libraries in the GHC repository.  After previous discussion on this list, GHC has been gradually migrating towards having snapshots of libraries kept as tarballs in the

Re: is the library iconv necessary for haskeline?

2009-06-05 Thread Judah Jacobson
On Fri, Jun 5, 2009 at 1:50 AM, Christian Maeder christian.mae...@dfki.de wrote: Hi, building ghc-6.10.3 under x86 solaris eventually failed with: Configuring ghc-bin-6.10.3... cabal-bin: At least the following dependencies are missing: haskeline -any gmake[3]: *** [boot.stage.2] Error 1

Re: ghc 6.10.3-prerelease failed build log for freebsd7.2

2009-05-04 Thread Judah Jacobson
On Sun, May 3, 2009 at 11:02 PM, brad clawsie claw...@fastmail.fm wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi after some trying, i was unable to get the 6.10.3 prerelease to build on freebsd 7.2. i was trying to use an existing 6.10.2 as my build ghc. i saved the output of the

Re: Backspace/delete/history in ghci

2008-11-24 Thread Judah Jacobson
On Mon, Nov 24, 2008 at 1:56 AM, Colin Paul Adams [EMAIL PROTECTED] wrote: I can't use the backspace key, or arrow keys in ghci (6.10.1) as i would normally expect to on any program on Linux. Did you compile ghc yourself or download the distribution from somewhere? If you're compiling it

ghci-haskeline (was: Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?)

2008-11-21 Thread Judah Jacobson
On Thu, Nov 20, 2008 at 7:16 AM, Ian Lynagh [EMAIL PROTECTED] wrote: Although another option would be to make GHCi a separate (GPL) frontend to the (BSD) GHC API. The only downside is that (with static linking) we have another large binary. Another upside is that other GHC API users don't get

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-21 Thread Judah Jacobson
On 11/21/08, Duncan Coutts [EMAIL PROTECTED] wrote: On Fri, 2008-11-21 at 11:59 +0100, Philip K.F. Hölzenspies wrote: On Friday 21 November 2008 10:49:47 Jules Bean wrote: Something must be very very broken : surely it is not expected behaviour for editline to need configuration in this

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-21 Thread Judah Jacobson
On 11/21/08, Simon Marlow [EMAIL PROTECTED] wrote: I propose we do this: * extract the GHCi UI from the GHC package, put it in the ghc-bin package (maybe we should rename this package to ghc-main or something). This removes the editline and bytestring (for now) dependencies from the

Re: editline in ghc-6.10.1 under Solaris

2008-11-16 Thread Judah Jacobson
On Mon, Nov 10, 2008 at 4:24 AM, Christian Maeder [EMAIL PROTECTED] wrote: Hallo Judah, I've build http://www.thrysoee.dk/editline/libedit-20080712-2.11.tar.gz and it was linked against libcurses: -bash-3.1$ ldd /usr/local/lib/libedit.so.0 libcurses.so.1 =/lib/libcurses.so.1

Re: problem with echo prompting in ghci (visible in emacs)

2008-11-16 Thread Judah Jacobson
2008/11/16 Conal Elliott [EMAIL PROTECTED]: I'm still looking for a solution to this problem. I've heard from a few people who are affected also, but not any solution. Barring a solution to ghci's behavior, does someone have an emacs-based workaround? - Conal On Tue, Nov 11, 2008 at

Re: more libedit.so.0 issues

2008-11-14 Thread Judah Jacobson
2008/11/13 James Swaine [EMAIL PROTECTED]: We've had unbelievable problems getting past this ridiculous 'unable to load object file or shared library libedit.so.0' error when attempting to build the 6.10.1 source tree. We initially just built editline in a user directory and attempted to

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-10 Thread Judah Jacobson
On Sun, Nov 9, 2008 at 11:03 AM, Don Stewart [EMAIL PROTECTED] wrote: judah.jacobson: Note that haskeline has a lot of dependencies and requires TemplateHaskell and many other language extensions. I'm also somewhat wary of switching to haskeline in ghc-6.10. I think these issues could

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-09 Thread Judah Jacobson
On Sun, Nov 9, 2008 at 6:42 AM, Duncan Coutts [EMAIL PROTECTED] wrote: On Sun, 2008-11-09 at 01:49 +, Ian Lynagh wrote: On Sat, Nov 08, 2008 at 12:33:57PM -0800, Judah Jacobson wrote: bind \e[3~ ed-delete-next-char It's a shame this doesn't just work out of the box in an xterm

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-08 Thread Judah Jacobson
On Fri, Nov 7, 2008 at 8:38 PM, Alexander Dunlap [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 3:13 AM, Philip K.F. Hölzenspies [EMAIL PROTECTED] wrote: Hi all, I apologize if this is off-topic, but I'm having a similar (but distinct) problem: editline thinks that my delete key is a tilde

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-07 Thread Judah Jacobson
On Fri, Nov 7, 2008 at 3:13 AM, Philip K.F. Hölzenspies [EMAIL PROTECTED] wrote: Dear Ian, all, After the announcement, I downloaded and installed the final release of 6.10.1. At some prior stage, I used the RC1 release, which had the same bug, but I had generally assumed it to be an

Re: ANNOUNCE: GHC version 6.10.1 - EditLine / terminal incompatibility?

2008-11-07 Thread Judah Jacobson
On Fri, Nov 7, 2008 at 4:36 AM, Duncan Coutts [EMAIL PROTECTED] wrote: I get some working and some non-working. Eg backspace, del, home, end work, but the ctl-left/ctl-right to jump words does not. Does anyone know how libedit is supposed to be configured? readline uses /etc/inputrc but

Re: libedit-20080712-2.11 under x86 Solaris

2008-10-10 Thread Judah Jacobson
On Thu, Oct 9, 2008 at 9:03 AM, Christian Maeder [EMAIL PROTECTED] wrote: Hi, I've installed libedit-20080712-2.11 (from sources) for ghc-6.10.0.20081007 under x86 Solaris. However, ghci comes up with: GHCi, version 6.10.0.20081007: http://www.haskell.org/ghc/ :? for help Loading package

Re: libedit

2008-10-10 Thread Judah Jacobson
On Thu, Oct 9, 2008 at 5:30 AM, Christian Maeder [EMAIL PROTECTED] wrote: Hi Judah, after installing rpm packages libedit0-2.10.snap20070831-5 libedit-devel-2.10.snap20070831-5 I get the error below for cabal install editline Cheers Christian checking editline/readline.h usability...

Re: Backspace in ghci-6.10.1-candidate

2008-10-10 Thread Judah Jacobson
On Thu, Oct 9, 2008 at 1:28 AM, Serge D. Mechveliani [EMAIL PROTECTED] wrote: This is about testing 6.10.0.20081007. 1. DoCon works with it. 2. The question is how to `install' Backspace and UpArrow in ghci. I make it from source by 6.10-candidate and also by itself -- on Debian Linux.

Re: ANNOUNCE: GHC 6.10.1 RC 1

2008-10-10 Thread Judah Jacobson
On Wed, Oct 8, 2008 at 1:09 PM, Ian Lynagh [EMAIL PROTECTED] wrote: We are pleased to announce that the GHC 6.10.0.20081007 snapshot is the first release candidate for GHC 6.10.1. You can download the release candidate from here:

Re: Backspace in ghci-6.10.1-candidate

2008-10-10 Thread Judah Jacobson
On Fri, Oct 10, 2008 at 1:42 AM, Judah Jacobson [EMAIL PROTECTED] wrote: On Thu, Oct 9, 2008 at 1:28 AM, Serge D. Mechveliani [EMAIL PROTECTED] wrote: This is about testing 6.10.0.20081007. 1. DoCon works with it. 2. The question is how to `install' Backspace and UpArrow in ghci. I make

Re: ANNOUNCE: GHC 6.10.1 beta

2008-09-24 Thread Judah Jacobson
On Wed, Sep 24, 2008 at 3:09 AM, Christian Maeder [EMAIL PROTECTED] wrote: Hi Judah, libedit is simply missing. but ghci used to work with readline! Do I need to install i.e. http://www.thrysoee.dk/editline/libedit-20080712-2.11.tar.gz as a static library in order to create code depending on

Re: editline vs haskeline (was: 6.10-candidate tested)

2008-09-24 Thread Judah Jacobson
On Wed, Sep 24, 2008 at 10:56 AM, Claus Reinke [EMAIL PROTECTED] wrote: The advantage is ghci works without editline and readline. The disadvantage is if you want arrow keys and backspace to work, you should have installed http://www.thrysoee.dk/editline/ first. libedit on Debian is very

Re: ANNOUNCE: GHC 6.10.1 beta

2008-09-23 Thread Judah Jacobson
Christian, I'm not sure about the other issues you mentioned but can probably help with the following. On Tue, Sep 23, 2008 at 6:38 AM, Christian Maeder [EMAIL PROTECTED] wrote: But finally installation succeeded (editline is missing and the arrow keys don't work). This means that the

Re: ANNOUNCE: GHC 6.10.1 beta

2008-09-22 Thread Judah Jacobson
On Mon, Sep 22, 2008 at 2:28 PM, Wei Hu [EMAIL PROTECTED] wrote: I tried it out in Emacs, but ghci always displays some sort of garbage message. For example, when I ask for the value of 0, I get: 0^J0 Is it because ghci switched to libedit? I'm running Emacs-23 with haske-mode- cvs on

Illegal instruction with ghc-6.8.3 distribution (OS X Tiger)

2008-06-27 Thread Judah Jacobson
Hi, I recently installed ghc-6.8.3 on an iBook running OS X 10.4.11 (PowerPC G4), using the following distribution: http://www.haskell.org/ghc/dist/6.8.3/maeder/ghc-6.8.3-powerpc-apple-darwin.tar.bz2 Running the following program, compiled with -O, causes an illegal instruction error:

Re: Illegal instruction with ghc-6.8.3 distribution (OS X Tiger)

2008-06-27 Thread Judah Jacobson
On Fri, Jun 27, 2008 at 12:34 PM, Christian Maeder [EMAIL PROTECTED] wrote: Judah Jacobson wrote: Christian, did you compile this distribution on a G5 PowerPC? Yes! GMP is statically linked into this distribution, so if it's using any processor-specific instructions I could see

Re: Rebuilding ghc

2008-06-12 Thread Judah Jacobson
On Thu, Jun 12, 2008 at 1:15 PM, Dominic Steinitz [EMAIL PROTECTED] wrote: Judah Jacobson wrote: If you weren't planning on hacking editline, it's probably easiest to just rm -rf the libraries/editline directory and do another darcs-all get to replace it with a consistent version. Otherwise

Re: Rebuilding ghc

2008-06-12 Thread Judah Jacobson
On Thu, Jun 12, 2008 at 1:58 PM, Dominic Steinitz [EMAIL PROTECTED] wrote: Configuring editline-0.2... Setup: Version mismatch between ghc and ghc-pkg: /home/dom/ghc/compiler/stage1/ghc-inplace is version 6.9.20080606 /home/dom/ghc/utils/ghc-pkg/ghc-pkg-inplace is version 6.9.20080612 From

Re: Rebuilding ghc

2008-06-12 Thread Judah Jacobson
On Thu, Jun 12, 2008 at 2:04 PM, Dominic Steinitz [EMAIL PROTECTED] wrote: This is becoming a bit of an odyssey (a series of vicissitudes). I now get a bug in ghc. Should I report it? [snip error building ndp] This does seem worth reporting. There seem to be other outstanding bugs when

Re: Rebuilding ghc

2008-06-10 Thread Judah Jacobson
On Tue, Jun 10, 2008 at 1:39 PM, Dominic Steinitz [EMAIL PROTECTED] wrote: I've built ghc previously and I assumed to keep it up to date I just did darcs pull followed by make but I got errors and according to the rebuilding instructions

Problems interrupting IO with -threaded

2008-06-09 Thread Judah Jacobson
Hi all, I'm writing a program that reads input from the user but should also handle a ctrl-c. My attempt is below; the program forks a thread to read one character of input, and kills that thread upon receiving a sigINT. It works fine compiled without -threaded, but with -threaded it blocks

Re: Integrating editline with ghc

2008-01-18 Thread Judah Jacobson
On Jan 17, 2008 1:19 AM, Christian Maeder [EMAIL PROTECTED] wrote: Judah Jacobson wrote: - System.Console.Editline.Readline contains the readline APIs provided by the editline library (mostly a cut/paste of System.Console.Readline). I would like to see a restructuring of the old readline

Re: Integrating editline with ghc

2008-01-17 Thread Judah Jacobson
On Jan 17, 2008 6:00 AM, Christian Maeder [EMAIL PROTECTED] wrote: Yitzchak Gale wrote: Christian Maeder wrote: The extended packages 2 could go under extra libs or hackageDB, while 1 remains a boot package for ghc that can link to editline on macs and readline under linux, but has

Integrating editline with ghc

2008-01-16 Thread Judah Jacobson
Hi all, I have managed to build ghc using the initial release of the editline package: Hackage link: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/editline-0.1 Haddock: http://code.haskell.org/editline/dist/doc/html/editline/ As I've mentioned before, there are two independent

Re: GHC Data.List.sort performance question

2008-01-15 Thread Judah Jacobson
On Jan 15, 2008 8:16 AM, Bertram Felgenhauer [EMAIL PROTECTED] wrote: Marcus D. Gabriel wrote: By a rather indirect route, I discovered that I obtain an almost factor of two improvement in performance in Data.List.sort if I make one small change in the implementation of the function merge

Re: readline package with libedit

2008-01-09 Thread Judah Jacobson
On Jan 9, 2008 12:59 AM, Christian Maeder [EMAIL PROTECTED] wrote: By the way I've the following lines in my ~/.ghci from http://hackage.haskell.org/trac/ghc/ticket/998 :m +System.Console.Readline Data.List getCompleterWordBreakCharacters = setCompleterWordBreakCharacters .

Re: readline package with libedit

2008-01-09 Thread Judah Jacobson
Good point. Fortunately, I'm testing everything on Tiger (10.4.10), so this shouldn't be a problem. -Judah On Jan 9, 2008 2:13 PM, Manuel M T Chakravarty [EMAIL PROTECTED] wrote: Judah, I completely agree that, at the least on the Mac, using editline is the best solution (as long all

darcs patch: [PROOF OF CONCEPT] build readline package with libedit

2008-01-08 Thread Judah Jacobson
On Jan 8, 2008 5:39 AM, Simon Marlow [EMAIL PROTECTED] wrote: Ian Lynagh wrote: Perhaps the best answer is for someone to make editline bindings for Haskell? I don't *think* libedit provides the completion functionality that we use in GHC, but I could be wrong. The only way to know for

Re: darcs patch: [PROOF OF CONCEPT] build readline package with libedit

2008-01-08 Thread Judah Jacobson
On Jan 8, 2008 11:21 AM, Christian Maeder [EMAIL PROTECTED] wrote: Could you try to install http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Shellac-0.9.1 and http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Shellac-readline-0.9 If that works, I'll be content with libedit

Re: readline on macs

2008-01-07 Thread Judah Jacobson
On Jan 7, 2008 6:55 AM, Christian Maeder [EMAIL PROTECTED] wrote: Judah Jacobson wrote: On Jan 5, 2008 10:29 AM, Thorkil Naur [EMAIL PROTECTED] wrote: The alternative is to use static linking of gmp (as suggested by chak) _and_ readline (version 5), so that user programs are also statically

Re: readline on macs

2008-01-07 Thread Judah Jacobson
On Jan 7, 2008 11:46 AM, Ian Lynagh [EMAIL PROTECTED] wrote: On Mon, Jan 07, 2008 at 09:19:25AM -0800, Judah Jacobson wrote: On Jan 7, 2008 6:55 AM, Christian Maeder [EMAIL PROTECTED] wrote: Judah Jacobson wrote: On Jan 5, 2008 10:29 AM, Thorkil Naur [EMAIL PROTECTED] wrote

Re: http://www.haskell.org/ghc/dist/mac_frameworks/GNUreadline-framework.zip

2008-01-05 Thread Judah Jacobson
On Jan 5, 2008 10:29 AM, Thorkil Naur [EMAIL PROTECTED] wrote: On Friday 04 January 2008 12:03, Christian Maeder wrote: I understand that there are problems in this area, but I am not convinced that they could not be solved without the renamed and/or modified readline library. I am sorry if

Re: ANNOUNCE: GHC version 6.8.2

2007-12-19 Thread Judah Jacobson
On Dec 18, 2007 8:54 PM, Manuel M T Chakravarty [EMAIL PROTECTED] wrote: Judah Jacobson: - Statically linking against GMP puts extra license requirements on any ghc-compiled program; thus, dynamic linking is preferable. Dynamic linking is preferable, because it is the simplest way

Re: ANNOUNCE: GHC version 6.8.2

2007-12-17 Thread Judah Jacobson
On Dec 14, 2007 1:30 AM, Christian Maeder [EMAIL PROTECTED] wrote: Ian Lynagh wrote: Incidentally, I suspect the otool output actually means it depends on /some/ libgmp.3.dylib, and it is using one that it found in /opt/local/lib/libgmp.3.dylib, but I could be wrong. The full path

Re: ANNOUNCE: GHC version 6.8.2

2007-12-17 Thread Judah Jacobson
On Dec 17, 2007 5:58 PM, Manuel M T Chakravarty [EMAIL PROTECTED] wrote: Ian Lynagh: On Mon, Dec 17, 2007 at 12:53:32PM +1100, Manuel M T Chakravarty wrote: Actually, I think, we should use the gmp/ in the ghc repo by default If you want to use it when building a bindist that might be

Re: You can now register a trac user for yourself

2007-11-22 Thread Judah Jacobson
I had the same problem on OS X with Safari. The solution was to delete the old username/password that Safari had saved in OS X's Keychain Access utility. I imagine there's a similar solution for other browsers/OSes. Hope that helps, -Judah On Nov 22, 2007 10:41 AM, Deborah Goldsmith [EMAIL

Re: Building GHC on Mac OS 10.2.1

2006-12-29 Thread Judah Jacobson
Hi Kirsten, You may have better luck downloading gcc-3.3 from connect.apple.com. (You need to log in, but you can create an ADC account for free.) Look through the Developer Tools downloads for the gcc update from August 2003. (Depending on the state of your system, you may need the December

Re: GHC 6.4 release candidates available

2005-02-19 Thread Judah Jacobson
2 issues (6.4.20050218): Compiling on OS X 10.2.8 (using gcc 3.1, ghc-6.2.2) gave an error on ghc/rts/Linker.c. The tarball includes a bogus version of ghc/includes/ghcplatform.h, which from what I can tell ought to be generated by make. Deleting the file and re-making seemed to work for a

Re: GHC 6.4 release candidates available

2005-02-19 Thread Judah Jacobson
OK, never mind on the second count; it turned out that Apple's gcc v3.1 preprocessor can't handle c-- files. Switching to gcc v.3.3 fixed that issue. -Judah On Sat, 19 Feb 2005 11:40:23 -0500, Judah Jacobson [EMAIL PROTECTED] wrote: 2 issues (6.4.20050218): Compiling on OS X 10.2.8 (using