[Haskell-cafe] Happstack basic question

2010-03-11 Thread Dmitry V'yal
Hello haskellers, I want to host a simple happstack application behind a reverse proxy. So ideally would be to bind it to localhost only. According to http://hackage.haskell.org/packages/archive/happstack-server/0.4.1/doc/html/Happstack-Server-HTTP-Types.html#t%3AConf Conf datatyle has only

[Haskell-cafe] Re: [Haskell] ANNOUNCE: Bravo-0.1.0

2010-03-11 Thread Marc Weber
Hi Matthias, Bravo is inspired by the PHP template engine Smarty and the Haskell Smarty is also about caching. Can you say whether your library support kind of caching as well? Marc Weber ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Cabal and LLVM bindings

2010-03-11 Thread Ville Tirronen
Hi! I'm trying to get cabal build my toy compiler, which is based on llvm bindings on hackage. Everything is fine with ghc --make, but with cabal install I get: Loading package llvm-0.7.1.1 ... command line: can't load .so/.DLL for: LLVMSystem (dlopen(libLLVMSystem.dylib, 9): image not found)

Re: [Haskell-cafe] ANN: powerpc-0.0.1

2010-03-11 Thread Serguey Zefirov
2010/3/10 Tom Hawkins tomahawk...@gmail.com: On Wed, Mar 10, 2010 at 8:07 AM, Warren Henning warren.henn...@gmail.com wrote: Wow. Quite ambitious. Was this inspired by work at your current employer like with Atom and some of the other stuff you've released? Yes, we had an immediate need to

Re: [Haskell-cafe] Happstack basic question

2010-03-11 Thread Martin Kiefel
Hi Dmitry, On Thu, Mar 11, 2010 at 11:38:44AM +0300, Dmitry V'yal wrote: Hello haskellers, I want to host a simple happstack application behind a reverse proxy. So ideally would be to bind it to localhost only. According to

Re: [Haskell-cafe] Re: Anyone up for Google SoC 2010?

2010-03-11 Thread Andrew Coppin
Yakov Zaytsev wrote: I've got N900 recently and saw that according to this page http://hackage.haskell.org/trac/ghc/wiki/Platforms it's not possible to run GHC and GHCi easily on ARM. This sucks. According to this page, shared libraries are not supported on *any* platform except MacOS.

Re: [Haskell-cafe] Re: Anyone up for Google SoC 2010?

2010-03-11 Thread Alp Mestanogullari
On Thu, Mar 11, 2010 at 2:13 PM, Andrew Coppin andrewcop...@btinternet.comwrote: According to this page, shared libraries are not supported on *any* platform except MacOS. Surely that's no longer true? They are supported on Linux too now [1]. I don't know the status regarding Windows though.

Re: [Haskell-cafe] Re: Anyone up for Google SoC 2010?

2010-03-11 Thread Andrew Coppin
Alp Mestanogullari wrote: On Thu, Mar 11, 2010 at 2:13 PM, Andrew Coppin andrewcop...@btinternet.com mailto:andrewcop...@btinternet.com wrote: According to this page, shared libraries are not supported on *any* platform except MacOS. Surely that's no longer true? They are supported

Re: [Haskell-cafe] definition of sum

2010-03-11 Thread Yitzchak Gale
TeXitoi wrote: why is foldl used by Data.List for sum? Daniel Fischer wrote: Because Haskell is a non-strict language, and foldl' is strict -- someone might write a (legitimate) Num instance for a datatype such that foldl (+) 0 xs returns a good value, but foldl' (+) 0 xs gives ***Exception:

Re: [Haskell-cafe] Happstack basic question

2010-03-11 Thread Kyle Murphy
You misunderstand his question. He's trying to setup happstack behind a reverse proxy running on the same system, so he needs to be able to bind it only to the loopback interface (127.0.0.1), as opposed to all the interfaces on the system (thereby making it inaccessible from the network unless

Re: [Haskell-cafe] Happstack basic question

2010-03-11 Thread Martin Kiefel
On Thu, Mar 11, 2010 at 09:24:05AM -0500, Kyle Murphy wrote: You misunderstand his question. He's trying to setup happstack behind a reverse proxy running on the same system, so he needs to be able to bind it only to the loopback interface (127.0.0.1), as opposed to all the interfaces on the

Re: [Haskell-cafe] Problem installing wxHaskell on Haskell Platform on OSX.

2010-03-11 Thread David Place
On Mar 10, 2010, at 6:33 PM, Daniel Fischer wrote: cabal install wx-0.12.1.2 wxcore-0.12.1.2 wxdirect-0.12.1.1 has good chances to work on 6.10.* I have managed to install and compile this version of wxHaskell. Now, I have a problem using it. The instructions on the use of wxHaskell on

Re: [Haskell-cafe] Space leak

