Re: [Haskell-cafe] plugins and cabal build

2011-04-26 Thread Andy Stewart
hem with plugins. I can get everything to work >> when I compile with "ghc --make", but I believe name mangling is >> getting in the way with the "cabal build" route. Can someone give some >> guidance on how to properly mangle the function names so that plugin

Re: [Haskell-cafe] Install GTK on Windows

2011-03-22 Thread Andy Stewart
Daniel Díaz writes: > I have installed successfully the gtk package on Windows. > > GTK version: 2.16 > gtk package version: 0.12.0 > Haskell Platform version: 2010.2.0.0 > > I have detailed my steps (very similar to Mark Shroyer steps) here: > > http://deltadiaz.blogspot.com/2011/03/on-windows-h

Re: [Haskell-cafe] Gtk2hs multiple column TreeView with ListStore issue

2011-03-20 Thread Andy Stewart
Andy Stewart writes: > Hi Кирилл, > > Here have a simplest code at > http://code.haskell.org/gtk2hs/gtk/demo/treelist/ListDemo.hs > > Cheers, > > -- Andy > > PS: > > All gtk2hs user, it's always best choose to read source code of demo >

Re: [Haskell-cafe] Gtk2hs multiple column TreeView with ListStore issue

2011-03-20 Thread Andy Stewart
Hi Кирилл, Here have a simplest code at http://code.haskell.org/gtk2hs/gtk/demo/treelist/ListDemo.hs Cheers, -- Andy PS: All gtk2hs user, it's always best choose to read source code of demo when you don't know how to fix some problem. Demo has include in Cabal package. Example,

Re: [Haskell-cafe] How large is the Haskell community ?

2011-03-17 Thread Andy Stewart
> On Sat, Feb 12, 2011 at 6:57 PM, Jan Christiansen > wrote: > > On 12.02.2011, at 21:18, Aaron Gray wrote: > > I was wondering if anyone had an idea or estimate as to how large the > Haskell community is ? > > All the answers made me wonder what the criterion is to be a member o

Re: [Haskell-cafe] Install GTK on Windows

2011-02-25 Thread Andy Stewart
Hi Daniel, Gtk2hs site is down by move server, sadly. The document on http://www.haskell.org/haskellwiki/Gtk2Hs is wrong. http://markshroyer.com/2010/10/gtk2hs-on-windows/ is right. From your error, you missing C libraries that gtk2hs need, or you have install GTK+ C library, but gtk2hs can't fi

Re: [Haskell-cafe] plugins and internal error: stg_ap_v_ret

2011-02-01 Thread Andy Stewart
On Tue, Feb 1, 2011 at 1:15 PM, Andy Stewart > wrote: >> Hi Michael, >> >> I have write some dynamic-loading code for my Manatee project >> (http://hackage.haskell.org/package/manatee) >> >> Dynload.hs use GHC API, if you interested it, you can read sou

Re: [Haskell-cafe] plugins and internal error: stg_ap_v_ret

2011-02-01 Thread Andy Stewart
l > > On Tue, Feb 1, 2011 at 4:22 AM, Andy Stewart > wrote: >> Hi Michael, >> >> plugins use it's own function instead GHC API, so it's easy to break >> with new version GHC. >> >>  -- Andy >> >> Michael Snoyman >> writes: >&

Re: [Haskell-cafe] plugins and internal error: stg_ap_v_ret

2011-01-31 Thread Andy Stewart
Hi Michael, plugins use it's own function instead GHC API, so it's easy to break with new version GHC. -- Andy Michael Snoyman writes: > Hi all, > > I'm trying to convert wai-handler-devel to use plugins instead of > hint, but cannot even get some basic usages to work properly. I've put > to

[Haskell-cafe] Manatee-0.1.8 release!

2011-01-12 Thread Andy Stewart
Hi all, Manatee-0.1.8 release! New features in manatee-0.1.8: * Manatee now can works in XMonad * Use Ping/Pong solution fix immortal render process when daemon process killed by user forcely. * Move message/status update code to extension space. * File manager can monitor file change

Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread Andy Stewart
epend on a broken package. > happstack-util-0.5.0.2 > hlint-1.8.3 > yi-0.6.2.2 > filestore-0.3.4.1 > gitit-0.7.3.6 > happstack-0.5.0.3 > happstack-server-0.5.0.2 > happstack-ixset-0.5.0.3 > happstack-data-0.5.0.2 > happstack-state-0.5.0.4 > >> ghc --version > The

Re: [Haskell-cafe] Join Manatee Team!

2011-01-10 Thread Andy Stewart
e information) > cabal: Error: some packages failed to install: > manatee-0.1.7 depends on manatee-core-0.0.7 which failed to install. > manatee-core-0.0.7 failed during the building phase. The exception was: > exit: ExitFailure 1 > > -deech > > On Mon, Jan 10, 2011 at 7:45

[Haskell-cafe] Join Manatee Team!

