Re: darcs patch: -fhacking

2009-08-07 Thread Will Donnelly
Dyre version 0.7 is now uploaded to HackageDB, and provides the functionality I previously described. The only difference of note is that I named the flag 'configCheck', rather than 'recompileCheck', as it is a slightly more accurate description of what the flag does. With the additional import o

Re: darcs patch: -fhacking

2009-08-07 Thread Will Donnelly
Assuming that I understand the situation correctly, does the following action sound suitable? I can add an additional parameter to Dyre named 'recompileCheck' which will determine whether the program should attempt to recompile custom configurations or whether it should simply proceed directly to

Re: darcs patch: -fhacking

2009-08-07 Thread Will Donnelly
I'm trying to understand exactly what's going on here. As far as I can tell, the '-fhacking' flag is used to indicate that a custom configuration is to be used as the application's default entry point for hacking purposes, correct? And then, the patch seems to indicate that the desire is also to d

Re: yi doesn't run

2009-08-07 Thread Jeff Wheeler
On Fri, Aug 7, 2009 at 6:19 PM, Will Donnelly wrote: > Dyre doesn't use 'readSymbolicLink' directly, so if this issue is > coming from those parts of the code, I would hazard a guess that it's > an issue with the executable-path library[1]. This seems to be exactly right. The execute-file functi

Re: yi doesn't run

2009-08-07 Thread Will Donnelly
On Aug 7, 12:49 pm, Jeff Wheeler wrote: > >> yi: /proc/12661/file: readSymbolicLink: does not exist (No such file or > >> directory) > > I suspect this issue is related to Dyre, but I really don't understand it. > > Jeff Wheeler Dyre doesn't use 'readSymbolicLink' directly, so if this issue is c

Issue 265 in yi-editor: Slowness (in fundamental mode)

2009-08-07 Thread codesite-noreply
Comment #22 on issue 265 by jeffwheeler: Slowness (in fundamental mode) http://code.google.com/p/yi-editor/issues/detail?id=265 This is the HackerMain.hs I've been using. With the patch I sent to the list (but didn't commit), I can use it like this: $ touch src/Yi/Boot.hs $ cabal install -fha

Re: patch applied (yi): Small -Wall

2009-08-07 Thread Gwern Branwen
On Fri, Aug 7, 2009 at 4:20 PM, Jeff Wheeler wrote: Fri Aug  7 16:19:40 EDT 2009  Jeff Wheeler  * Small -Wall  Ignore-this: a47f4362b5843092857f46d9946c063c  I can't figure out how to get rid of the Interact import warning. GHC warns  that nothing from it is used, but when it's removed, it er

Issue 11 in yi-editor: non line-wrap mode

2009-08-07 Thread codesite-noreply
Updates: Labels: -Frontend-Vty Component-UI-Vty Comment #3 on issue 11 by JeanPhilippe.bernardy: non line-wrap mode http://code.google.com/p/yi-editor/issues/detail?id=11 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC fie

Issue 11 in yi-editor: non line-wrap mode

2009-08-07 Thread codesite-noreply
Updates: Status: Started Comment #2 on issue 11 by jeffwheeler: non line-wrap mode http://code.google.com/p/yi-editor/issues/detail?id=11 This is done in Pango. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue

Issue 281 in yi-editor: Saving file resets executable permission

2009-08-07 Thread codesite-noreply
Updates: Status: Fixed Comment #2 on issue 281 by jeffwheeler: Saving file resets executable permission http://code.google.com/p/yi-editor/issues/detail?id=281 This was fixed in a patch titled "Preserve permissions". (Is there a better way to refer to patches?) -- You received this m

Issue 214 in yi-editor: Editor becomes sluggish after extended usage (vty)

2009-08-07 Thread codesite-noreply
Updates: Labels: -Priority-Medium Priority-High Comment #12 on issue 214 by JeanPhilippe.bernardy: Editor becomes sluggish after extended usage (vty) http://code.google.com/p/yi-editor/issues/detail?id=214 I've investigated this one: it seems that * GHC triggers a major GC everytime Y

