Nicolas Pouillard | 3 Jan 18:29 2010
Picon

Re: Splitting out Yi.Char.Unicode

Excerpts from Gwern Branwen's message of Wed Dec 23 21:50:02 +0100 2009:
> So I was planning a Unicodifying plugin for Gitit using
> Yi.Char.Unicode, since I'd rather not come up with all the
> substitutions myself. But I don't want to copy it, and I'd rather
> encourage reuse.
> 
> There are already 3 packages on Hackage which replace operators with symbols:
> 
> - http://hackage.haskell.org/package/base-unicode-symbols
> - http://hackage.haskell.org/package/containers-unicode-symbols
> - http://hackage.haskell.org/package/unicode-prelude
> 
> Perhaps we could split out *.Unicode to those packages? It oughtn't
> cause any portability problems, since none of the 3 depend on anything
> more than containers or base.

First. Sorry for my late participation and partial redundancy with other
replies.

Second. Yes I think that Yi.Char.Unicode should have a separate package,
actually I extend it regularly and use it outside of Yi: to generate
my .XCompose file from Haskell.

Third. Having a package for Yi.Char.Unicode would not override with any
of the three mentioned packages since there contents is different.
These three packages provides aliases to existing Haskell functions
but with nicer names i.e. using Unicode characters. While this module
aims at providing a convenient for an increasing number of Unicode
symbols.

(Continue reading)

gwern0 | 7 Jan 16:09 2010
Picon

darcs patch: IReader.hs: hlint, whitespace (and 2 more)

Thu Jan  7 10:00:41 EST 2010  gwern0@...
  * IReader.hs: hlint, whitespace

Thu Jan  7 10:01:26 EST 2010  gwern0@...
  * IReader.hs: add shift functionality to allow expressing 'priorities'
  SuperMemo associates each article with a number, and then applies the spaced repetition formula.
  But I prefer simpler code - and since we have a circular list of articles, higher priorities can
  force articles to come up sooner just by putting the article not at the end, but 10 before the end,
  for example. Of course, this means the priority of an article changes completely every time you save
  the article, but that's fine with me.

Thu Jan  7 10:03:58 EST 2010  gwern0@...
  * Mode.Reader: make use of shift functionality
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
Gwern Branwen | 7 Jan 17:11 2010
Picon

Yi & data-accessor's template-haskell issues on 6.10

darcs Yi uses data-accessor-template, which uses template-haskell
Cabal-install naturally tries to install the latest, 2.4.0.0.
Fortunately, the latest doesn't compile on 6.10.2, because if it did,
as a core package, it would probably screw everything up.

You have to do something like 'cabal install
--constraint='template-haskell < 2.4'. You can't edit yi.cabal easily
because it doesn't directly mention template-haskell - it's a dep of a
dep, and it's bad to (even using a flag conditional on GHC version)
specify stuff about indirect deps, I feel.

Is there anyway data-accessor-template could be tweaked or fixed to
work in this situation without any user intervention?

-- 
gwern
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
Nicolas Pouillard | 7 Jan 17:13 2010

patch applied (yi): Yi.Char.Unicode: add a reversed backquote

Thu Jan  7 11:11:56 EST 2010  Nicolas Pouillard <nicolas.pouillard@...>
  * Yi.Char.Unicode: add a reversed backquote
  Ignore-this: aeadc218c14e145ba5d6b5b6ab4d1e61

    M ./src/Yi/Char/Unicode.hs +1
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
Robin Green | 7 Jan 21:27 2010
Picon

Re: Yi & data-accessor's template-haskell issues on 6.10

Shouldn't cabal-install avoid reinstalling packages that are bundled with GHC? The cabal upgrade command has been disabled for that very reason.

I can see how that would be a problem though, as cabal probably has no way of knowing which packages were bundled with GHC.
--
Robin