2011-01-10 Thread Andy Stewart
Hi all, I'm Andy, the author of Manatee ( http://haskell.org/haskellwiki/Manatee ). You can watch video http://www.youtube.com/watch?v=weS6zys3U8k (or http://www.youtube.com/watch?v=A3DgKDVkyeM ) to understand "What is it?" . :) Manatee is Haskell integrated environment written in Haskell.

[Haskell-cafe] How to write Manatee application?

2011-01-02 Thread Andy Stewart
Hi all, How to write Manatee extension? Now have answer: Please look http://www.flickr.com/photos/48809...@n02/5031811365/lightbox/ to understand framework before continue. Template code at http://hackage.haskell.org/package/manatee-template First, i explain Manatee package hierarchy: mana

[Haskell-cafe] Manatee-0.1.6 release!

2010-12-29 Thread Andy Stewart
Hi all, Manatee-0.1.6 release, sorry for late, I was tired of the many trivial this month. http://www.youtube.com/watch?v=weS6zys3U8k hackage.haskell.org/package/manatee New version Manatee support customize and hot-swap, like elisp for Emacs, but much much fast and safe. Please look ht

Re: [Haskell-cafe] How to reload module that package has linked in memory?

2010-12-25 Thread Andy Stewart
Hi Albert, Thanks for reply! "Albert Y. C. Lai" writes: > On 10-12-25 10:47 AM, Andy Stewart wrote: >> I use Linker.linkPackages and Linker.getHValue to get symbol value, but >> looks Linker.getHValue can't get *update* value once current package has >> li

[Haskell-cafe] How to reload module that package has linked in memory?

2010-12-25 Thread Andy Stewart
Hi all, I'm working on how to dynamic loading library into *running* program. I can dynamic loading/update module into *running* program if have *new* package installed. Example, when program *startup* and loading package foo-0.0.1 with function : api :: String -> String api = re

[Haskell-cafe] Looking for Haskell job at China.

2010-12-17 Thread Andy Stewart
Hi all, I'm a Chinese haskeller, i'm looking for haskell job at *China*. Please contact me if any Chinese company interested me. Below is my skills: * Java : (2007-06 ~ 2008-09) Worked on a variety of commercial J2ME games, masterpiece <> : http://goo.gl/lcJF * Elisp : (200

Re: [Haskell-cafe] ANNOUNCE: mime-mail 0.1.0

2010-12-08 Thread Andy Stewart
Michael Snoyman writes: > Hi all (again), > > I'm happy to announce the second major release of the mime-mail[1] > package. mime-mail is a package providing support for rendering > multipart emails. This new release introduces: > > * A partHeaders record, allowing you to place arbitrary headers o

Re: [Haskell-cafe] Manatee Video.

2010-12-02 Thread Andy Stewart
ack is > not available in every country... meaning youtube prohibits viewing > your video. > > On 28 Nov., 17:30, Andy Stewart wrote: >> Hi all, >> >> Many people ask "What's Manatee?" >> >> A video worth a thousand words : >> here is v

Re: [Haskell-cafe] Manatee Video.

2010-11-30 Thread Andy Stewart
te help you understand Manatee's framework : http://www.flickr.com/photos/48809...@n02/5031811365/lightbox/ -- Andy > > > On 30 Nov., 15:10, Andy Stewart wrote: >> steffen writes: >> > Hi Andy, >> >> > Can you please do something about the sound track

Re: [Haskell-cafe] Manatee Video.

2010-11-30 Thread Andy Stewart
p://25.bak.115cdn.com/pickdown/11fec1f2ed229257059e426ab3c259714cf52117/M00/34/92/cWmqJkzxczoAFibVVCN3Gk04038387/Manatee.avi?file=Manatee.avi&key1=4cf504f7&key2=3131332e37382e35302e323433 Thanks for your suggestion. :) -- Andy > > On 28 Nov., 17:30, Andy Stewart wrote: >> Hi al

Re: [Haskell-cafe] Manatee Video.

2010-11-30 Thread Andy Stewart
nt/sound track is > not available in every country... meaning youtube prohibits viewing > your video. > > On 28 Nov., 17:30, Andy Stewart wrote: >> Hi all, >> >> Many people ask "What's Manatee?" >> >> A video worth a thousand words : >> he

[Haskell-cafe] Manatee Video.

2010-11-28 Thread Andy Stewart
Hi all, Many people ask "What's Manatee?" A video worth a thousand words : here is video (select 720p HD) http://www.youtube.com/watch?v=weS6zys3U8k And i think the correct answer to "What's Manatee?" should be : Depend on you how to use it. :) Other information look : http://hackage.haskell.o

Re: [Haskell-cafe] Re: Manatee - The Haskell/Gtk+ Integrated Live Environment first version release!