Issue 281 in yi-editor: Saving file resets executable permission

2009-08-07 Thread codesite-noreply
Updates: Owner: greenrd Comment #1 on issue 281 by JeanPhilippe.bernardy: Saving file resets executable permission http://code.google.com/p/yi-editor/issues/detail?id=281 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC f

Issue 277 in yi-editor: HConf produces unnecessary output on stdout

2009-08-07 Thread codesite-noreply
Updates: Status: Fixed Comment #1 on issue 277 by JeanPhilippe.bernardy: HConf produces unnecessary output on stdout http://code.google.com/p/yi-editor/issues/detail?id=277 (No comment was entered for this change.) -- You received this message because you are listed in the owner or CC

Issue 275 in yi-editor: HConf must be modified for every project that uses it

2009-08-07 Thread codesite-noreply
Updates: Status: Fixed Comment #1 on issue 275 by JeanPhilippe.bernardy: HConf must be modified for every project that uses it http://code.google.com/p/yi-editor/issues/detail?id=275 (No comment was entered for this change.) -- You received this message because you are listed in the o

Issue 274 in yi-editor: HConf only works for yi, but can easily be fixed

2009-08-07 Thread codesite-noreply
Updates: Status: Fixed Comment #1 on issue 274 by JeanPhilippe.bernardy: HConf only works for yi, but can easily be fixed http://code.google.com/p/yi-editor/issues/detail?id=274 (No comment was entered for this change.) -- You received this message because you are listed in the owner

Issue 282 in yi-editor: type signature for several functions not yet supported?

2009-08-07 Thread codesite-noreply
Updates: Status: Fixed Comment #2 on issue 282 by JeanPhilippe.bernardy: type signature for several functions not yet supported? http://code.google.com/p/yi-editor/issues/detail?id=282 (No comment was entered for this change.) -- You received this message because you are listed in the

Issue 285 in yi-editor: Non-atomic paste operation (vty)

2009-08-07 Thread codesite-noreply
Status: Accepted Owner: JeanPhilippe.bernardy Labels: Type-Defect Priority-Medium Component-UI-Vty New issue 285 by JeanPhilippe.bernardy: Non-atomic paste operation (vty) http://code.google.com/p/yi-editor/issues/detail?id=285 There is "theoretical" support for atomic paste in xterm; but no d

Issue 265 in yi-editor: Slowness (in fundamental mode)

2009-08-07 Thread codesite-noreply
Updates: Summary: Slowness (in fundamental mode) Comment #21 on issue 265 by JeanPhilippe.bernardy: Slowness (in fundamental mode) http://code.google.com/p/yi-editor/issues/detail?id=265 (No comment was entered for this change.) -- You received this message because you are listed in t

patch applied (yi): fix a memory leak; also improve the style somewhat

2009-08-07 Thread Jean-Philippe Bernardy
Fri Aug 7 17:09:32 EDT 2009 jeanphilippe.berna...@gmail.com * fix a memory leak; also improve the style somewhat Ignore-this: 12b9966fd67f3ebf9a2e5bc48a7b98ef M ./src/Yi/UI/Vty.hs -4 +9 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegro

patch applied (yi): comments

2009-08-07 Thread Jean-Philippe Bernardy
Fri Aug 7 10:52:24 EDT 2009 jeanphilippe.berna...@gmail.com * comments Ignore-this: cd54987d02e554390155379e64fca9d0 M ./src/Yi/Core.hs +9 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel

Re: darcs patch: -fhacking

2009-08-07 Thread Jean-Philippe Bernardy
On Fri, Aug 7, 2009 at 10:35 PM, Jeff Wheeler wrote: > > The problem with this solution is that Yi.Boot needs to be recompiled > before the changes are recognized, so I have to `touch src/Yi/Boot.hs' > to enable -fhacking. This won't do … That's a tad annoying indeed. >>   I don't see how to do

Re: darcs patch: -fhacking

2009-08-07 Thread Jeff Wheeler
The problem with this solution is that Yi.Boot needs to be recompiled before the changes are recognized, so I have to `touch src/Yi/Boot.hs' to enable -fhacking. This won't do … On Aug 7, 1:39 pm, Jeff Wheeler wrote: > Fri Aug  7 13:38:20 CDT 2009  Jeff Wheeler >   * -fhacking > >   I don't see

