Re: [Haskell-cafe] Trouble installing and using Chart/cairo on windows 7

2013-03-04 Thread Arnaud Bailly
Thanks for the pointer. While googling and stackoverflowing I came across this as a potential issue but did not check. It appears my ghc is 32 bits and I suspect the gtk+ lib are 64 bits. I will check this and report on what I find. Regards, Arnaud

[Haskell-cafe] Trouble installing and using Chart/cairo on windows 7

2013-03-03 Thread Arnaud Bailly
Hello, I am trying to install timeplot and splot on a windows 7 host, using Haskell platform 2012.2.0.0, and I have troubles installing HSChart. First difficulties were installing cairo, which requires Gtk+ libraries and headers. I installed those using a Gtk+-bundle, first in c:\Program Files\.

[Haskell-cafe] Package conflicts using cabal-dev

2013-01-30 Thread Arnaud Bailly
Hello, I am running into a strange issue that reminds me of Java's classloader black magic havoc :-) My code compiles fine using cabal-dev install, but when I try to compile an individual file with ghc, I got the following error: $ ghc -package-conf cabal-dev/packages-7.4.1.conf YakGraph.hs [1

[Haskell-cafe] Cannot read a large integer on linux

2013-01-14 Thread Arnaud Bailly
Hello, I am encountering a strange issue while trying to read a string into an integer. On windows 7 64bit, I have: read 18780189038289e49 :: Integer =187801890382890 On linux (64bit, libgmp.so.3.5.2) I have: read 18780189038289e49 :: Integer

Re: [Haskell-cafe] tplot (out of memory)

2012-09-04 Thread Arnaud Bailly
larger files than that without troubles. Which version are you using? I assume this is the one from hackage which AFAIK is the one I am also using. Could you post a sample input file? Regards, -- Arnaud Bailly FoldLabs Associate http://foldlabs.com

[Haskell-cafe] Reconstructing a tree from a list of its paths (to leaves)

2012-04-10 Thread Arnaud Bailly
Hello, I am manipulating labeled multiway trees, some kind of lightweight XML notation. One thing I would like to be able to do is manipulating a tree as a list of (Path, Value). Generating such a list is easy but I am a little bit surprised to find it harder to reconstruct a tree, given such a

Re: [Haskell-cafe] Reconstructing a tree from a list of its paths (to leaves)

2012-04-10 Thread Arnaud Bailly
for your detailed answer and your code. Best regards, Arnaud On Tue, Apr 10, 2012 at 12:26 PM, Twan van Laarhoven twa...@gmail.com wrote: On 10/04/12 09:55, Arnaud Bailly wrote: Hello, I am manipulating labeled multiway trees, some kind of lightweight XML notation. One thing I would like

Re: [Haskell-cafe] Reconstructing a tree from a list of its paths (to leaves)

2012-04-10 Thread Arnaud Bailly
using depth-first traversal. Thanks, Arnaud On Wed, Apr 11, 2012 at 2:15 AM, Richard O'Keefe o...@cs.otago.ac.nz wrote: On 10/04/2012, at 7:55 PM, Arnaud Bailly wrote: I am manipulating labeled multiway trees, some kind of lightweight XML notation. One thing I would like to be able to do

[Haskell-cafe] Looking for an heap-like data structure allowing efficient update

2012-03-04 Thread Arnaud Bailly
needs. Thanks for your help Regards, Arnaud Bailly ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Looking for an heap-like data structure allowing efficient update

2012-03-04 Thread Arnaud Bailly
Thanks a lot. Yes it helps! Arnaud On Sun, Mar 4, 2012 at 9:38 PM, Joey Adams joeyadams3.14...@gmail.com wrote: On Sun, Mar 4, 2012 at 1:27 PM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello Cafe, I am looking for a data structure that would have the following informal properties

[Haskell-cafe] Haskell showcase in 5 minutes - follow-up

2012-03-01 Thread Arnaud Bailly
advantage I mentionned somewhat indirectly which I should stress here is the Haskell community: reactive, vibrant and kind are a few adjectives that spring to my mind. Thanks again for your support, Arnaud Bailly ___ Haskell-Cafe mailing list Haskell-Cafe

Re: [Haskell-cafe] Haskell showcase in 5 minutes

2012-02-29 Thread Arnaud Bailly
understand the vague idea. There are so many cool things to show... ;). (But that's true for any expressive language) Oh, BTW I'm coming to the Battle Language tonight. 2012/2/28 Arnaud Bailly arnaud.oq...@gmail.com Thanks for your support. I would really like to do this but 1) the talk

Re: [Haskell-cafe] Haskell showcase in 5 minutes