2010-11-12 Thread Andy Stewart
Hi Karel, I think is your cabal too old BTW, i suggest install GHC-6.12.3 with gtk2hs-0.12.0 and manatee. -- Andy Karel Gardas writes: > On 11/12/10 04:37, Andy Stewart wrote: >> Hi all, >> >> I have write Simple Manual at http://haskell.org/haskellwiki/Manatee >&

Re: [Haskell-cafe] Re: Manatee - The Haskell/Gtk+ Integrated Live Environment first version release!

2010-11-11 Thread Andy Stewart
David Leimbach writes: > Wow! > > Is this just for Linux or is anyone able to run it on Mac OS X? I don't know whether can work on Mac. I design it for Linux. -- Andy > > Dave > > On Thu, Nov 11, 2010 at 7:51 PM, Andy Stewart > wrote: > >

[Haskell-cafe] Re: Manatee - The Haskell/Gtk+ Integrated Live Environment first version release!

2010-11-11 Thread Andy Stewart
: 457 Process Manager : 761 RSS/Atom reader : 893 -- Andy Andy Stewart writes: > Hi all, > > I am proud to announce the release my gtk2hs project : Manatee - The > Haskell/Gtk+ Integrated Live > Environment > > http://hackage.haskel

[Haskell-cafe] Re: Manatee - The Haskell/Gtk+ Integrated Live Environment first version release!

2010-11-11 Thread Andy Stewart
Hi all, I have write Simple Manual at http://haskell.org/haskellwiki/Manatee Enjoy! :) -- Andy Andy Stewart writes: > Hi all, > > I am proud to announce the release my gtk2hs project : Manatee - The > Haskell/Gtk+ Integrated Live > Environment > > http://hackag

[Haskell-cafe] Manatee - The Haskell/Gtk+ Integrated Live Environment first version release!

2010-11-10 Thread Andy Stewart
Hi all, I am proud to announce the release my gtk2hs project : Manatee - The Haskell/Gtk+ Integrated Live Environment http://hackage.haskell.org/package/manatee Screenshots at : http:goo.gl/MkVw Code at https://patch-tag.com/r/AndyStewart/ beginning with manatee-* Manatee is Haskell integrate

Re: [Haskell-cafe] Re: Does it deserve to be a hackage package?

2010-10-28 Thread Andy Stewart
Dmitry V'yal writes: > On 27.10.2010 13:16, Andy Stewart wrote: >> Christopher Done writes: >> >>> On 27 October 2010 10:13, Dmitry V'yal wrote: >>>> While ago I had a question about opening the url in the default browser >>>> from >

[Haskell-cafe] Re: Haskell and a complete mail client lib?

2010-10-27 Thread Andy Stewart
Günther Schmidt writes: > Hi all, > > do we Haskellers have a complete Mail client library? > > One that goes beyond an unstructured byte string? I want mail-client library too, for my gtk2hs project (http://www.flickr.com/photos/48809...@n02/) If still haven't complete mail-client library when

[Haskell-cafe] Re: Does it deserve to be a hackage package?

2010-10-27 Thread Andy Stewart
Christopher Done writes: > On 27 October 2010 10:13, Dmitry V'yal wrote: >> While ago I had a question about opening the url in the default browser from >> haskell program. I didn't get any immediate answers so I wrote my own >> solution. On Linux it uses xdg-open and on Windows - ShellExecute A

Re: [Haskell-cafe] Help me TH code.

2010-10-26 Thread Andy Stewart
Serguey Zefirov writes: > 2010/10/27 Andy Stewart : >> Hi all, >> >> I want use TH write some function like below: >> >>  data DataType = StringT >>                | IntT >>                | CharT >> >>  parse :: [(String,DataType)]

[Haskell-cafe] Help me TH code.

2010-10-26 Thread Andy Stewart
Hi all, I want use TH write some function like below: data DataType = StringT | IntT | CharT parse :: [(String,DataType)] -> (TypeA, TypeB, ... TypeN) Example: parse [("string", StringT), ("001", IntT), ("c", CharT)] will return: ("string", 001, 'c')

Re: [Haskell-cafe] Redy to release gtk2hs-0.12.0!

2010-10-23 Thread Andy Stewart
Felipe Lessa writes: > Great! What's new in 0.12.0? I don't see a NEWS file and the ChangeLog is > old. Use command "darcs changes" see detail. The NEWS in gtk2hs-0.12.0 : * Support all APIs from GTK+2.8 ~ GTK+2.22 Look http://www.gtk.org/language-bindings.html Of course, if some work H

[Haskell-cafe] Redy to release gtk2hs-0.12.0!

2010-10-22 Thread Andy Stewart
Dear gtk2hs user: We have ready to release next version : gtk2hs-0.12.0 Please pull gtk2hs darcs to test, if no bug report, we will release. You can use below commands (Debian) to install gtk2hs darcs: darcs get --lazy http://code.haskell.org/gtk2hs/ cd ./gtk2hs sudo chmod +x ./bootstr

Re: [Haskell-cafe] Re: hs-plugins and memory leaks

2010-10-20 Thread Andy Stewart
Evan Laforge writes: >> Last, i remove pdynload code from my project temporary with below reasons: >> >> 1) Hold running state is difficult, like network state in browser or >> running state in terminal emulator. > > This doesn't seem too hard to me. Provided you are not swapping the > module th

