Re: [Haskell-cafe] Takusen: *** Exception: readUTF8Char: illegal UTF-8 character 252

2009-09-08 Thread Alistair Bayley
Hello Günther, It looks like Access is not using UTF8 as its text encoding. I have Access at work, so I can look into this at some point. The ODBC code assumes the encoding is always UTF8. For some drivers (e.g. PostgreSQL) you must configure the ODBC driver correctly to provide UTF8. Does Takus

Re: [Haskell-cafe] HList and Type signatures / synonyms

2009-09-08 Thread Justin Bailey
Gunther, I've got a little experience with HList - read below. 2009/9/6 Günther Schmidt : > Hi, > > I keep accumulating values and right now use plain tuples for that. I end up > with a 12 element tuple and things are a bit messy. > > I'd like to use extensible Records from HList instead, thing i

Re: [Haskell-cafe] problems with HOC install from svn

2009-09-08 Thread Ross Mellgren
I have binary-0.5 not binary-0.5.0.1, but it doesn't have any dylibs. Moreover, I was under the impression that GHC does not yet support shared libraries like those, so I'm not sure why it would be looking for one. I can't really speculate, maybe more of the build output might help? -Ross

Re: [Haskell-cafe] problems with HOC install from svn

2009-09-08 Thread John Velman
Thanks. Now I do have libHSbinary-0.5.0.1.a in /usr/local/lib, but apparently not the dylib version. Tomorrow I'll look further. Perhaps there are some options to produce dylib libraries. I've used Haskell on Linux some time ago (but not Cabal), and have been Xcoding with Objective C for a yea

Re: [Haskell-cafe] problems with HOC install from svn

2009-09-08 Thread Ross Mellgren
It sounds like it's looking for the binary package -- you should install it using cabal, e.g. private (per-user) install: cabal update cabal install binary global (system-wide) install: sudo cabal update sudo cabal install --global binary -Ross On Sep 8, 2009, at 7:57 PM, John Velman wrote:

[Haskell-cafe] problems with HOC install from svn

2009-09-08 Thread John Velman
I'm unable to build HOC from the svn read-only checkout. Here are some details of what I'm doing. I'm running OS X 10.5.8 on an intel iMac with Xcode is 3.1.3. Haskel and Cabal are from the Haskel platform, haskell-platform-2009.2.0.2-i386.dmg I got Parsec 3.0 from Hackage. I checked out HOC

Re: [Haskell-cafe] How to understand the 'forall' ?

2009-09-08 Thread Ryan Ingram
On Tue, Sep 8, 2009 at 12:44 PM, Daniil Elovkov wrote: > Existential is a perfect word, because it really is > data S = exists a. Show a => S [a]. If you were going to make "exists" a keyword, I think you would write it like this: > data S = ConsS (exists a. Show a => [a]) To contrast: > data G

Re: [Haskell-cafe] ANN: fclabels-0.4.0 - First class accessor labels.

2009-09-08 Thread Henning Thielemann
On Fri, 4 Sep 2009, Sebastiaan Visser wrote: Hello all, There are more package around that serve the same purpose (like the Lenses package which was uploaded a few days ago), but I'm convinced the simplicity and elegance of fclabels will strike you all. ;-) How does it compare to data-acce

[Haskell-cafe] Takusen: *** Exception: readUTF8Char: illegal UTF-8 character 252

2009-09-08 Thread Günther Schmidt
Hi all, I'm trying to use Takusen ODBC on Windows. I'm using a German WinXP Pro and try to connect to an MS Access database. As soon as I try to do some inserts the above mentioned exception shows up. Does anyone know a work around for this? Günther

Re: [Haskell-cafe] How to understand the 'forall' ?

2009-09-08 Thread Daniil Elovkov
Eugene Kirpichov wrote: P.S. I tried to write up the difference between datatype and function declarations in this respect, but my explanations turned into a mess, so I erased them in the hope that someone will explain it better than me. Hello Eugene, I'll give it a try. In a non-constructiv

[Haskell-cafe] ANNOUNCE: uvector-algorithms 0.2

2009-09-08 Thread Dan Doel
Greetings, It is my pleasure to announce version 0.2 of the uvector-algorithms package. The package so far has implementations of several sorting and selection algorithms for use on the mutable arrays from the uvector library, as well as combinators for applying them to immutable arrays. New d

Re: [Haskell-cafe] Deconstructing types

2009-09-08 Thread Louis Wasserman
Oh, geez. Wrong link. I meant http://portal.acm.org/citation.cfm?id=967471 . Louis Wasserman wasserman.lo...@gmail.com On Tue, Sep 8, 2009 at 1:06 PM, Louis Wasserman wrote: > Sean, > > The answer is, I'm working on a recently semi-released package called > TrieMap. > > The objective of th

Re: [Haskell-cafe] Deconstructing types

2009-09-08 Thread Sean Leather
> The answer is, I'm working on a recently semi-released package called > TrieMap. > > The objective of this package, building off of the work in this > paper, > is to automatically derive the type of a generalized tr

Re: [Haskell-cafe] Re: ForeignFunPtr