2010-03-11 Thread Stephen Tetley
Hi Arnoldo This doesn't address the space leak, but your parseChromosome function looks very inefficient - isInfixOf is repeatedly checking the prefix chromosome for C1 to CY. If you have a lot of CY's in a file then it will do a lot of work parsing them. The cleanest way of handling this would

Re: [Haskell-cafe] Cabal and LLVM bindings

2010-03-11 Thread Thomas Schilling
Do you happen to use template haskell? It looks like the interpreter is trying to load llvm, which is currently not supported. That doesn't explain why it works with ghc --make though. Do you do anything special in your .cabal file? On 11 March 2010 12:30, Ville Tirronen alea...@gmail.com

Re: [Haskell-cafe] Happstack basic question

2010-03-11 Thread Kyle Murphy
Ah, I see, I was looking at the example code in the Happstack documentation you linked. Looking at the documentation of Network.Socket I can see where it provides an option to bind on a particular address. The example given in the Happstack docs uses bindPort to get the socket which confused me as

Re: [Haskell-cafe] definition of sum

2010-03-11 Thread Daniel Fischer
Am Donnerstag 11 März 2010 15:23:32 schrieb Yitzchak Gale: TeXitoi wrote: why is foldl used by Data.List for sum? Daniel Fischer wrote: Because Haskell is a non-strict language, and foldl' is strict -- someone might write a (legitimate) Num instance for a datatype such that foldl (+) 0

Re: [Haskell-cafe] definition of sum

2010-03-11 Thread David Leimbach
However, with optimisations turned on... GHC knows that sum is actually strict GHC does that when optimizations are turned on, but that behavior is not required by the Haskell standard. So there is no guarantee that any given compiler will produce usable output if you use foldl

Re: [Haskell-cafe] ANN: powerpc-0.0.1

2010-03-11 Thread John Van Enk
Serguey, I'm working on a similar project. What's the chance you have your source code in the open? /jve On Thu, Mar 11, 2010 at 7:30 AM, Serguey Zefirov sergu...@gmail.com wrote: 2010/3/10 Tom Hawkins tomahawk...@gmail.com: On Wed, Mar 10, 2010 at 8:07 AM, Warren Henning

Re: [Haskell-cafe] ANN: powerpc-0.0.1

2010-03-11 Thread Serguey Zefirov
2010/3/11 John Van Enk vane...@gmail.com: Serguey, I'm working on a similar project. What's the chance you have your source code in the open? /jve I'll ask. But chances are pretty small. I'll think about reimplementing command description from scratch. On Thu, Mar 11, 2010 at 7:30 AM,

Re: [Haskell-cafe] ANN: powerpc-0.0.1

2010-03-11 Thread John Van Enk
Serguey, The system I'm writing has a type in place for the AVR instruction set. I'm working on writing an assembler/disassembler for it as well. It might make sense, if your employer deems it worthwhile to release the code, to collaborate. /jve On Thu, Mar 11, 2010 at 11:35 AM, Serguey Zefirov

Re: [Haskell-cafe] Re: Cabal dependency hell

2010-03-11 Thread Rogan Creswick
On Mon, Mar 8, 2010 at 2:31 PM, Maciej Piechotka uzytkown...@gmail.com wrote: On Mon, 2010-03-08 at 15:37 +0100, Marc Weber wrote: We can't expect package maintainers to test everything. So it must be people like you and me who fixes those changes. Well. Except that it require bumping

Re: [Haskell-cafe] ANN: powerpc-0.0.1

2010-03-11 Thread Serguey Zefirov
2010/3/11 John Van Enk vane...@gmail.com: Serguey, The system I'm writing has a type in place for the AVR instruction set. I'm working on writing an assembler/disassembler for it as well. It might make sense, if your employer deems it worthwhile to release the code, to collaborate. /jve Our

[Haskell-cafe] ANN: HaskellTorrent v0.1.1

2010-03-11 Thread Jesper Louis Andersen
Hello Cafe, I am pleased to announce yet another release of the HaskellTorrent project. In this release, focus has been on improving upon the work laid in v0.0. Highlights include: * Certain data structures have changed from Data.List to Data.IntSet, yielding much improved performance. *

Re: [Haskell-cafe] Re: Anyone up for Google SoC 2010?

2010-03-11 Thread Max Bolingbroke
On 11 March 2010 13:42, Andrew Coppin andrewcop...@btinternet.com wrote: Yeah, I thought the IHG recently spent a bunch of money on getting it working on Linux. I gather Windows is a lowER priority (although it IS on the to-do list). AFAIK shared libraries now work on Windows - Ben Lippmeier

Re: [Haskell-cafe] Re: Anyone up for Google SoC 2010?

2010-03-11 Thread phil
Would be great to see GHC on Maemo. I recently bought an N900 and googled around to see if this is possible to write Haskell for the platform. The short answer is 'not easily' There are some old notes on getting previous versions compiling, but nothing up to date I gave up pretty quickly

Re: [Haskell-cafe] Re: Anyone up for Google SoC 2010?