[Haskell-cafe] Re: hs-plugins and memory leaks

2010-10-20 Thread Andy Stewart
Hi Evan, Evan Laforge writes: >>> So my questions are: >>> >>> Why did lambdabot and yi abandon plugins? >> >> Because it was unmaintained for around 5 years, and was fundamentally >> less portable than simpler state serialization solutions that offered >> some of the same benefits as full code h

[Haskell-cafe] Re: Opening a gtk2hs link in default browser

2010-10-17 Thread Andy Stewart
Hi Dmitry, Dmitry V'yal writes: > Hello list, > > I'm trying to make a clickable link in gtk2hs program. Clicking it should > open an url in the default > browser. Can I hope to find some portable solution in gtk2hs (it should work > in linux and windows) > or should I start searching platform

Re: [Haskell-cafe] How to fix "undefined reference" error with getDataDir?

2010-10-13 Thread Andy Stewart
Henning Thielemann writes: > Andy Stewart schrieb: >> Hi all, >> >> I have two package A and B, and B depend A. >> >> I use below code snippets in package A: >> >> --> code start <--

[Haskell-cafe] How to fix "undefined reference" error with getDataDir?

2010-10-11 Thread Andy Stewart
-- How to fix above error? Thanks! -- Andy Below is .cabal file for package A: --> A.cabal start <-- name: manatee-ircclient version:0.0.1 Cabal-Version: >= 1.6

[Haskell-cafe] Help us test gtk2hs darcs!

2010-09-27 Thread Andy Stewart
Hi all, We have add many APIs in gtk2hs darcs, and ready to release gtk2hs-0.12.0 Please help us test gtk2hs darcs, we can fix it before release gtk2hs-0.12.0 You can get gtk2hs darcs with below command: darcs get code.haskell.org/gtk2hs Please send any bug report to gtk2hs-us...@lists

[Haskell-cafe] Update gtk2hs!

2010-09-06 Thread Andy Stewart
Hi all, I'm working on update gtk2hs APIs. 'gio' has update to newest version, all patches has push to repo, i need more test before release gio-0.12.0 About `gtk` packages, i have push some gtk+-2.18/gtk+-2.20 patches to repo but not all, i plan finish all APIs before release gtk-0.12.0. If an

[Haskell-cafe] GtkImageView release!

2010-08-20 Thread Andy Stewart
Hi all, I have release gtkimageview, it's a Gtk APIs for build image viewer. Here is screenshot : http://www.flickr.com/photos/48809...@n02/4909785139/ You can click right-bottom to popup navigate window to drag area in image. Here is demo : https://patch-tag.com/r/AndyStewart/gtkimageview/snap

[Haskell-cafe] Help us test gio APIs!

2010-08-15 Thread Andy Stewart
Hi all, I'm working on merge gio-branch (https://patch-tag.com/r/AndyStewart/gio-branch/home) to gtk2hs-0.12.0. GIO (http://library.gnome.org/devel/gio/stable/) is cross-platform APIs for file operation, we can use gio APIs develop file manager or similar application. If anyone want to use tho

[Haskell-cafe] Re: gtk2hs with old gtk2

2010-08-13 Thread Andy Stewart
Johannes Waldmann writes: > Andy Stewart gmail.com> writes: > >> Just "cabal install" is enough. > > Hm. That's what bootstrap.sh does, > and it builds tools, then glib, but then: > > Preprocessing library gio-0.11.0... > gtk2hsC2hs: Errors dur

[Haskell-cafe] Re: gtk2hs with old gtk2

2010-08-13 Thread Andy Stewart
Johannes Waldmann writes: > I'm trying to build gtk2hs on debian/lenny, > that is, with gtk2 v. 2.12 if I understand this correctly. > > I got the gtk2hs sources from darcs (I guess it's 0.11.0) > and http://www.haskell.org/gtk2hs/ says > "You need to specify -f-gtk_2_20 for Gtk+ 2.18 etc." > I w

[Haskell-cafe] Re: gkt2hs seg fault issue

2010-08-09 Thread Andy Stewart
writes: > On Mon, 09 Aug 2010 11:09:40 +0800 > Andy Stewart wrote: > >> Ivan Lazar Miljenovic writes: >> >> > On 9 August 2010 09:44, Andy Stewart >> > wrote: >> >> Which ghc version? >> >> > > The Glorious Glasgow Haskell

Re: [Haskell-cafe] Re: gkt2hs seg fault issue