2010/1/7 Gwern Branwen <gwern0-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
darcs Yi uses data-accessor-template, which uses template-haskell
Cabal-install naturally tries to install the latest, 2.4.0.0.
Fortunately, the latest doesn't compile on 6.10.2, because if it did,
as a core package, it would probably screw everything up.

You have to do something like 'cabal install
--constraint='template-haskell < 2.4'. You can't edit yi.cabal easily
because it doesn't directly mention template-haskell - it's a dep of a
dep, and it's bad to (even using a flag conditional on GHC version)
specify stuff about indirect deps, I feel.

Is there anyway data-accessor-template could be tweaked or fixed to
work in this situation without any user intervention?

--
gwern

--
Yi development mailing list
yi-devel-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
http://groups.google.com/group/yi-devel

--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
Jean-Philippe Bernardy | 8 Jan 14:53 2010

patch applied (yi): IReader.hs: add shift functionality to allow expressing 'priorities'

Thu Jan  7 10:01:26 EST 2010  gwern0@...
  * IReader.hs: add shift functionality to allow expressing 'priorities'
  Ignore-this: 40f09f42bdd141cc6545b0bb049d7d00
  SuperMemo associates each article with a number, and then applies the spaced repetition formula.
  But I prefer simpler code - and since we have a circular list of articles, higher priorities can
  force articles to come up sooner just by putting the article not at the end, but 10 before the end,
  for example. Of course, this means the priority of an article changes completely every time you save
  the article, but that's fine with me.

    M ./src/Yi/IReader.hs -5 +15
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
Jean-Philippe Bernardy | 8 Jan 14:53 2010

patch applied (yi): IReader.hs: hlint, whitespace

Thu Jan  7 10:00:41 EST 2010  gwern0@...
  * IReader.hs: hlint, whitespace
  Ignore-this: 3176d4a3f5ba62f68f511b786b0e938

    M ./src/Yi/IReader.hs -3 +3
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
Jean-Philippe Bernardy | 8 Jan 14:53 2010

patch applied (yi): Mode.Reader: make use of shift functionality

Thu Jan  7 10:03:58 EST 2010  gwern0@...
  * Mode.Reader: make use of shift functionality
  Ignore-this: efd43888ba228d9e2e0ec3bfb4f86799

    M ./src/Yi/Mode/IReader.hs -4 +6
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
Corey O'Connor | 14 Jan 06:28 2010
Picon

Re: Can't build with -fpango

On Fri, Dec 11, 2009 at 11:24 AM, Lyle <lylewins@...> wrote:
> On Dec 10, 5:46 pm, Jeff Wheeler <j...@...> wrote:
>> The gtk frontend no longer exists; you should be using -fpango (which
>> has the same dependency as -fgtk had).
> I have to say that the cursor movement is better in the pango version
> than vty. Although the movement isn't super fast, it's fast enough,
> and the important thing is that the cursor doesn't lag behind key
> input: when I let go of the arrow key, it stops. And the cursor is
> visible while moving. Fantastic!

Hi again!

If you could do me a favor:  Can you compare yi built against vty
4.2.0.1 ( The latest from hackage ) against a build using the latest
vty from darcs?

I have done some further minor optimizations. Benchmarks indicate the
slowest area of vty is now at least 2X faster. I'm curious if this
improves your experience with yi and vty. On my machine there is no
noticable difference in yi's performance; Even though the benchmarks
indicate the code is more optimal.

Thanks,
Corey O'Connor

> --
> Yi development mailing list
> yi-devel@...
> http://groups.google.com/group/yi-devel
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel
Jens Petersen | 17 Jan 10:58 2010
Picon

Re: Yi for GHC 6.12.1

2009/12/30 Corey O'Connor <coreyoconnor@...>
> I spoke too soon. The derive package fails to install. Looks like it
> is not compatible with the current version of template-haskell.

I managed to install derive-2.1.0 but then reached:

[104 of 122] Compiling Yi.Syntax.JavaScript (
src/Yi/Syntax/JavaScript.hs, dist/build/Yi/Syntax/JavaScript.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.3.0.0 ... linking ... done.
Loading package bytestring-0.9.1.5 ... linking ... done.
Loading package containers-0.3.0.0 ... linking ... done.
Loading package mtl-1.1.0.2 ... linking ... done.
Loading package syb-0.1.0.2 ... linking ... done.
Loading package base-3.0.3.2 ... linking ... done.
Loading package parallel-1.1.0.1 ... linking ... done.
Loading package parsec-2.1.0.1 ... linking ... done.
Loading package extensible-exceptions-0.1.1.1 ... linking ... done.
Loading package terminfo-0.3.1.1 ... linking ... done.
Loading package unix-2.4.0.0 ... linking ... done.
Loading package utf8-string-0.3.6 ... linking ... done.
Loading package MemoTrie-0.4.7 ... linking ... done.
Loading package vector-space-0.5.7 ... linking ... done.
Loading package vty-4.2.1.0 ... linking ... done.
Loading package unix-compat-0.1.2.1 ... linking ... done.
Loading package split-0.1.2 ... linking ... done.
Loading package rosezipper-0.1 ... linking ... done.
Loading package regex-base-0.93.1 ... linking ... done.
Loading package regex-tdfa-1.1.2 ... linking ... done.
Loading package binary-0.5.0.2 ... linking ... done.
Loading package pureMD5-1.0.0.3 ... linking ... done.
Loading package transformers-0.1.4.0 ... linking ... done.
Loading package data-accessor-0.2.1.2 ... linking ... done.
Loading package pointedlist-0.3.5 ... linking ... done.
Loading package glib-0.10.1 ... linking ... done.
Loading package cairo-0.10.1 ... linking ... done.
Loading package gtk-0.10.1 ... linking ... done.
Loading package gconf-0.10.1 ... linking ... done.
Loading package fingertree-0.0.1.0 ... linking ... done.
Loading package filepath-1.1.0.3 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package old-time-1.0.0.3 ... linking ... done.
Loading package directory-1.0.1.0 ... linking ... done.
Loading package executable-path-0.0.1 ... linking ... done.
Loading package ghc-paths-0.1.0.6 ... linking ... done.
Loading package io-storage-0.3 ... linking ... done.
Loading package process-1.0.1.2 ... linking ... done.
Loading package regex-posix-0.94.1 ... linking ... done.
Loading package regex-compat-0.92 ... linking ... done.
Loading package xdg-basedir-0.2 ... linking ... done.
Loading package dyre-0.8.2 ... linking ... done.
Loading package dlist-0.5 ... linking ... done.
Loading package time-1.1.4 ... linking ... done.
Loading package random-1.0.0.2 ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package cpphs-1.9 ... linking ... done.
Loading package pretty-1.0.1.1 ... linking ... done.
Loading package haskell-src-exts-1.3.5 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package uniplate-1.3 ... linking ... done.
Loading package derive-2.1.0 ... linking ... done.
Loading package utility-ht-0.0.5.1 ... linking ... done.
Loading package data-accessor-template-0.2.1.2 ... linking ... done.
Loading package monads-fd-0.0.0.1 ... linking ... done.
Loading package data-accessor-monads-fd-0.2 ... linking ... done.
Loading package cautious-file-0.1.5 ... linking ... done.
Loading package QuickCheck-2.1.0.2 ... linking ... done.
Loading package Diff-0.1.2 ... linking ... done.
Loading package Cabal-1.8.0.2 ... linking ... done.
Loading package ffi-1.0 ... linking ... done.

src/Yi/Syntax/JavaScript.hs:103:2:
    Not in scope: `Data.Foldable.foldr'

:
<repeated many times>
:

src/Yi/Syntax/JavaScript.hs:103:2:
    Not in scope: `Data.Foldable.foldr'
cabal: Error: some packages failed to install:
yi-0.6.1 failed during the building phase. The exception was:
ExitFailure 1
--

-- 
Yi development mailing list
yi-devel@...
http://groups.google.com/group/yi-devel

Gmane