2012-02-28 Thread Arnaud Bailly
place? Is it open to public? And I strongly disadvise fibonacci, quicksort and other mind-blowing reality-escapist stuff. Show something real world and practical. 2012/2/27 Arnaud Bailly arnaud.oq...@gmail.com Hello Cafe, I will be (re)presenting Haskell in a Batlle Language event Wednesday

Re: [Haskell-cafe] Haskell showcase in 5 minutes

2012-02-28 Thread Arnaud Bailly
Ertugrul Söylemez e...@ertes.de Arnaud Bailly arnaud.oq...@gmail.com wrote: Thanks Yves for your advice. And I agree with you that too much laziness may be mind-blowing for most of the audience, yet this is one of the characteristics of Haskell, whether or not we like it and whatever troubles

[Haskell-cafe] Haskell showcase in 5 minutes

2012-02-27 Thread Arnaud Bailly
Hello Cafe, I will be (re)presenting Haskell in a Batlle Language event Wednesday evening: A fun and interactive contest where various programming language champions try to attract as much followers as possible in 5 minutes. Having successfully experimented the power of live coding in a recent

Re: [Haskell-cafe] Haskell showcase in 5 minutes

2012-02-27 Thread Arnaud Bailly
Feb 2012, Arnaud Bailly wrote: Hello Cafe, I will be (re)presenting Haskell in a Batlle Language event Wednesday evening: A fun and interactive contest where various programming language champions try to attract as much followers as possible in 5 minutes. Having successfully experimented

Re: [Haskell-cafe] Best FRP package for newbie

2012-02-18 Thread Arnaud Bailly
Thanks to all for your kind answers. I already installed reactive-banana and skimmed through the doc which is quite good and extensive: at least this is a good start. Should the need arise, I will not hesitate to tap into the knowledge and wisdom of the community ! Regards, Arnaud

[Haskell-cafe] Best FRP package for newbie

2012-02-16 Thread Arnaud Bailly
Hello, I am interested in exploring more in depth FRP. I had a look at the wiki page and started to explore reactive which looked promising at first glance and backed by quite a few articles and tutorials, but 1) it did not install properly on my haskell platform and 2) from the mailing-list

Re: [Haskell-cafe] How do you describe systems in general with Haskell?

2011-11-05 Thread Arnaud Bailly
That look's interesting. Do you have experience using this method? Arnaud On Sat, Nov 5, 2011 at 7:09 PM, Albert Y. C. Lai tre...@vex.net wrote: On 11-11-05 01:17 PM, Grigory Sarnitskiy wrote: If you are to describe a system, which consists of several subsystems, how do you approach the

[Haskell-cafe] Simple design question using Wai

2011-10-09 Thread Arnaud Bailly
Hello, I am trying to move a web application I wrote that initially used raw sockets for doing HTTP by hand to a more sensible Wai-based framework, and I am running into a design issue. I initially thought it would be a good idea to be able to support various I/O methods so I defined a layer

Re: [Haskell-cafe] Simple design question using Wai

2011-10-09 Thread Arnaud Bailly
Hi Antoine, Thanks for your interest. On Sun, Oct 9, 2011 at 11:57 PM, Antoine Latter aslat...@gmail.com wrote: interpret :: (CommandIO io, Map t) = Commands t io CommandResult What is the 'Commands' type? What is the 'Map' class? More details here :

Re: [Haskell-cafe] Installing hledger-web

