Re: [Haskell-cafe] Deconstructing types

2009-09-07 Thread Sean Leather
> I don't know a thing about SYB, Data.Data, or Data.Typeable, mostly because > I'm an efficiency fanatic. Nevertheless, I'd like to know whether or not > there's a way to deconstruct a (mostly) arbitrary type, into tuples, unions, > etc. using this framework. Any thoughts? > You can use the Tem

[Haskell-cafe] ANNOUNCE: dbmigrations 0.1

2009-09-07 Thread Jonathan Daugherty
dbmigrations is: A library and program for the creation, management, and installation of schema updates (called migrations) for a relational database. In particular, this package lets the migration author express explicit dependencies between migrations and the management tool automatically instal

Fwd: [Haskell-cafe] Native windowing for glut applications on OS X.

2009-09-07 Thread Lyndon Maydwell
I just realized that I only replied to Brandon. Sorry about that :) -- Forwarded message -- From: Lyndon Maydwell Date: Sat, Sep 5, 2009 at 4:22 PM Subject: Re: [Haskell-cafe] Native windowing for glut applications on OS X. To: "Brandon S. Allbery KF8NH" I installed opengl via

[Haskell-cafe] Deconstructing types

2009-09-07 Thread Louis Wasserman
Yo, I don't know a thing about SYB, Data.Data, or Data.Typeable, mostly because I'm an efficiency fanatic. Nevertheless, I'd like to know whether or not there's a way to deconstruct a (mostly) arbitrary type, into tuples, unions, etc. using this framework. Any thoughts? Louis Wasserman wasserma

[Haskell-cafe] How to use Template Haskell build Map?

2009-09-07 Thread Andy Stewart
Hi all, I have below instances: instance PageViewState DiredViewState where instance PageViewState StringViewState where I can use Language.Haskell.Exts.Parser scan above instances got list: typeList :: [Type] typeList = [TyCon (UnQual (Ident "DiredViewState")),TyCon

[Haskell-cafe] hmatrix on os x

2009-09-07 Thread Ben
hello -- 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 installing gsl and g

[Haskell-cafe] Re: How to generate the .chi file for c2hs?

2009-09-07 Thread Magicloud Magiclouds
Hum, seems like the c2hs in gtk2hs is a non-standard version, and the chi it gives could not be used by c2hs (nor can standard c2hs used in gtk2hs's compiling) On Mon, Sep 7, 2009 at 4:45 PM, Magicloud Magiclouds wrote: > Hi, >  I want to make a binding of a gtk function, which returns a X11 t

Re: [Haskell-cafe] ANNOUNCE: Palindromes 0.1

2009-09-07 Thread Johan Jeuring
On 07 Sep 2009, at 21:21, Rafael Cunha de Almeida wrote: Johan Jeuring wrote: Palindromes == Palindromes is a package for finding palindromes in files. Visit the homepage http://www.jeuring.net/Palindromes/ A few options are not working well:

Re: [Haskell-cafe] haskelldb and Debian

2009-09-07 Thread Justin Bailey
Joachim, I am maintaing the haskelldb package and it is definitely alive and well. I don't have a Debian install to test on, but I am glad to help get things compiling. See my detailed answers below: On Mon, Sep 7, 2009 at 11:04 AM, Joachim Breitner wrote: > > * Are the haskelldb-hsql-* and has

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

2009-09-07 Thread David Menendez
2009/9/6 Günther Schmidt : > > I keep reading in and processing data in an accumulating way, ie. lets say I > have a DB table (don't take this literally please, just an example), into > in-memory records of type > > data MyRecord = MyRecord { >        name :: String, >        birthDate :: LocalDate

Re: [Haskell-cafe] ANNOUNCE: Palindromes 0.1

2009-09-07 Thread Rafael Cunha de Almeida
Johan Jeuring wrote: > Palindromes > == > > Palindromes is a package for finding palindromes in files. > > Visit the homepage > > http://www.jeuring.net/Palindromes/ > A few options are not working well: $ ./palindromes --h * *

[Haskell-cafe] haskelldb and Debian

2009-09-07 Thread Joachim Breitner
Hi Haskell-DB-interested people, we are still on our way to get the Haskell coverage on Debian back in a good shape. One of the open issues is haskelldb, haskelldb-dynamic and haskelldb-hsql-*. All of these are on 0.10 [1] and do not build with ghc-6.10. It seems that at least haskelldb itself has

Re: [Haskell-cafe] Cabal install specific version of a package

2009-09-07 Thread Duncan Coutts
On Wed, 2009-09-02 at 21:12 +0400, Grigory Sarnitskiy wrote: > How to install specific version of a package (derive 0.1.4)? For other examples see the --help output: $ cabal install --help [..snip..] Examples: cabal install Package in the current directory cabal install

Re: [Haskell-cafe] Problem on existential type.

2009-09-07 Thread Magicloud Magiclouds
Thank you all guys. This explained so much. On Sun, Sep 6, 2009 at 2:53 AM, Ryan Ingram wrote: > On Thu, Sep 3, 2009 at 11:05 PM, Magicloud > Magiclouds wrote: >> data GridWidget = forall widget. (WidgetClass widget) => GridWidget widget >> >> liftGW :: (GridWidget widget) -> (widget -> t) -> t >>

[Haskell-cafe] How to generate the .chi file for c2hs?

2009-09-07 Thread Magicloud Magiclouds
Hi, I want to make a binding of a gtk function, which returns a X11 type. gtk2hs is made by c2hs, which is OK to give me the .chi file. Well, X11 is not. So if I make my binding c2hs style, I have to make a .chi file for X11 myself. How to do it? -- 竹密岂妨流水过 山高哪阻野云飞 _