patch applied (yi): Small -Wall

2009-08-07 Thread Jeff Wheeler
Fri Aug 7 16:19:40 EDT 2009 Jeff Wheeler * Small -Wall Ignore-this: a47f4362b5843092857f46d9946c063c I can't figure out how to get rid of the Interact import warning. GHC warns that nothing from it is used, but when it's removed, it errors on several missing definitions. M ./s

Re: Issue 276 in yi-editor: HConf should be a standalone package

2009-08-07 Thread Jeff Wheeler
On Fri, Aug 7, 2009 at 2:57 AM, Jean-Philippe Bernardy wrote: >> In the Vim keymap I regularly use the restart feature. Mainly to off-load the >> Yi memory :) > > Good idea :) Even though it's not the intended benefit, this is quite > effective. Indeed, I like this too. I've started doing this

darcs patch: -fhacking

2009-08-07 Thread Jeff Wheeler
Fri Aug 7 13:38:20 CDT 2009 Jeff Wheeler * -fhacking I don't see how to do this the HConf way. If you think this is okay, please commit. --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~

Re: yi doesn't run

2009-08-07 Thread Jean-Philippe Bernardy
On Fri, Aug 7, 2009 at 7:18 PM, wrote: > Btw: as of now, you need an invitation from some member of the mailing > list in order to subscribe to it using a non-gmail e-mail, which is > kinda strange. The setting says "anyone can join". I'm afraid I can't improve the situation very much. With "an

Re: patch applied (yi): Replace HConf with Dyre

2009-08-07 Thread Jean-Philippe Bernardy
On Fri, Aug 7, 2009 at 5:39 PM, Jeff Wheeler wrote: > > On Fri, Aug 7, 2009 at 4:36 AM, Jean-Philippe > Bernardy wrote: > >> Is there any way to disable recompilation and use the code in the static >> binary? >> (ie. the former -fhacking functionality?) > > I've been trying to think through the b

Re: patch applied (yi): Create -fcautiousWrites flag

2009-08-07 Thread Jean-Philippe Bernardy
On Fri, Aug 7, 2009 at 5:50 PM, Jeff Wheeler wrote: > > On Aug 7, 10:10 am, Jean-Philippe Bernardy > wrote: > >> I'd ask the maintainer to as least consider making the library >> gracefully degrade >> on Windows instead of failing to compile. > > Alright, I'm cc'ing Robin, the maintainer. If the

Re: yi doesn't run

2009-08-07 Thread Jeff Wheeler
On Fri, Aug 7, 2009 at 12:34 PM, Robin Green wrote: > I posted a patch to > simply require a newer version of cautious-file but I didn't see a commit message, > so I don't think it got applied. It was applied; that's why I had Phillip pull the latest patches (when I talked to him in the IRC chan

Re: yi doesn't run

2009-08-07 Thread Robin Green
2009/8/7 > > hi. > i'm using yi (darcs version of course) for like 1 1/2 weeks, and i noticed > today that i couldn't > create new files using C-x C-f (seems to be a known issue) I think this issue with *creating* files is my fault - sorry. You probably need to upgrade to the latest version of

Re: Request for help with testing upcoming VTY release.

2009-08-07 Thread Corey O'Connor
Thanks for the help everybody! I have enough data for now. I'll resolve as many of the identified issues as I can and then ask again for your help. Cheers, Corey O'Connor On Thu, Aug 6, 2009 at 2:39 PM, Corey O'Connor wrote: > I've been working on overhauling VTY for: > * variable column unico

yi doesn't run

2009-08-07 Thread philipp
hi. i'm using yi (darcs version of course) for like 1 1/2 weeks, and i noticed today that i couldn't create new files using C-x C-f (seems to be a known issue). that's why i pulled the latest patches from darcs and tried to build it again, which, concerning the build process itself, was successfu