2010-03-11 Thread John Meacham
On Thu, Mar 11, 2010 at 10:02:42PM +, phil wrote: Would be great to see GHC on Maemo. I recently bought an N900 and googled around to see if this is possible to write Haskell for the platform. Just a note, jhc works just fine for cross-compiling to maemo. It is one of the first

[Haskell-cafe] Re: ANNOUNCE: Bravo-0.1.0

2010-03-11 Thread Simon Michael
Thank you, how does it compare to HStringTemplate ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Space leak

2010-03-11 Thread Daniel Fischer
Am Donnerstag 11 März 2010 00:24:28 schrieb Daniel Fischer: Hmm, offhand, I don't see why that isn't strict enough. Turns out, mapM_ was a red herring. The villain was (zip and map). I must confess, I don't know why it sort-of worked without the mapM_, though. sort-of, because that also hung on

Re: [Haskell-cafe] Space leak

2010-03-11 Thread Arnoldo Muller
Daniel, Thank you so much for helping me out with this issue! Thanks to all the other answers from haskel-cafe members too! As a newbie, I am not able to understand why zip and map would make a problem... Is there any link I could read that could help me to understand why in this case zip and

[Haskell-cafe] Re: [Haskell] ANNOUNCE: Bravo-0.1.0

2010-03-11 Thread Matthias Reisner
Hi Marc, I'm sorry, the current Bravo version does not support caching of evaluated templates. Maybe this will be a feature of later releases. Matthias Am 11.03.2010 10:02 schrieb Marc Weber: Hi Matthias, Bravo is inspired by the PHP template engine Smarty and the Haskell Smarty is

Re: [Haskell-cafe] Re: ANNOUNCE: Bravo-0.1.0

2010-03-11 Thread Matthias Reisner
Am 11.03.2010 23:38 schrieb Simon Michael: Thank you, how does it compare to HStringTemplate ? Hi Simon, I never worked with HStringTemplate, so as far as I can tell after having a glance at the HStringTemplate API and the wiki page, the main difference is that Bravo parses the templates

Re: [Haskell-cafe] ANNOUNCE: Bravo-0.1.0

2010-03-11 Thread Michael Snoyman
Matthis, Thank you for releasing this library, it looks very intriguing. I've been building web apps using HStringTemplate up until now, and one thing that always irks me is that- while the rest of my program is checked at compile-time- my template results need to be checked manually at runtime.

Re: [Haskell-cafe] 3rd party widgets with qtHaskell (Marble)

2010-03-11 Thread Philip Beadling
On Wed, 2010-03-10 at 11:22 +0100, Alp Mestanogullari wrote: This something you are afaik able to do. I'm cc'ing David (qthaskell's author). Thanks for the reply. I've worked it out. The below code demonstrates getting and setting a property from a marble widget. I'm a little

Re: [Haskell-cafe] ANNOUNCE: Bravo-0.1.0

2010-03-11 Thread Matthias Reisner
Hi Michael Am 12.03.2010 01:33 schrieb Michael Snoyman: I'll need to look into the library a bit more to get a better idea, but it seems like Bravo could work for my needs. One thing that concerns me is your comment that it allows embedding of Haskell expressions. In general, I try to keep a

[Haskell-cafe] If wishes were horses... (was: Re: definition of sum)

2010-03-11 Thread wren ng thornton
David Leimbach wrote: Note that foldl' has a ' to indicate that it's not the same as foldl exactly. I would propose that sum' exist as well as sum, and that sum be lazy. I wish Haskell allowed ! to occur (non-initially) in alphanum_' identifiers as well as in symbolic ones. Then we could be

[Haskell-cafe] How to do the permutation and combination thing?

2010-03-11 Thread Magicloud Magiclouds
Hi, For example, I have this: list1 = [a, b, c] list2 = [d, e, f] list3 = [g, h, i] Now I want: [ [(a, d, g), (b, e, h), (c, f, i)] , ... ] -- a list that contains all the combinations. How to do it pretty? Thanks. -- 竹密岂妨流水过 山高哪阻野云飞 ___

Re: [Haskell-cafe] How to do the permutation and combination thing?

2010-03-11 Thread Casey Hawthorne
This sounds like homework. Think in abstract terms what you want to accomplish. Start with the simplest case first, usually the base case. On Fri, 12 Mar 2010 14:02:02 +0800, you wrote: Hi, For example, I have this: list1 = [a, b, c] list2 = [d, e, f] list3 = [g, h, i] Now I want: [ [(a,

Re: [Haskell-cafe] How to do the permutation and combination thing?

2010-03-11 Thread Magicloud Magiclouds
All I could get is to use permutations and concatMap. But it looks really ugly. On Fri, Mar 12, 2010 at 2:09 PM, Casey Hawthorne cas...@istar.ca wrote: This sounds like homework. Think in abstract terms what you want to accomplish. Start with the simplest case first, usually the base case.