2009-09-08 Thread mf-hcafe-15c311f0c
You are right, I forgot about callbacks. freeHaskellFunPtr is only for Haskell functions packaged for usage by the foreign code. Example from the FFI specification, Section 5.4.2: type Compare = Int -> Int -> Bool foreign import ccall "wrapper" mkCompare :: Compare -> IO (FunPtr Compare) If

Re: [Haskell-cafe] Deconstructing types

2009-09-08 Thread Louis Wasserman
Sean, The answer is, I'm working on a recently semi-released package called TrieMap. The objective of this package, building off of the work in this paper, is to automatically derive the type of a generalized trie fo

Re: [Haskell-cafe] Re: [Haskell] Looking for a new HWN editor

2009-09-08 Thread Rafael Almeida
On Tue, Sep 8, 2009 at 8:16 AM, Benjamin L.Russell wrote: > On Sat, 5 Sep 2009 19:34:24 -0400, Brent Yorgey > wrote: > >>On Sat, Sep 05, 2009 at 05:26:08PM -0400, Brent Yorgey wrote: >>> Executive summary: >>> >>>   * I'm looking for someone to take over as HWN editor >>>   * It is highly automate

[Haskell-cafe] Ph.D position, Utrecht University, the Netherlands

2009-09-08 Thread S. Doaitse Swierstra
Subject: Ph.D position, Utrecht University, the Netherlands === Vacancy PhD student on Realizing Optimal Sharing in the Functional Language Implementations Utrecht University, The Netherlands. ===

Re: [Haskell-cafe] Cabal install on Windows 7

2009-09-08 Thread Jeff Wheeler
On Tue, Sep 8, 2009 at 9:17 AM, Peter Verswyvelen wrote: > Ouch, right, I forgot the default is global. It works fine with cabal > install --user. And of course I could have edited the default config > file, setting user-install: True > > Well, maybe for newbies this might be a bit confusing. Yep

Re: [Haskell-cafe] Cabal install on Windows 7

2009-09-08 Thread Peter Verswyvelen
Ouch, right, I forgot the default is global. It works fine with cabal install --user. And of course I could have edited the default config file, setting user-install: True Well, maybe for newbies this might be a bit confusing. Typically, under Windows Vista or 7 when you try to install something

[Haskell-cafe] Re: ANNOUNCE: dbmigrations 0.1

2009-09-08 Thread Gour
> "Jonathan" == Jonathan Daugherty writes: Jonathan> This package is motivated by the need for a Jonathan> framework-independent, solid tool to manage database schema Jonathan> changes in a clean way without assuming a linear sequence of Jonathan> changes assumed by existing tools. dbmigrati

Re: [Haskell-cafe] Cabal install on Windows 7

2009-09-08 Thread John Van Enk
Might it make sense to try and get the concept of "global" and "user" working in Windows? (It may already, but I noticed that the default seems to be global.") I don't know what technical challenges there are, but the ApplicationData directory (or AppData, or whatever) seems like a good place to s

[Haskell-cafe] Cabal install on Windows 7

2009-09-08 Thread Peter Verswyvelen
I tried the "cabal install" command on Windows 7, and I had to run it with administrative privileges, otherwise I got access denied (it failed to create the Haskell folder in C:\Program Files) Not sure if this is also the case on Vista. Is this the intended behavior? _

[Haskell-cafe] Re: [Haskell] Looking for a new HWN editor

2009-09-08 Thread Benjamin L . Russell
On Sat, 5 Sep 2009 19:34:24 -0400, Brent Yorgey wrote: >On Sat, Sep 05, 2009 at 05:26:08PM -0400, Brent Yorgey wrote: >> Executive summary: >> >> * I'm looking for someone to take over as HWN editor >> * It is highly automated and doesn't take as much time as you might >> think (about 3-

[Haskell-cafe] High memory consumption of "print"

2009-09-08 Thread Peter Robinson
The following toy program consumes either 25MB or 70MB, depending on whether the line print "done" is a comment or code. (Using only 1 OS thread increases memory consumption to 130MB when the print is active vs 25MB when inactive.) What am I doing wrong? - module Main where i

[Haskell-cafe] Failure to build curl bindings on alpha

2009-09-08 Thread Erik de Castro Lopo
Hi all, I am the Debian Maintainer of the haskell curl bindings which is failing to build on the alpha CPU with the following error: [7 of 8] Compiling Network.Curl.Easy ( Network/Curl/Easy.hs, dist/build/Network/Curl/Easy.o ) Network/Curl/Easy.hs:218:0: On Alpha, I can only handle 32

[Haskell-cafe] Re: Looking for a new HWN editor

2009-09-08 Thread John Lato
I'd just like to say a big "Thank you" to Brent for his service as the HWN editor. I appreciate it very much and always look forward to HWN. Thanks for all your work, Brent. Cheers, John > > Message: 11 > Date: Sat, 5 Sep 2009 17:26:08 -0400 > From: Brent Yorgey > Subject: [Haskell-cafe] Lookin

[Haskell-cafe] Re: hmatrix on os x

2009-09-08 Thread Heinrich Apfelmus
Ben wrote: > i've been having a heck of a time installing hmatrix on mac os x. > i've seen the help pages including > > http://mit.edu/harold/Public/easyVisionNotes.html > > but they haven't helped me. my setup is > > haskell platform 2009.2.0.2 (ghc 6.10.4) > os x 10.5 > macports -- i've tried