patch applied (yi): Further simplify Pango cleanup

2009-08-07 Thread Jeff Wheeler
Fri Aug 7 12:44:15 EDT 2009 Jeff Wheeler * Further simplify Pango cleanup Ignore-this: c14446d5fb767eda23a93fb8f53eab03 M ./src/Yi/UI/Pango.hs -2 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/

patch applied (yi): Cleanup cmd prompt in Pango

2009-08-07 Thread Jeff Wheeler
Fri Aug 7 12:42:15 EDT 2009 Jeff Wheeler * Cleanup cmd prompt in Pango Ignore-this: addad521132db83c7a42aac5584e9be M ./src/Yi/UI/Pango.hs -2 +2 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/y

Re: patch applied (yi): Create -fcautiousWrites flag

2009-08-07 Thread Jeff Wheeler
On Aug 7, 10:10 am, Jean-Philippe Bernardy wrote: > I'd ask the maintainer to as least consider making the library > gracefully degrade > on Windows instead of failing to compile. Alright, I'm cc'ing Robin, the maintainer. If the package is updated, then I'll remove the Windows checks. > I'd d

patch applied (yi): Use os(windows) instead of flag(cautiousWrites)

2009-08-07 Thread Jeff Wheeler
Fri Aug 7 11:47:09 EDT 2009 Jeff Wheeler * Use os(windows) instead of flag(cautiousWrites) Ignore-this: 41b3e380a053594714a7ef4f999b6cad M ./src/Data/Rope.hs -1 +3 M ./yi.cabal -5 +2 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googleg

Re: patch applied (yi): Replace HConf with Dyre

2009-08-07 Thread Jeff Wheeler
On Fri, Aug 7, 2009 at 4:36 AM, Jean-Philippe Bernardy wrote: > Is there any way to disable recompilation and use the code in the static > binary? > (ie. the former -fhacking functionality?) I've been trying to think through the best way to implement -fhacking in relation to Dyre. I would use

Re: Needs pushing: darcs patch: Added -threaded to ghcOpts to dyre

2009-08-07 Thread Deniz Dogan
2009/8/7 Sjur Gjøstein Karevoll : > Someone push this? > > Fri Aug  7 17:11:58 CEST 2009  sjurberen...@gmail.com >  * Added -threaded to ghcOpts to dyre. Also added -O2 for good measure > Done -- Deniz Dogan --~--~-~--~~~---~--~~ Yi development mailing list yi-d

patch applied (yi): Added -threaded to ghcOpts to dyre. Also added -O2 for good measure

2009-08-07 Thread Deniz Dogan
Fri Aug 7 11:11:58 EDT 2009 sjurberen...@gmail.com * Added -threaded to ghcOpts to dyre. Also added -O2 for good measure Ignore-this: 5f2dd1abf7ca9b7732a5606d681ac964 M ./src/Yi/Boot.hs +1 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@google

Needs pushing: darcs patch: Added -threaded to ghcOpts to dyre

2009-08-07 Thread Sjur Gjøstein Karevoll
Someone push this? Fri Aug 7 17:11:58 CEST 2009 sjurberen...@gmail.com * Added -threaded to ghcOpts to dyre. Also added -O2 for good measure --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~--

patch applied (yi): Data.Rope: Wall police.

2009-08-07 Thread Deniz Dogan
Fri Aug 7 11:16:30 EDT 2009 deniz.a.m.do...@gmail.com * Data.Rope: Wall police. Ignore-this: 1ed8b505ebea327c6835a03522aa405c M ./src/Data/Rope.hs -3 +4 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/

Re: patch applied (yi): Create -fcautiousWrites flag

2009-08-07 Thread Jean-Philippe Bernardy
On Fri, Aug 7, 2009 at 5:04 PM, Jeff Wheeler wrote: > I'm indifferent. It seems odd for the library to silently fail and > fallback to just writing files normally, but if the package author > implements this, I'm more than happy to revert my patch. In the > meantime, anders reported that he wasn'