2010-08-08 Thread Andy Stewart
Ivan Lazar Miljenovic writes: > On 9 August 2010 09:44, Andy Stewart wrote: >> Which ghc version? >> >> It's have a bug in ghc-6.12 that cause gtk2hs segment fault. > > If memory serves, that bug was only present in 6.12.2... Yes, typo, it&

[Haskell-cafe] Re: gkt2hs seg fault issue

2010-08-08 Thread Andy Stewart
Which ghc version? It's have a bug in ghc-6.12 that cause gtk2hs segment fault. If you use other ghc version, you should use gdb run your program to get backtrace, then we can help you. Cheers, -- Andy writes: > I reported a seg-fault in chart a while back. > > so I was experimenting with

[Haskell-cafe] Re: Combining Gtk2hs and Fieldtrip

2010-08-08 Thread Andy Stewart
Hi Herng, You can use gtk2hs with OpenGL, then use OpenGL render your 3D graphics. You can use command cabal install install gtkglext to try it, demo at http://code.haskell.org/gtkglext/demo/ About multi-threaded, yes, you must post all *gtk* code to gtk+ main thread, otherwise bad thing will

Re: [Haskell-cafe] Please report any bug of gtk2hs-0.11.0!

2010-07-26 Thread Andy Stewart
Sebastian Fischer writes: > Hello, > > On Jul 13, 2010, at 9:15 AM, Andy Stewart wrote: > >> Please report any bug of gtk2hs-0.11.0, we will fix it before release >> gtk2hs-0.11.1 > > I have just installed the new Haskell Platform under Mac OS X 10.5. With the &g

Re: [Haskell-cafe] Re: Problem with reloading modules in GHC API

2010-07-20 Thread Andy Stewart
is some option > I should set but I > didn't? Being new to Haskell, the source code for GHCi isn't so accessible... > Thanks! If you want dynamic evaluation, you can try hint : Runtime Haskell interpreter (GHC API wrapper) At http://hackage.haskell.org/package/hint Cheers,

[Haskell-cafe] Re: Problem with reloading modules in GHC API

2010-07-19 Thread Andy Stewart
Hi Hongmin, I think you're looking for how to hot-swap Haskell program. There are two approach to reach target: 1) Source-Code level: Recompile source code to build new execute cache file, if re-compile successful, use executeFile to switch new entry. You perhaps need use Binary instanc

[Haskell-cafe] Re: qtHaskell

2010-07-19 Thread Andy Stewart
Hi Ali, Ali Razavi writes: > Greetings, >  I have only used the wxHaskell library before, but I am looking into trying > one of these more > advanced' frameworks. To > serve my proclivity for QT, I would like to know how its Haskell binding, > qtHaskell, compares to > that of Gtk. If you just

Re: [Haskell-cafe] Hot-Swap with Haskell

2010-07-16 Thread Andy Stewart
Bartek Ćwikłowski writes: > Hello Andy, > > 2010/7/16 Andy Stewart : > >> There are some problems with re-compile solution: >> >> 1) You can't save *all* state with some FFI code, such as gtk2hs, you >> can't save state of GTK+ widget. You wil

Re: [Haskell-cafe] Hot-Swap with Haskell

2010-07-16 Thread Andy Stewart
.cse.unsw.edu.au/~dons/papers/dons-phd-thesis.pdf) I hope i can find answer after read this paper... Any discuss are welcome! -- Andy >> > On 16 July 2010 04:05, Andy Stewart wrote: >> Hi all, >> >> I'm research to build a hot-swap Haskell program to developin

[Haskell-cafe] Re: Hot-Swap with Haskell

2010-07-16 Thread Andy Stewart
;, then all elisp hot-swapping is base on elisp interpreter. IMO, "haskell interpreter" is perfect solution for samll script job. But i'm afraid "haskell interpreter" is slow for *large code*, i don't know, i haven't try this way... Thanks for your suggestion, i will

[Haskell-cafe] Re: Hot-Swap with Haskell

2010-07-15 Thread Andy Stewart
Don Stewart writes: > lazycat.manatee: >> Hi all, >> >> I'm research to build a hot-swap Haskell program to developing itself in >> Runtime, like Emacs. >> >> Essentially, Yi/Xmonad/dyre solution is "replace currently executing" >> technology: >> >>re-compile new code with new binary entry

[Haskell-cafe] Hot-Swap with Haskell

2010-07-15 Thread Andy Stewart
Hi all, I'm research to build a hot-swap Haskell program to developing itself in Runtime, like Emacs. Essentially, Yi/Xmonad/dyre solution is "replace currently executing" technology: re-compile new code with new binary entry when re-compile success $ do save state bef

[Haskell-cafe] Re: Please report any bug of gtk2hs-0.11.0!

2010-07-14 Thread Andy Stewart
o to make sure things are installed properly. > > Running the demos. > -- > > To get started, you can compile and run one of the programs that reside > in the demo/ directory in the respective packages. For example: > > ~/gtk2hs/gtk/demo/hello:$ make > >

