Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming

2011-07-10 Thread Heinrich Apfelmus
Henning Thielemann wrote: Heinrich Apfelmus wrote: Could you expand a little on your arrow-like stream processors? What do the arrows look like, data SF a b = SF (a - (b, SF a b)) ? My stream processors are not Arrows, because 'first' cannot be implemented. However, 'arr' and '.' can

[Haskell-cafe] [ANN] PAM library, Iptables web-interface

2011-07-10 Thread Evgeny Tarasov
Hello! I'd like to announce my project called Iptadmin. It's a web interface for linux Iptables firewall [1]. It supports just few Iptables options by now. The main feature of Iptadmin is user friendly help messages. Iptadmin works in a daemon mode. It doesn't keep any auxiliary information in

Re: [Haskell-cafe] NLP libraries and tools?

2011-07-10 Thread Ketil Malde
Perhaps this is interesting? On the relationship between exploratory (a.k.a. sloppy or theoretical) and rigorous math. http://arxiv.org/pdf/math/9307227v1 -k -- If I haven't seen further, it is by standing in the footprints of giants ___

Re: [Haskell-cafe] HaskellDB DB Layout Description

2011-07-10 Thread Mats Rauhala
On 18:12 Sat 09 Jul , Tom Murphy wrote: Hi, I've found good explanations of the HaskellDB combinators, but I can't find good information about how to correctly define the database layout. Can anyone point me to a resource, or give a quick example? Thanks! Tom

[Haskell-cafe] Haddock and the type inference

2011-07-10 Thread Yves Parès
Hello Café, As far as I know, there is currently no way to tell haddock to run the type inferer to document functions without explicit type signature. Is that done on purpose (e.g. to force the developpers to write at least the type signatures of the public API, which is a fair reason) or is it a

[Haskell-cafe] class and instance

2011-07-10 Thread Patrick Browne
Hi, I am trying to understand the following code. I have written my current (mis-)understanding and questions below. I do not wish to improve the code, it is from a research paper[1] that I am trying to understand. Pat [1] ftp://ftp.geoinfo.tuwien.ac.at/medak/phdmedak.pdf -- A specification. The

Re: [Haskell-cafe] class and instance

2011-07-10 Thread Brandon Allbery
On Sun, Jul 10, 2011 at 06:49, Patrick Browne patrick.bro...@dit.ie wrote: My main question is in understanding the relationship between the arguments of the functions getX and getY in the class and in the instance. It seems to me that the constructor Pt 1 2 produces one element of type Point

Re: [Haskell-cafe] class and instance

2011-07-10 Thread Steffen Schuldenzucker
On 07/10/2011 12:49 PM, Patrick Browne wrote: Hi, I am trying to understand the following code. I have written my current (mis-)understanding and questions below. I do not wish to improve the code, it is from a research paper[1] that I am trying to understand. Pat [1]

Re: [Haskell-cafe] class and instance

2011-07-10 Thread Daniel Schoepe
On Sun, 10 Jul 2011 11:49:44 +0100, Patrick Browne patrick.bro...@dit.ie wrote: My main question is in understanding the relationship between the arguments of the functions getX and getY in the class and in the instance. It seems to me that the constructor Pt 1 2 produces one element of type

Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming

2011-07-10 Thread Felipe Almeida Lessa
On Sat, Jul 9, 2011 at 7:58 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: My stream processors are not Arrows, because 'first' cannot be implemented. However, 'arr' and '.' can be implemented. ... Since I have no Arrow instance I even have to write my own combinators that are

Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming

2011-07-10 Thread Henning Thielemann
On Sun, 10 Jul 2011, Felipe Almeida Lessa wrote: On Sat, Jul 9, 2011 at 7:58 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: My stream processors are not Arrows, because 'first' cannot be implemented. However, 'arr' and '.' can be implemented. ... Since I have no Arrow instance

Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming

2011-07-10 Thread Henning Thielemann
On Sun, 10 Jul 2011, Heinrich Apfelmus wrote: Question: how would you actually like to describe the guitar simulator at a high-level? Did you already wish for some specific combinators? Assume that you had something like reactive-banana available and imagine that there were a benevolent

[Haskell-cafe] JSON Querry examples

2011-07-10 Thread Dmitri O.Kondratiev
Hi, I am trying to search known-in-advance fields in JSON object with unknown structure. It looks like Data.JSON2.Query is most appropriate for this task. Yet, I can not figure out how to use filters this package provides to filter JSON arrays and objects. Are there any end-to-end examples of

Re: [Haskell-cafe] error with nanocurses-1.5.2

2011-07-10 Thread José Romildo Malaquias
On Sat, Jul 09, 2011 at 01:59:12PM -0300, José Romildo Malaquias wrote: Hello. When trying to install nanocurses-1.5.2 on my Fedora Linux system, I am getting the following error: $ cabal install nanocurses Resolving dependencies... Configuring nanocurses-1.5.2... Preprocessing library

Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming

2011-07-10 Thread Heinrich Apfelmus
Henning Thielemann wrote: Heinrich Apfelmus wrote: Question: how would you actually like to describe the guitar simulator at a high-level? Did you already wish for some specific combinators? Assume that you had something like reactive-banana available and imagine that there were a benevolent

Re: [Haskell-cafe] unbuffered raw keyboard input on Windows

2011-07-10 Thread José Romildo Malaquias
On Wed, Jul 06, 2011 at 02:48:47PM -0700, David Barbour wrote: You could try the SDL package to support user input. Unfortunatly it does not run on a terminal. 2011/7/6 José Romildo Malaquias j.romi...@gmail.com Hello. I want to write a Haskell console application (a game) in ghc where

Re: [Haskell-cafe] unbuffered raw keyboard input on Windows