2011-10-03 Thread Arnaud Bailly
...@joyful.com wrote: On 10/2/11 10:12 AM, Arnaud Bailly wrote: No problem ! BTW, have you ever thought of coupling hledger with git for saving a ledger ? There is ongoing work to provide a native git interface. Yes, Clint Adams has begun adapting it to use the filestore (rcs abstraction layer

Re: [Haskell-cafe] Installing hledger-web

2011-10-02 Thread Arnaud Bailly
/detail?id=63http://code.google.com/p/hledger/issues/detail?id=63. Sorry for the breakage. I thought I had this working once but I'm not sure how! -Simon On 10/1/11 10:36 PM, Arnaud Bailly wrote: Thanks Simon. Unfortunately, I got the same error. On Sun, Oct 2, 2011 at 2:50 AM, Simon

[Haskell-cafe] Installing hledger-web

2011-10-01 Thread Arnaud Bailly
Hello, I installed hledger and tried installing hledger-web but got the following error: [2 of 8] Compiling Hledger.Web.Settings.StaticFiles ( Hledger/Web/Settings/StaticFiles.hs, dist/build/hledger-web/hledger-web-tmp/Hledger/Web/Settings/StaticFiles.o ) Hledger/Web/Settings/StaticFiles.hs:1:1:

Re: [Haskell-cafe] Installing hledger-web

2011-10-01 Thread Arnaud Bailly
On 10/1/11 1:42 PM, Arnaud Bailly wrote: Hello, I installed hledger and tried installing hledger-web but got the following error: [2 of 8] Compiling Hledger.Web.Settings.**StaticFiles ( Hledger/Web/Settings/**StaticFiles.hs, dist/build/hledger-web/**hledger-web-tmp/Hledger/Web/**Settings

Re: [Haskell-cafe] New: A French translation of Learn You A Haskell for Great Good!

2011-09-21 Thread Arnaud Bailly
hello, I second the choice of gitit, if only to follow eat your own dog food principle. but gitit is also a really great piece of software. I have really no strong advice on whether or not the wiki should be part of Haskell.org. but whatever the choice, I will definitely support this

Re: [Haskell-cafe] Dynamic loading of module

2011-08-29 Thread Arnaud Bailly
\ dir c: dir cd package.conf.d dir cd .. rm -fr package.conf.d d: ghc-pkg check ghc-pkg update ghc-pkg recache Regards, Arnaud On Mon, Aug 29, 2011 at 4:03 AM, Albert Y. C. Lai tre...@vex.net wrote: On 11-08-28 04:40 PM, Arnaud Bailly wrote: Hello Albert, Thanks for taking the time to help me

Re: [Haskell-cafe] Dynamic loading of module

2011-08-29 Thread Arnaud Bailly
Anyway, I will reinstall Haskell platform and read carefully your post to be sure I do not screwed my setup again in the future. Best regards, Arnaud On Mon, Aug 29, 2011 at 8:41 AM, Arnaud Bailly arnaud.oq...@gmail.comwrote: Thanks again for your patience and efforts. I am pretty sure I did

Re: [Haskell-cafe] Dynamic loading of module

2011-08-29 Thread Arnaud Bailly
the user the ability to rollback what she did. Not sure this would be to easy to implement though... Thanks again for your help. Best regards, Arnaud On Mon, Aug 29, 2011 at 8:43 AM, Arnaud Bailly arnaud.oq...@gmail.comwrote: Anyway, I will reinstall Haskell platform and read carefully your post

Re: [Haskell-cafe] Dynamic loading of module

2011-08-29 Thread Arnaud Bailly
No offense :-) Thanks for taking the time to investigate this stuff. It gave me the opportunity to get a closer look at ghc package management. Regards, Arnaud On Mon, Aug 29, 2011 at 5:28 PM, Albert Y. C. Lai tre...@vex.net wrote: On 11-08-29 02:41 AM, Arnaud Bailly wrote: ghc-pkg

Re: [Haskell-cafe] Dynamic loading of module

2011-08-28 Thread Arnaud Bailly
Hello Albert, Thanks for taking the time to help me fix this package stuff. So I wiped out my package.conf.d/ and tried to reinstall my stuff. Installing template-haskell 2.5.0.0 is ok (2.6 is not, fails to compile on ghc 7.0.3) but then: D:\projets\ghc --make -package ghc main command line:

[Haskell-cafe] Dynamic loading of module

2011-08-26 Thread Arnaud Bailly
Hello, I stumbled upon this blog post describing a method from dynamically loading modules using GHC api. While trying to test the given method, I got the following error which obviously tells me my packages are not correctly installed but I have no idea how to fix this. D:\projets\ghc -package

[Haskell-cafe] Issue with lhs2TeX 1.17

2011-08-25 Thread Arnaud Bailly
Hello, I recently reinstalled (using cabal) lhs2TeX v 1.17 (Haskell Platform installation 2011.2.0, Windows XP SP2, MiKTeX 2.8) and I cannot run latex anymore on the .tex files produced. Any clues about this ? Did I forgot to install some package ? This is not clear from the documentation which

[Haskell-cafe] Haddock chokes on function arguments

2011-08-25 Thread Arnaud Bailly
Hello, while trying to generate Haddock documentation (Haddock version 2.9.2, (c) Simon Marlow 2006), it chokes on the following fragment -- |Apply a given function over all elements of a list and select one of the -- results. selector :: (Arbitrary b) = [a] - -- ^ Elements to

Re: [Haskell-cafe] Haddock chokes on function arguments

2011-08-25 Thread Arnaud Bailly
of after them? 2011/8/25 Arnaud Bailly arnaud.oq...@gmail.com: Hello, while trying to generate Haddock documentation (Haddock version 2.9.2, (c) Simon Marlow 2006), it chokes on the following fragment -- |Apply a given function over all elements of a list and select one

Re: [Haskell-cafe] Haddock chokes on function arguments

2011-08-25 Thread Arnaud Bailly
OK. Time to go to bed... Apologies for the noise. Arnaud On Thu, Aug 25, 2011 at 4:50 PM, Ozgur Akgun ozgurak...@gmail.com wrote: Hi Arnaud, On 25 August 2011 15:44, Arnaud Bailly arnaud.oq...@gmail.com wrote: But then, why is it documented the other way ? It isn't, as far as I can

Re: [Haskell-cafe] Quickcheck: Help on non trivial test

2011-06-23 Thread Arnaud Bailly
Hello, What if the '2' that appears in splitPos is itself generated (ie. an int parameter of splitFunGen) and you replace `div` by `mod`? Sorry, I have no code to show right now. HTH Arnaud On Thu, Jun 23, 2011 at 10:58 AM, jean-christophe mincke jeanchristophe.min...@gmail.com wrote: Hello

Re: [Haskell-cafe] Category theory as a design tool

2011-06-23 Thread Arnaud Bailly
On Thu, Jun 23, 2011 at 10:15 PM, wren ng thornton w...@freegeek.orgwrote: On 6/23/11 1:39 AM, Arnaud Bailly wrote: Of course, we can always say that each system is a language of its own (rather than *has* a language...) which is what Eric Evans coined with its Ubiquitous language term

Re: [Haskell-cafe] Category theory as a design tool

2011-06-22 Thread Arnaud Bailly
-morphisms/. Sebastien On Tue, Jun 21, 2011 at 11:30 PM, Arnaud Bailly arnaud.oq...@gmail.com wrote: (2nd try, took my gloves off...) Hello Café, I have been fascinated by Cat. theory for quite a few years now, as most people who get close to it I think. I am a developer, working mostly

Re: [Haskell-cafe] Category theory as a design tool

2011-06-22 Thread Arnaud Bailly
Thanks Stephen, looks interesting and congruent with few a priori I had in mind. I have already seen in prior life connections between modeling, MOF and category theory. Regards Arnaud On Wed, Jun 22, 2011 at 8:38 AM, Stephen Tetley stephen.tet...@gmail.com wrote: On 22 June 2011 05:30, Arnaud

Re: [Haskell-cafe] Category theory as a design tool

2011-06-22 Thread Arnaud Bailly
We have a saying in french for that which translates approximately to turn your tongue seven times in your mouth before speaking. That's what happen when one tries to type mails and have breakfast at the same time :-) Cheers Arnaud 2011/6/22 MigMit miguelim...@yandex.ru: I remember myself

Re: [Haskell-cafe] Category theory as a design tool

2011-06-22 Thread Arnaud Bailly
Hello Greg and Alexander, Thanks for your replies. Funnily, I happen to own the 3 books you mentionned :-) My interest in category theory is a long standing affair... Note that owning a book, having read (most of) it and knowing a theory (or at least its principles and main concepts) is really

Re: [Haskell-cafe] Category theory as a design tool

2011-06-22 Thread Arnaud Bailly
On Thu, Jun 23, 2011 at 2:03 AM, Gregg Reynolds d...@mobileink.com wrote: Well, you're way ahead of me. I don't even get adjunctions, to tell you the truth. By which I mean that I have no intuition about them; it's not so hard to understand the formal definition, but it's another thing

Re: [Haskell-cafe] Category theory as a design tool

2011-06-22 Thread Arnaud Bailly
On Wed, Jun 22, 2011 at 11:46 PM, wren ng thornton w...@freegeek.orgwrote: One of the big benefits I see to using category theory for dealing with programming languages comes from using CT as a generalized logic for equational reasoning. In particular, making use of the ideas of (co)limits

[Haskell-cafe] Category theory as a design tool

2011-06-21 Thread Arnaud Bailly
Hello, I ha ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Category theory as a design tool

2011-06-21 Thread Arnaud Bailly
(2nd try, took my gloves off...) Hello Café, I have been fascinated by Cat. theory for quite a few years now, as most people who get close to it I think. I am a developer, working mostly in Java for my living and dabbling with haskell and scala in my spare time and assuming the frustration of

[Haskell-cafe] Non-advanced usage of Type classes

2011-06-07 Thread Arnaud Bailly
Hello, In a recent thread, it has been asserted that defining type class is something you seldom need when programming in Haskell. There is one thing that as non-professional Haskell programmer I found type-classes useful for: Testing. This is probably very OO and is pretty much influenced by

Re: [Haskell-cafe] Non-advanced usage of Type classes

2011-06-07 Thread Arnaud Bailly
On Tue, Jun 7, 2011 at 10:32 PM, Evan Laforge qdun...@gmail.com wrote: Is this badly designed code that tries to mimic OO in a functional setting? If the answer is yes, how could I achieve same result (eg. testing the code that does command REPL) without defining type classes? Here's

Re: [Haskell-cafe] Packages all screwed up

2011-02-01 Thread Arnaud Bailly
that 'ghc-pkg check' report is broken. If you pick up the right version and compilation options will match there is a high chance you can fix this state. I've done this before and it worked. Best regards, Krzysztof Skrzętnicki On Tue, Feb 1, 2011 at 08:16, Arnaud Bailly arnaud.oq...@gmail.com

Re: [Haskell-cafe] Packages all screwed up

2011-02-01 Thread Arnaud Bailly
aslat...@gmail.com wrote: On Mon, Jan 31, 2011 at 4:59 PM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello, I recently tried to upgrade some package (eg. yesod) and it seems that, in the process, I screwed up my Haskell packages setup. When I am trying to do a simple: ghc --make Crete1941

[Haskell-cafe] Packages all screwed up

2011-01-31 Thread Arnaud Bailly
Hello, I recently tried to upgrade some package (eg. yesod) and it seems that, in the process, I screwed up my Haskell packages setup. When I am trying to do a simple: ghc --make Crete1941 It fails with message: Loader\Communication.hs:14:7: Could not find module `System.Process': Use

Re: [Haskell-cafe] Packages all screwed up

2011-01-31 Thread Arnaud Bailly
, 2011 at 4:59 PM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello, I recently tried to upgrade some package (eg. yesod) and it seems that, in the process, I screwed up my Haskell packages setup. When I am trying to do a simple: ghc --make Crete1941 What command(s) did you issue to upgrade

Re: [Haskell-cafe] Type System vs Test Driven Development

2011-01-05 Thread Arnaud Bailly
I would supplement this excellent list of advices with an emphasis on the first one: Test-Driven Development is *not* testing, TDD is a *design* process. Like you said, it is a discipline of thought that forces you first to express your intent with a test, second to write the simplest thing that

Re: [Haskell-cafe] OT: Monad co-tutorial: the Compilation Monad

2010-12-17 Thread Arnaud Bailly
There is also Nix (http://nixos.org/) which is based on somewhat related ideas. On Fri, Dec 17, 2010 at 8:32 AM, Max Bolingbroke batterseapo...@hotmail.com wrote: On 17 December 2010 00:59, Gregg Reynolds d...@mobileink.com wrote: My real goal is to think about better language for software

Re: [Haskell-cafe] Behaviour of System.Directory.getModificationTime

2010-12-17 Thread Arnaud Bailly
at 17:50, Arnaud Bailly arnaud.oq...@gmail.com wrote: actually, IRL the code works as expected. Might it be possible that the speed of test execution is greater than the granularity of the system's modification timestamp? ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Behaviour of System.Directory.getModificationTime

2010-12-16 Thread Arnaud Bailly
actually, IRL the code works as expected. Might it be possible that the speed of test execution is greater than the granularity of the system's modification timestamp? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Behaviour of System.Directory.getModificationTime

2010-12-15 Thread Arnaud Bailly
Hello, I am writing a program which scans a bunch of directories to detect changes (added, modified, deleted files). To detect modification, I would like to use getModification, doing something like the following: -- |Stores last modified timestamp of the file -- Yes, I come from Java... type

Re: [Haskell-cafe] About Fun with type functions example

2010-11-19 Thread Arnaud Bailly
genericCalculate i k = let n = fromInt i in k n Going back to reality, fromInt can't be implemented, but genericCalculate probably can, since it doesn't involve calculating a type. 19.11.2010 10:25, Arnaud Bailly пишет: Just after hitting the button send, it appeared to me that fromInt was not obvious

Re: [Haskell-cafe] Re: Reply-To: Header in Mailinglists (was: About Fun with type functions example)

2010-11-19 Thread Arnaud Bailly
I personnally use most of the time gmail, so I don't have access to a Reply-To-List feature (or do I?). I usually do Reply-to-all which I think is as I guess most mailers remove duplicate mails. Am I right? Arnaud On Fri, Nov 19, 2010 at 3:16 PM, Maciej Piechotka uzytkown...@gmail.com wrote: On

Re: [Haskell-cafe] About Fun with type functions example

2010-11-19 Thread Arnaud Bailly
to return exactly the value that the continuation returns because we know nothing at all about the `r` type variable. Hope this helps! Dan On Fri, Nov 19, 2010 at 9:09 AM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Thanks a lot for the explanation. Summarizing: You can't calculate an exact

[Haskell-cafe] About Fun with type functions example

2010-11-18 Thread Arnaud Bailly
Hello, I am trying to understand and use the Nat n type defined in the aforementioned article. Unfortunately, the given code does not compile properly: Here is the code: module Naturals where data Zero data Succ a class Nat n where toInt :: n - Int instance Nat Zero where toInt _ = 0

Re: [Haskell-cafe] About Fun with type functions example

2010-11-18 Thread Arnaud Bailly
Thanks a lot, that works perfectly fine! Did not know this one... BTW, I would be interested in the fromInt too. Arnaud On Thu, Nov 18, 2010 at 8:22 PM, Erik Hesselink hessel...@gmail.com wrote: On Thu, Nov 18, 2010 at 20:17, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello, I am trying

Re: [Haskell-cafe] About Fun with type functions example

2010-11-18 Thread Arnaud Bailly
pumpkin...@gmail.com wrote: The best you can do with fromInt is something like Int - (forall n. (Nat n) = n - r) - r, since the type isn't known at compile time. On Thu, Nov 18, 2010 at 2:52 PM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Thanks a lot, that works perfectly fine! Did not know

Re: [Haskell-cafe] Re: dynamic loading of code on windows

2010-11-15 Thread Arnaud Bailly
, REgards, Arnaud On Fri, Nov 12, 2010 at 8:49 PM, Alberto G. Corona agocor...@gmail.com wrote: I use Hint for the same purpose. It has been tested under windows 2010/11/12 Arnaud Bailly arnaud.oq...@gmail.com Hello Kevin, Thanks. I understand that this is a toolchain issue, I just got used

Re: [Haskell-cafe] Re: dynamic loading of code on windows

2010-11-15 Thread Arnaud Bailly
is not much used/tested under Windows. At the end I gave up using it and switched to hint (like Alberto pointed out before). Mathias Am 13.11.2010 19:41, schrieb Arnaud Bailly: Hello again, So I followed Kevin's suggestion and installed MinGW along with gcc and autoconf tools needed by hs-plugins

[Haskell-cafe] dynamic loading of code on windows

2010-11-12 Thread Arnaud Bailly
Hello, I recently tried to cabal install plugins on a windows box and it failed with the following error: Resolving dependencies... Downloading plugins-1.5.1.4... Configuring plugins-1.5.1.4... cabal: The package has a './configure' script. This requires a Unix compatibility toolchain such as

Re: [Haskell-cafe] Re: dynamic loading of code on windows

2010-11-12 Thread Arnaud Bailly
such a toolchain to compile much open source software, including many Haskell modules, on Windows. Personally I use MinGW+MSYS on my Windows machine. It works very well. Kevin On Nov 12, 3:20 pm, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello, I recently tried to cabal install plugins

[Haskell-cafe] Re: Haskell-Cafe Digest, Vol 86, Issue 63

2010-10-30 Thread Arnaud Bailly
jwl...@gmail.com wrote: Hi Arnaud, From: Arnaud Bailly arnaud.oq...@gmail.com Hello, I am trying to wrap my head around the concept of Iteratee reading the article by John Lato in Monad Reader issue 16 (http://themonadreader.files.wordpress.com/2010/05/issue16.pdf). I followed the advice

[Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Arnaud Bailly
about the failure and what caused it. Thanks for your help, Arnaud Bailly ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Arnaud Bailly
. Thanks Arnaud On Sat, Oct 30, 2010 at 1:35 PM, Ben Millwood hask...@benmachine.co.uk wrote: On Sat, Oct 30, 2010 at 11:56 AM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello, All of a sudden, the package regex-posix-0.94.2 failed to link after i installed a couple of other packages (http

Re: [Haskell-cafe] Package regex-posix-0.94.2 suddenly failed to link

2010-10-30 Thread Arnaud Bailly
Hello, I managed to fix this issue reinstalling regex-posix (with a higher version) and then reinstall regex-compat (broken through the reinstall). Thanks a lot for the pointer, Arnaud On Sat, Oct 30, 2010 at 1:08 PM, Stephen Tetley stephen.tet...@gmail.com wrote: Possibly related to this bug?

[Haskell-cafe] Understanding Iteratees

2010-10-27 Thread Arnaud Bailly
Hello, I am trying to wrap my head around the concept of Iteratee reading the article by John Lato in Monad Reader issue 16 (http://themonadreader.files.wordpress.com/2010/05/issue16.pdf). I followed the advice on page 34: I have frequently heard reports from Haskellers (including highly-talented

Re: [Haskell-cafe] Re: Return value of a (windows) process

2010-10-20 Thread Arnaud Bailly
/System-Process.html On Oct 19, 10:12 pm, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello, I have the following code (fragment) I use to wrap execution of various processes in Haskell, in the spirit of Don Stewart's slides about Scripting in Haskell. instance MonadExec IO where   exec proc args

[Haskell-cafe] Return value of a (windows) process

2010-10-19 Thread Arnaud Bailly
Hello, I have the following code (fragment) I use to wrap execution of various processes in Haskell, in the spirit of Don Stewart's slides about Scripting in Haskell. instance MonadExec IO where exec proc args = do (exit, out, err) - liftIO $ readProcessWithExitCode proc args

[Haskell-cafe] Question on monad transformers stack

2010-09-28 Thread Arnaud Bailly
the environment or part of it inside the MonadExec, for example as a Reader. What is the best (i.e. most economical) way of doing this? Thanks for your advices. Arnaud Bailly ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] Question on monad transformers stack

2010-09-28 Thread Arnaud Bailly
becomes a choice of which monad to begin execution in. Note that this can be a bit cumbersome (but I don't think impossible) if the debug flag has to be changed at runtime. Hope this helps, --Jonathan On Tue, Sep 28, 2010 at 12:56 AM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Hello

[Haskell-cafe] Question on concurrency

2010-09-14 Thread Arnaud Bailly
Hello Haskellers, Having been pretty much impressed by Don Stewart's Practical Haskell (http://donsbot.wordpress.com/2010/08/17/practical-haskell/), I started to write a Haskell script to run maven jobs (yes, I know...). In the course of undertaking this fantastic endeavour, I started to use the

Re: [Haskell-cafe] Question on concurrency

2010-09-14 Thread Arnaud Bailly
Probably did not test enough. Sorry for the noise. arnaud On Tue, Sep 14, 2010 at 12:18 PM, Neil Brown nc...@kent.ac.uk wrote: On 14/09/10 07:45, Arnaud Bailly wrote: What surprised me is that I would expect the behaviour of the two functions to be different:  - in doRunMvnInIO, I would

[Haskell-cafe] Small question on concurrency

2010-09-12 Thread Arnaud Bailly
Hello Haskellers, Having been pretty much impressed by Don Stewart's Practical Haskell (http://donsbot.wordpress.com/2010/08/17/practical-haskell/), I started to write a Haskell script to run maven jobs (yes, I know...). In the course of undertaking this fantastic endeavour, I started to use the

[Haskell-cafe] Missing documentation in Haskell Platform on Windows

2010-08-31 Thread Arnaud Bailly
Hello, I installed (succesfully) HAskell Platform 2010.2 on windows and have a small but annoying issue: Some links in HTML documentation lead to broken links. I did not investigate all the links, but I have seen that all doc under Control.Monad.XXX is missing. What am I doing wrong ? Arnaud

[Haskell-cafe] Applying a value to a function generically

2010-07-14 Thread Arnaud Bailly
Hello, I would like to construct a collection of function-like objects on which I could apply some value, in a typesafe and clean way. Let's say I have something like this: data Fun = forall a b . F (a - b) type Callables = Map String Fun I would like to be able to write: invoke ::

Re: [Haskell-cafe] A Finally Tagless Pi Calculus

2010-06-10 Thread Arnaud Bailly
Hello, I studied (a bit) Pi-calculus and other mobile agents calculus during my PhD, and I have always been fascinated by the beauty of this idea. Your implementation is strikingly simple and beautiful. I have a question though: Why is the fixpoint type newtype Nu f = Nu { nu :: f (Nu f) }

[Haskell-cafe] Strange discrepancy between Emacs interpreter and command-line on windows

2010-06-09 Thread Arnaud Bailly
. Thanks for any help, Arnaud Bailly ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Strange discrepancy between Emacs interpreter and command-line on windows

2010-06-09 Thread Arnaud Bailly
Yes, I have two versions installed , 0.9.1.4 and 0.9.1.6. Here is the output of ghc-pkg -l: d:/Program Files/Haskell Platform/2009.2.0.2\package.conf: Cabal-1.6.0.3, GLUT-2.1.1.2, HSlim-0.1, HTTP-4000.0.6, HUnit-1.2.0.3, OpenGL-2.2.1.1, QuickCheck-1.2.0.0, QuickCheck-2.1.0.3,

Re: [Haskell-cafe] Strange discrepancy between Emacs interpreter and command-line on windows

2010-06-09 Thread Arnaud Bailly
I did: ghc-pkg unregister bytestring-0.9.1.6 then restarted emacs and it works now. Don't now if ther weill be side-effects on other packages... Thanks for the tip. arnaud On Thu, Jun 10, 2010 at 6:15 AM, Arnaud Bailly arnaud.oq...@gmail.com wrote: Yes, I have two versions installed

Fwd: [Haskell-cafe] Weird socket problem on Mac OS X

2010-06-04 Thread Arnaud Bailly
-- Forwarded message -- From: Arnaud Bailly arnaud.oq...@gmail.com Date: Fri, Jun 4, 2010 at 11:59 AM Subject: Re: [Haskell-cafe] Weird socket problem on Mac OS X To: Antoine Latter aslat...@gmail.com Hello, I managed to solve the problem using Network.Socket instead of Network

[Haskell-cafe] Weird socket problem on Mac OS X

2010-06-03 Thread Arnaud Bailly
Hello, I have the following code which works ok on Linux and Windows XP, but fails on Mac OS X with error message: Connect: does not exist (connection refused) The server: doStartstate = do pr - liftIO $ runProcess ... liftIO $ threadDelay 50

[Haskell-cafe] Using a library in a executable within same cabal package

2010-04-24 Thread Arnaud Bailly
that from the documentation. I tried Extra-libraries option but it does not work. Thanks for your help -- Arnaud Bailly ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Using a library in a executable within same cabal package

2010-04-24 Thread Arnaud Bailly
You are right, I hit reply without checking the destination. Thanks for your answer. Arnaud On Sat, Apr 24, 2010 at 3:24 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: First of all, did you mean to reply back to -cafe as well? Arnaud Bailly arnaud.oq...@gmail.com writes: I

Re: [Haskell-cafe] I miss OO

2009-11-25 Thread Arnaud Bailly
on/with different things is an interesting side-effect. -- Arnaud Bailly -- OQube software engineering http://www.oqube.com/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] ANNOUNCE: gitit 0.2 release - wiki using HAppS, git, pandoc

2009-01-17 Thread Arnaud Bailly
I think you need to remove your users database (and rebuild it). Compatibility was broken in version 0.3.4 (not sure of number). HTH -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] Gitit - Encoding

2008-12-30 Thread Arnaud Bailly
are incorrectly encoded. Where Shall I look for fixing this issue ? Thanks ps: the wiki is live at http://www.notre-ecole.org -- Arnaud Bailly, PhD OQube - Software Engineering web http://www.oqube.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

[Haskell-cafe] Re: Gitit - Encoding

2008-12-30 Thread Arnaud Bailly
could put a feed inside a page 2. gitit could produce feeds for changes/adds I have done things like that before in Java but would need some directions to incorporate it in gitit. -- Arnaud Bailly, PhD OQube - Software Engineering web http://www.oqube.com

[Haskell-cafe] Web application from the ground up

2008-10-09 Thread Arnaud Bailly
. Some people there seems to think this is something very common that has been resolved over a hundred times. Once would be enough for me, and I would be very happy if someone could point me to the right direction or provide some sample code for this. Best regards, -- Arnaud Bailly, PhD OQube

Re: [Haskell-cafe] Parsec and Java

2007-02-11 Thread Arnaud Bailly
There is: http://jparsec.codehaus.org/ HTH, -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Haskell's market

2006-03-31 Thread Arnaud Bailly
? -- Arnaud Bailly, Dr. - Ingénieur de Recherche NORSYS 1, rue de la Cense des Raines ZAC du Moulin 59710 ENNEVELIN Tel : (33) 3 28 76 56 76 Mob : (33) 6 17 12 19 78 Fax : (33) 3 28 76 57 00 Web : http://www.norsys.fr ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] Haskell's market

2006-03-28 Thread Arnaud Bailly
convinced Haskell is really interesting in itself. And I am willing to do some investment in time and money to use Haskell at the expense of another simpler but less elegant solution (read Java :-)). I would be very happy to have some feedback about these issues, regards, -- Arnaud Bailly, Dr

Re: [Haskell-cafe] Re: Haskell's market

2006-03-28 Thread Arnaud Bailly
Pete Chown [EMAIL PROTECTED] writes: Arnaud Bailly wrote: I am on the verge of starting a new sofware development project for a customer and I wonder whether or not Haskell would be the right tool to do the job. One snag is that I doubt you could ring up an agency and ask for half a dozen

Re: [Haskell-cafe] Haskell and JVM

2006-02-02 Thread Arnaud Bailly
. Regards, -- Arnaud Bailly, Dr. - Ingénieur de Recherche NORSYS 1, rue de la Cense des Raines ZAC du Moulin 59710 ENNEVELIN Tel : (33) 3 28 76 56 76 Mob : (33) 6 17 12 19 78 Fax : (33) 3 28 76 57 00 Web : http://www.norsys.fr ___ Haskell-Cafe mailing list