Re: patch applied (yi): Create -fcautiousWrites flag

2009-08-07 Thread Jeff Wheeler
On Aug 7, 9:59 am, Jean-Philippe Bernardy wrote: > Shouldn't this be abstracted in the library? I'm indifferent. It seems odd for the library to silently fail and fallback to just writing files normally, but if the package author implements this, I'm more than happy to revert my patch. In the m

Re: patch applied (yi): Create -fcautiousWrites flag

2009-08-07 Thread Jean-Philippe Bernardy
On Fri, Aug 7, 2009 at 4:12 PM, Jeff Wheeler wrote: > > Fri Aug  7 10:10:02 EDT 2009  Jeff Wheeler >  * Create -fcautiousWrites flag >  Ignore-this: aa928f59b0504cf929fc1add772c238c > >  cautious-file doesn't work on Windows (does a lot of POSIX FFI), so create a >  flag for Windows users. I don'

patch applied (yi): Create -fcautiousWrites flag

2009-08-07 Thread Jeff Wheeler
Fri Aug 7 10:10:02 EDT 2009 Jeff Wheeler * Create -fcautiousWrites flag Ignore-this: aa928f59b0504cf929fc1add772c238c cautious-file doesn't work on Windows (does a lot of POSIX FFI), so create a flag for Windows users. I don't immediately see how to make this automatically disabled

patch applied (yi): update Makefile to HConf's removal

2009-08-07 Thread Jean-Philippe Bernardy
Fri Aug 7 10:01:27 EDT 2009 jeanphilippe.berna...@gmail.com * update Makefile to HConf's removal Ignore-this: c89d669230d4866cf7efa5cd245a06b8 M ./Makefile -1 +1 --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.go

Re: patch applied (yi): Replace HConf with Dyre

2009-08-07 Thread Jeff Wheeler
On Fri, Aug 7, 2009 at 2:58 AM, Jean-Philippe Bernardy wrote: > I've put back the file for now. > > Good work besides! Whoops, I forgot to add the -boot file back, after I had removed it in a previous version of the patch. My bad; yours is the same as the one I had forgotten. Anyways, thanks. :

Re: ANNOUNCE: Dyre - Dynamic Program Recompilation (Xmonad-style configuration)

2009-08-07 Thread Jeff Wheeler
On Fri, Aug 7, 2009 at 1:53 AM, Will Donnelly wrote: > Thanks for pointing that out. I was under the (mistaken) impression > that I simply setting the GHC's current directory to the cache > directory would make it do that. I have uploaded Dyre version 0.6.1, > which uses the '-odir' and '-hidir'

Re: ANNOUNCE: Dyre - Dynamic Program Recompilation (Xmonad-style configuration)

2009-08-07 Thread David Waern
2009/8/7 Kalman Noel : > A typeclass is of little use if you only ever use it for one > type, and only call the methods in one place. If you export a generally useful class your users might recognize its utility in other places, and eventually it might get promoted to its own package, or some mor

Re: ANNOUNCE: Dyre - Dynamic Program Recompilation (Xmonad-style configuration)

2009-08-07 Thread Kalman Noel
David Waern: >> The type class could provide an interface for serializing and writing >> the state to disk. Instances could choose to use Read/Show, Binary or >> whatever they want, or am I missing something? > > That was badly explained. I mean something like this: > > class Serialize a where >

Re: ANNOUNCE: Dyre - Dynamic Program Recompilation (Xmonad-style configuration)

2009-08-07 Thread David Waern
2009/8/7 Will Donnelly : > >> class Serialize a where >>   read :: FilePath -> IO a >>   write :: a -> FilePath -> IO () > > I understand that approach. My feeling on the matter is that it is a > bad idea if taken to its logical conclusion. Eventually every library > that could possibly need to se

Re: patch applied (yi): Replace HConf with Dyre

2009-08-07 Thread Jean-Philippe Bernardy
Is there any way to disable recompilation and use the code in the static binary? (ie. the former -fhacking functionality?) Thanks, -- JP --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~-