2011-07-10 Thread José Romildo Malaquias
On Wed, Jul 06, 2011 at 06:46:32PM -0300, José Romildo Malaquias wrote: Hello. I want to write a Haskell console application (a game) in ghc where the user will interact using the keyboard. I need to read the keys as soon as they are typed and without echoing to the console. Although

Re: [Haskell-cafe] unbuffered raw keyboard input on Windows

2011-07-10 Thread David Barbour
2011/7/10 José Romildo Malaquias j.romi...@gmail.com On Wed, Jul 06, 2011 at 02:48:47PM -0700, David Barbour wrote: You could try the SDL package to support user input. Unfortunatly it does not run on a terminal.

[Haskell-cafe] External system connections

2011-07-10 Thread Richard Wallace
Hello all, I'm trying to understand how to properly structure a connection to an external system. I'm writing an application that processes requests (it's an IRC bot - ya, I've looked at lambabot but it's a bit beyond my current understanding and I'm really trying to learn this stuff and find

Re: [Haskell-cafe] External system connections

2011-07-10 Thread Felipe Almeida Lessa
You don't need to do it, it is already done =). See the pool package by Michael Snoyman on Hackage [1]. More specifically, see createPoolCheckAlive [2]. Cheers, [1] http://hackage.haskell.org/package/pool [2]

Re: [Haskell-cafe] External system connections

2011-07-10 Thread Brandon Allbery
On Sun, Jul 10, 2011 at 15:04, Richard Wallace rwall...@thewallacepack.net wrote: What I'd like to do is something a bit smarter.  When a request to the SOAP server is to be made, if we have a token then we try and use it. If it fails, we reauthenticate and get a new token.  When establishing

Re: [Haskell-cafe] NLP libraries and tools?

2011-07-10 Thread ivan vadovic
Hi, Also a library for string normalization in the sense of stripping diacritical marks would be handy too. Does anything in this respect exist that would be usable from haskell? Thanks On Fri, Jul 01, 2011 at 02:31:34PM +0400, Dmitri O.Kondratiev wrote: Hi, Please advise on NLP libraries

Re: [Haskell-cafe] NLP libraries and tools?

2011-07-10 Thread Jason Dagit
On Sun, Jul 10, 2011 at 12:59 PM, ivan vadovic p...@pobox.sk wrote: Hi, Also a library for string normalization in the sense of stripping diacritical marks would be handy too. Does anything in this respect exist that would be usable from haskell? The closest thing I know of is this:

Re: [Haskell-cafe] Call for GUI examples - Functional Reactive Programming

2011-07-10 Thread Tom Murphy
Oh! I have a good, small (single-purpose; reusable), useful one! A text field which tab-completes words or phrases from a dictionary. Haskeline provides useful (non-FRP) for implementing this, but it seems like FRP could handle this in an interesting way. Tom On 7/10/11, Heinrich Apfelmus

Re: [Haskell-cafe] External system connections

2011-07-10 Thread Richard Wallace
On Sun, Jul 10, 2011 at 2:54 PM, Brandon Allbery allber...@gmail.com wrote: On Sun, Jul 10, 2011 at 17:34, Richard Wallace rwall...@thewallacepack.net wrote: Rather than a single separate thread that makes requests I was hoping to make several soap requests concurrently, rather than have them

Re: [Haskell-cafe] External system connections

2011-07-10 Thread Brandon Allbery
On Sun, Jul 10, 2011 at 19:16, Richard Wallace rwall...@thewallacepack.net wrote: On Sun, Jul 10, 2011 at 2:54 PM, Brandon Allbery allber...@gmail.com wrote: One thing I'd have to be careful to handle is iIf multiple worker threads find that the token is now invalid.  In that case they would

Re: [Haskell-cafe] External system connections

2011-07-10 Thread Richard Wallace
On Sun, Jul 10, 2011 at 4:38 PM, Brandon Allbery allber...@gmail.com wrote: One of the reasons to send the request back to the dispatcher instead of doing it inline is so that the dispatcher can note that a renewal request is already in flight (which it needs to know anyway, so it can block

Re: [Haskell-cafe] External system connections

2011-07-10 Thread Brandon Allbery
On Sun, Jul 10, 2011 at 20:19, Richard Wallace rwall...@thewallacepack.net wrote: On Sun, Jul 10, 2011 at 4:38 PM, Brandon Allbery allber...@gmail.com wrote: Ok, I can see that.  Though I was thinking that the worker threads would send the request back to the dispatcher by way of the same Chan

Re: [Haskell-cafe] External system connections

2011-07-10 Thread Richard Wallace
Alright, I'll have to think on this some more but I think we're speaking the same language now - and what's more I even understand it! Thanks again for all your help, Rich On Sun, Jul 10, 2011 at 6:46 PM, Brandon Allbery allber...@gmail.com wrote: On Sun, Jul 10, 2011 at 20:19, Richard Wallace

[Haskell-cafe] Good XML-Enumerator Examples

2011-07-10 Thread Michael Xavier
Hi Cafe. I'm writing a library which will be parsing XML data from a web API. I'm fairly well versed at this point in parsing JSON (aeson being my library of choice). For XML, I like the API of xml-enumerator over hxt because it appears to be nice and simple .The problem is that the example in

Re: [Haskell-cafe] Good XML-Enumerator Examples

2011-07-10 Thread Michael Snoyman
On Mon, Jul 11, 2011 at 8:42 AM, Michael Xavier nemesisdes...@gmail.com wrote: Hi Cafe. I'm writing a library which will be parsing XML data from a web API. I'm fairly well versed at this point in parsing JSON (aeson being my library of choice). For XML, I like the API of xml-enumerator over