[Haskell-cafe] Please report any bug of gtk2hs-0.11.0!

2010-07-13 Thread Andy Stewart
Hi all, We plan to release bug fix version : gtk2hs-0.11.1 Please report any bug of gtk2hs-0.11.0, we will fix it before release gtk2hs-0.11.1 We plan to add many new APIs in gtk2hs-0.12.0, so gtk2hs-0.11.1 will be the last stable version with current APIs. Thanks for your help! -- Andy

[Haskell-cafe] ghc-6.12 can't works with Cabal-1.8.0.4?

2010-07-12 Thread Andy Stewart
- Name: poppler Version:0.11.1 License:GPL-2 License-file: COPYING Copyright: (c) 2001-2010 The Gtk2Hs Team Author: Andy Stewart Maintainer: gtk2hs-us...@sourceforge.net Build-Type: Custom Cabal-Version: >= 1.6 Stability: stable

Re: [Haskell-cafe] Re: Fix plugins package.

2010-07-09 Thread Andy Stewart
Yuras Shumovich writes: >> >> I got another error: >> --> error start <-- >> [ 8 of 15] Compiling System.MkTemp    ( src/System/MkTemp.hs, >> dist/build/System/MkTemp.o ) >> >> src/System/MkTemp.hs:214:26: >>    Couldn't match expected type

Re: [Haskell-cafe] Re: Fix plugins package.