Re: Request for help with testing upcoming VTY release.

2009-08-07 Thread Anders Karlsson
When running this in Terminal 2.0.2 (default terminal on mac) in Mac OS X 10.5.7 it fails on the first test with Ginteractive_terminal_test: Maybe.fromJust: Nothing make: *** [interactive_terminal_test] Error 1 in iTerm on the other hand it works fine. /Anders K On Thu, Aug 6, 2009 at 11:39 PM

Re: patch applied (yi): Replace HConf with Dyre

2009-08-07 Thread Jean-Philippe Bernardy
I've put back the file for now. Good work besides! -- JP On Fri, Aug 7, 2009 at 9:46 AM, Jean-Philippe Bernardy wrote: > This seems to break the build: Yi/Boot.hs-boot is still used in a > couple of places. > > Cheers, > JP. > > On Fri, Aug 7, 2009 at 4:45 AM, Jeff > Wheeler wrote: >> >> Thu Aug

Re: Issue 276 in yi-editor: HConf should be a standalone package

2009-08-07 Thread Jean-Philippe Bernardy
On Fri, Aug 7, 2009 at 12:56 AM, Nicolas Pouillard wrote: > In the Vim keymap I regularly use the restart feature. Mainly to off-load the > Yi memory :) Good idea :) Even though it's not the intended benefit, this is quite effective. As far as I can see Jeff/Will preserved the feature, so everyt

patch applied (yi): put back ./src/Yi/Boot.hs-boot

2009-08-07 Thread Jean-Philippe Bernardy
Fri Aug 7 03:55:54 EDT 2009 jeanphilippe.berna...@gmail.com * put back ./src/Yi/Boot.hs-boot Ignore-this: 3ef65ba478b225e58d3ae5ecdd7a226d A ./src/Yi/Boot.hs-boot --~--~-~--~~~---~--~~ Yi development mailing list yi-devel@googlegroups.com http://groups.g

patch applied (yi): Pass the relevant region to hlGetTree

2009-08-07 Thread Jean-Philippe Bernardy
Fri Aug 7 03:48:05 EDT 2009 jeanphilippe.berna...@gmail.com * Pass the relevant region to hlGetTree Ignore-this: ddca19cac4ccd2092165d10da7f76f89 M ./src/Yi/Buffer/Implementation.hs -2 +3 M ./src/Yi/Buffer/Misc.hs -11 +18 M ./src/Yi/Core.hs -1 +1 M ./src/Yi/Misc.hs -2 +2

Re: patch applied (yi): Replace HConf with Dyre

2009-08-07 Thread Jean-Philippe Bernardy
This seems to break the build: Yi/Boot.hs-boot is still used in a couple of places. Cheers, JP. On Fri, Aug 7, 2009 at 4:45 AM, Jeff Wheeler wrote: > > Thu Aug  6 22:44:43 EDT 2009  Jeff Wheeler >  * Replace HConf with Dyre >  Ignore-this: 6eaa2b9095f94f42ed4807a7cc245a80 > >    R ./src/HConf/

Re: ANNOUNCE: Dyre - Dynamic Program Recompilation (Xmonad-style configuration)

2009-08-07 Thread Jean-Philippe Bernardy
On Fri, Aug 7, 2009 at 1:27 AM, Will Donnelly wrote: > The real reason I chose to follow XDG guidelines by default was just > so I would have an official "~/.cache/" directory to store the > generated binary in. But that aside, I'm not so sure how good an > argument "unix tradition" is. On my sys

Re: Request for help with testing upcoming VTY release.

2009-08-07 Thread Jean-Philippe Bernardy
On Fri, Aug 7, 2009 at 12:17 AM, Jeff Wheeler wrote: > > On Thu, Aug 6, 2009 at 4:58 PM, Deniz Dogan wrote: > >> I was running this test and it seemed pretty straight-forward, but on >> test #4 (using "image ops"), everything is "striked through" on the >> screen. When I hit RET and come back to t