2010-07-09 Thread Andy Stewart
Yuras Shumovich writes: >> Another error : >> >> --> error start <-- >> Preprocessing library plugins-1.4.1... >> Building plugins-1.4.1... >> [ 7 of 15] Compiling System.Plugins.Env ( src/System/Plugins/Env.hs, > dist/build/System/Plugins/E

Re: [Haskell-cafe] Re: Fix plugins package.

2010-07-09 Thread Andy Stewart
Yuras Shumovich writes: >>> src/System/Plugins/Process.hs:59:4: >>>     Warning: A do-notation statement discarded a result of type >>> GHC.Conc.ThreadId. >>>              Suppress this warning by saying "_ <- forkIO >>>                                                      ((>>) >>>            

[Haskell-cafe] Re: Fix plugins package.

2010-07-09 Thread Andy Stewart
Andy Stewart writes: > Hi Ivan, > > Ivan Lazar Miljenovic writes: > >> Andy Stewart writes: >> >>> Hi all, >>> >>> I want to use *plugins* package >>> (http://hackage.haskell.org/package/plugins-1.4.1) >>> >>> Unfo

Re: [Haskell-cafe] Fix plugins package.

2010-07-09 Thread Andy Stewart
Hi Ivan, Ivan Lazar Miljenovic writes: > Andy Stewart writes: > >> Hi all, >> >> I want to use *plugins* package >> (http://hackage.haskell.org/package/plugins-1.4.1) >> >> Unfortunately, it looks broken. >> Anybody can fix it? > > Try putt

[Haskell-cafe] Fix plugins package.

2010-07-09 Thread Andy Stewart
Hi all, I want to use *plugins* package (http://hackage.haskell.org/package/plugins-1.4.1) Unfortunately, it looks broken. Anybody can fix it? Thanks, -- Andy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/lis

[Haskell-cafe] Re: Read Instance code.

2010-07-03 Thread Andy Stewart
Andy Stewart writes: > Ivan Lazar Miljenovic writes: > >> Andy Stewart writes: >> >>> Hi all, >>> >>> I have some incorrect "Read instance" make i got error "Prelude.read: no >>> parse", and i don't know how to fix

[Haskell-cafe] Re: Read Instance code.

2010-07-03 Thread Andy Stewart
Ivan Lazar Miljenovic writes: > Andy Stewart writes: > >> Hi all, >> >> I have some incorrect "Read instance" make i got error "Prelude.read: no >> parse", and i don't know how to fix it. >> >> >> newtype Serial

[Haskell-cafe] Read Instance code.

2010-07-03 Thread Andy Stewart
Hi all, I have some incorrect "Read instance" make i got error "Prelude.read: no parse", and i don't know how to fix it. --> code start <-- newtype SerializedWindow = SerializedWindow (Maybe DrawWindow) instance Show SerializedWindow w

[Haskell-cafe] Re: Are you a Haskell expert? [How easy is it to hire Haskell programmers]

2010-07-03 Thread Andy Stewart
Brandon S Allbery KF8NH writes: > On 7/3/10 05:57 , Andrew Coppin wrote: >> Agreed. So let me rephrase: Why should _every_ Haskell library involve C? ;-) > > Who says they do, or should? AFAIK it's only done for the reasons I > mentioned (or, sometimes, for library compatibility; a native XCB li

[Haskell-cafe] Re: Are you a Haskell expert? [How easy is it to hire Haskell programmers]

2010-07-03 Thread Andy Stewart
Andrew Coppin writes: > Don Stewart wrote: > So I guess that means that I don't count as a "knowledgable" Haskell > programmer. :-( > RWH is free and online, and covers many useful things. There's no excuse :-) > > I was about to say "yeah, but RWH isn

Re: [Haskell-cafe] TH instance code.

2010-06-22 Thread Andy Stewart
>     instance Variable $_t where >     toVariant = toVariant . show >     fromVariant x = fmap (\v -> read v :: $_t) $ fromVariant x|] > > deriveVariable (conT ''PageType) > deriveVariable (conT ''Int) > deriveVariable (conT ''Maybe `ap

[Haskell-cafe] TH instance code.

2010-06-22 Thread Andy Stewart
Hi all, I have below duplicate code, but i don't know how to use TH instance code. --> duplicate code start <-- instance Variable PageType where toVariant = toVariant . show fromVariant x = fmap (\v -> read v :: PageType) $ fromVari

[Haskell-cafe] Re: How does one get off haskell?

2010-06-18 Thread Andy Stewart
"Edward Z. Yang" writes: > Excerpts from Bryan O'Sullivan's message of Fri Jun 18 13:16:58 -0400 2010: >> I'm inclined to disagree. It's precisely when the code is in a state of >> constant upheaval that I want the type system to be pointing out my dumb >> errors. > > In my experience, the type s

[Haskell-cafe] Re: Unicode vs. System.Directory

2010-05-27 Thread Andy Stewart
Hi Arie, If you don't mind binding code. You can try to use GIO APIs from my repository: http://patch-tag.com/r/AndyStewart/gio-branch/home GIO APIs handle unicode filename every well, and cross-platform. Cheers, -- Andy Arie Peterson writes: > After upgrading to haskell-platform-2010.1.0.

[Haskell-cafe] Re: Haskell and scripting

2010-05-07 Thread Andy Stewart
Daniel Fischer writes: > On Wednesday 05 May 2010 23:36:26, Limestraël wrote: >> but you will not object if I say that scheme is quicker to learn >> than Haskell. > > Well, I do object. Learning Haskell went like a breeze (not to perfection, > but well enough). Only Python was nearly as easy and

[Haskell-cafe] Mirror repository for gtk2hs

2010-05-07 Thread Andy Stewart
Hi all, Because code.haskell.org is unstable recently, and many gtk2hs users can't get code from http://code.haskell.org/gtk2hs So i build a mirror repository at http://patch-tag.com/r/AndyStewart/gtk2hs-sync-mirror/home You can access this mirror repository when code.haskell.org down. This mir

[Haskell-cafe] Re: nun.haskell.org http services down?

2010-05-06 Thread Andy Stewart
Ivan Lazar Miljenovic writes: > Erik de Castro Lopo writes: > >> Jens Petersen wrote: >> >>> http://{code,community,projects}.haskell..org/ seem to be inaccessible. >>> >>> Could someone please look into it? >> >> For me, it seems to be down everyday around 5-6pm (0700-0800 UTC) which >> is pri

[Haskell-cafe] Re: gtk2hs for 2010.1.0.0

2010-05-03 Thread Andy Stewart
Hi Ivan, Ivan Miljenovic writes: > On 4 May 2010 04:21, Maciej Piechotka wrote: >> Does anyone have installer for gtk2hs for Haskell Platform 2010.1.0.0? > > Considering that there is as yet no release of gtk2hs that supports > GHC-6.12.*, it seems unlikely. At best someone may have taken a >

[Haskell-cafe] Re: gtk2hs for 2010.1.0.0

2010-05-03 Thread Andy Stewart
Hi Maciej, Maciej Piechotka writes: > On Mon, 2010-05-03 at 19:21 +0100, Maciej Piechotka wrote: >> Does anyone have installer for gtk2hs for Haskell Platform 2010.1.0.0? >> >> Regards >> ___ >> Haskell-Cafe mailing list >> Haskell-Cafe@haskell.org >>

[Haskell-cafe] Why haskell.org down again?

2010-04-09 Thread Andy Stewart
Hi all, haskell.org down again? Hardware not stable? Attack? Can't we avoid haskell.org off? -- Andy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Finish Gtk2hs APIs update!

2010-04-05 Thread Andy Stewart
Hi all, After two weeks work, i have finish update Gtk2hs APIs to Gtk+2.18.3! Gdk and Pango APIs have update to newest version. Please report any problem to gtk2hs mail-list, we can fix it as soon as we can. Below is libraries that gtk2hs support: -> libraries list start <--

[Haskell-cafe] Re: Haskellers hate GUIs!!

2010-04-02 Thread Andy Stewart
Hi Jürgen, For GHC-6.12, just darcs version support. So please download darcs version. Axel has working on that make gtk2hs build on cabal. And i'm working on update All gtk2hs API to Gtk+ 2.18.3 (have finish 99%), i can finish all APIs in later days. Axel have finish some sub-modules on http:

[Haskell-cafe] Re: Asynchronous exception wormholes kill modularity

2010-03-29 Thread Andy Stewart
Simon Marlow writes: > On 26/03/2010 19:51, Isaac Dupree wrote: >> On 03/25/10 12:36, Simon Marlow wrote: >>> I'd also be amenable to having block/unblock count nesting levels >>> instead, I don't think it would be too hard to implement and it wouldn't >>> require any changes at the library level

[Haskell-cafe] Re: gtk2hs gtkbuilder

2010-03-14 Thread Andy Stewart
"Andrew U. Frank" writes: > i currently use gtk2hs with libglade (and glade). i understand that the > gtkbuilder allows more constructs than libglade. how to use gtkbuilder in > gtk2hs? i see that John Millikin has posted a patch for gtk2hs - but i cannot > find it and no documentation for its

[Haskell-cafe] Re: What's wrong with code.haskell.org ?

2009-11-22 Thread Andy Stewart
Svein Ove Aas writes: > On Sun, Nov 22, 2009 at 4:39 AM, John Millikin wrote: >> code.h.o and community.h.o have rather flaky hosting, and have been >> going down often recently. The only solution seems to be waiting until >> the admins notice. >> > They have hardware problems - dying HDs and su

[Haskell-cafe] What's wrong with code.haskell.org ?

2009-11-21 Thread Andy Stewart
Hi all, I can't use `darcs get --partial http://code.haskell.org/gtk2hs/` to get source code, and can't push patch. What's wrong with code.haskell.org? Rest for weekend? :) -- Andy ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.h

[Haskell-cafe] How to update SSH key in code.haskell.org

2009-11-16 Thread Andy Stewart
Hi all. I'm a developer of gtk2hs project at code.haskell.org But i found i lost my SSH key when i update new system, and i can't push patch to gtk2hs. I have send mail to supp...@community.haskell.org for this problem, but i'm not sure that's the right place. So how to update SSH key with my a

[Haskell-cafe] Re: Problem about hidden package again.

2009-11-12 Thread Andy Stewart
Magicloud Magiclouds writes: > Just joking. But still, since gtk2hs still using the configure/make > way, it is complex to add another option to the system. I tried to add > array to build-depends of Cairo.cabal, no luck. Yes, it's not handy that gtk2hs can't use Cabal. But i think this is not ea

[Haskell-cafe] Re: Long running Haskell program

2009-11-11 Thread Andy Stewart
David Leimbach writes: > As some of you may know, I've been writing commercial Haskell code for a > little bit here (about a > year and a half) and I've just recently had to write some > code that was going to run have to run for a really long time before being > restarted, possibly > months or

[Haskell-cafe] Re: Help me improve design of my project.

2009-10-23 Thread Andy Stewart
Andy Stewart writes: > Hi all, > > Okay, question is, IORefObject module and most module reference each > other, so i will got `recursive reference problem` (looks how many > .hs-boot in my project). Current version compile fine. The key is design of IORefObject, It's too c

[Haskell-cafe] Some question about c2hs.

2009-09-16 Thread Andy Stewart
Hi all, I try to binding Haskell to VTE library. Below are Vte.chs file i wrote. Vte.chs Description: Binary data I use c2hs with below command LANG=C c2hs -d trace -l $(pkg-config --cflags vte | sed 's/-I/-C-I/g') vte/vte.h Vte.chs generate Vte.hs file. When i compile Vte.hs fil

[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] Re: How to customize dyre recompile?

2009-09-06 Thread Andy Stewart
l information when recompile failed? I missing something? Thanks! -- Andy > > In a test project I just created, this seems to do what you desire. > > Hope this helps clear things up > - Will Donnelly > > On Sun, Sep 6 2009 at 1:41 PM, Andy Stewart wrote: >> >

[Haskell-cafe] How to customize dyre recompile?

2009-09-05 Thread Andy Stewart
Hi all, I use below params for configure dyre: rebootParams :: Params Config rebootParams = defaultParams {projectName = "Main" ,realMain= manatee ,showError = rebootShowError ,cacheDir= Just $ return "/test/Download/cache/" ,configDir = Just getCurrentDirectory

[Haskell-cafe] Re: How to use dyre relaunch/restore State of Gtk2hs Object?

2009-08-31 Thread Andy Stewart
Will Donnelly writes: HI Will, First, thanks for your detail explain. > Hi Andy, > > Your program didn't compile as given, so I cut out some of the event handling > fanciness you were > doing. Also, my modified version restarts whenever the 'r' > key is pressed. I figure those changes aren't im

[Haskell-cafe] How to use dyre relaunch/restore State of Gtk2hs Object?

2009-08-30 Thread Andy Stewart
Hi all. I try to use dyre (http://hackage.haskell.org/packages/archive/dyre/0.7.2/doc/html/Config-Dyre.html) to relaunch/restore State of TextView to make TextView's content can't lost when main program reboot. Below is source code for example: --> source code start <

  1   2   >