[Haskell-cafe] Library for Sparse Vectors?

2011-07-26 Thread dokondr
Hi, Can't find on hackage any sparse vector library. Does such thing exist? I need efficient storage and dot product calculation for very sparse vectors with about 10 out of 40 000 non-zero components. One solution would be to represent Sparse Vector as Data.Map with (component_index,

Re: [Haskell-cafe] Library for Sparse Vectors?

2011-07-26 Thread dokondr
at 1:30 PM, dokondr doko...@gmail.com wrote: Hi, Can't find on hackage any sparse vector library. Does such thing exist? I need efficient storage and dot product calculation for very sparse vectors with about 10 out of 40 000 non-zero components. One solution would be to represent Sparse

[Haskell-cafe] Approximate String Matching

2011-07-27 Thread dokondr
Hi, I am looking for Haskell libraries to do approximate string matching: http://en.wikipedia.org/wiki/Approximate_string_matching I need this to reduce a set of English word variants with spelling errors to a single canonical dictionary entry. Any libraries to work with spelling will also help.

[Haskell-cafe] Haskell Actors, Linda, publish / subscribe models?

2011-08-13 Thread dokondr
...@gmail.com http://sites.google.com/site/dokondr/welcome ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell Actors, Linda, publish / subscribe models?

2011-08-14 Thread dokondr
On Sat, Aug 13, 2011 at 3:54 PM, dokondr doko...@gmail.com wrote: Hi, I am trying to figure out what Haskell libraries can be used to build publish / subscribe communication between threads running both in the same and different address spaces on the net. For my needs any of these models

Re: [Haskell-cafe] Haskell Actors, Linda, publish / subscribe models?

2011-08-15 Thread dokondr
On Mon, Aug 15, 2011 at 12:36 PM, Holger Reinhardt hreinha...@gmail.comwrote: Hi, the actor package seems unmaintained and probably doesn't fit your needs. If you want to implement some kind of publish/subscribe system over the network, I'd suggest you take a look at ZeroMQ[1] and AMQP[2].

Re: [Haskell-cafe] Haskell Actors, Linda, publish / subscribe models?

2011-08-15 Thread dokondr
of adaptive, distributed real-world systems! -- All the best, Dmitri O. Kondratiev This is what keeps me going: discovery doko...@gmail.com http://sites.google.com/site/dokondr/welcome ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Function composition in run-time?

2011-08-24 Thread dokondr
On Wed, Aug 24, 2011 at 4:44 PM, Iustin Pop ius...@google.com wrote: On Wed, Aug 24, 2011 at 04:35:42PM +0400, dokondr wrote: Hi, What is the Haskell way to compose functions in run-time? Depending on configuration parameters I need to be able to compose function in several ways without

Re: [Haskell-cafe] Function composition in run-time?

2011-08-24 Thread dokondr
- enumerate in my program all function compositions in some data structure for Haskell to compile, and the associate these with parameter values in external file. Thanks everybody! dokondr ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

[Haskell-cafe] The best way to call Java from Haskell?

2011-10-10 Thread dokondr
Hi, I need to call Stanford NLP Parser from Haskell (unfortunately Haskell does not have a similar one): http://nlp.stanford.edu/software/lex-parser.shtml What would be the most reliable framework for this? Thanks! Dmitri ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] The best way to call Java from Haskell?

2011-10-11 Thread dokondr
This is what keeps me going: discovery doko...@gmail.com http://sites.google.com/site/dokondr/welcome ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Libraries to compare trees?

2011-10-27 Thread dokondr
Please advise on Haskell libraries to compare trees in textual representation. I need to compare both structure and node contents of two trees, find similar sub-trees, and need some metric to measure distance between two trees. Also need advice on simple parser to convert textual tree

Re: [Haskell-cafe] Libraries to compare trees?

2011-10-27 Thread dokondr
My mistake: need advice on libraries and data types not for trees but for directed graphs. On Thu, Oct 27, 2011 at 4:49 PM, dokondr doko...@gmail.com wrote: Please advise on Haskell libraries to compare trees in textual representation. I need to compare both structure and node contents of two

Re: [Haskell-cafe] Libraries to compare trees?

2011-10-28 Thread dokondr
, links here? Thanks! On 28 October 2011 00:27, dokondr doko...@gmail.com wrote: My mistake: need advice on libraries and data types not for trees but for directed graphs. On Thu, Oct 27, 2011 at 4:49 PM, dokondr doko...@gmail.com wrote: Please advise on Haskell libraries to compare trees

[Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-10-31 Thread dokondr
Hi, Please share your experience / ideas on AWS storage most friendly to Haskell. So far I store my data mostly in Data.Map structures serialized to text files with write / read functions. Now I was requested to move my app and data to Amazon cloud. As far as I know there are two main storage

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-10-31 Thread dokondr
On Mon, Oct 31, 2011 at 6:50 PM, John Lenz l...@math.uic.edu wrote: 4) My code processes hundreds of messages. Every message is processed in exactly the same way as the others. So the code can be easily parallelized. Any Haskell frameworks that will allow me to run this code in a simple

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-10-31 Thread dokondr
On Mon, Oct 31, 2011 at 6:50 PM, John Lenz l...@math.uic.edu wrote: CouchDB works great, although I decided to go with SimpleDB since then it is amazon's problem to scale and allocate disk and so forth, which I like better. For couchdb, you can use my package couchdb-enumerator on hackage.

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-10-31 Thread dokondr
On Tue, Nov 1, 2011 at 12:07 AM, Ryan Newton rrnew...@gmail.com wrote: ... For a NOSQL layer -- I'm looking for the answer to that same question myself! We've been experimenting with Cassandra (used via the hscassandra package based in turn on cassandra-thrift). Already it's clear that

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-11-01 Thread dokondr
On Tue, Nov 1, 2011 at 5:03 AM, Ryan Newton rrnew...@gmail.com wrote: Any example code of using hscassandra package would really help! I'll ask my student. We may have some simple examples. Also, I have no idea as to their quality but I was pleasantly surprised to find three different

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-11-01 Thread dokondr
On Tue, Nov 1, 2011 at 10:53 AM, Neil Davies semanticphilosop...@gmail.comwrote: Word of caution Understand the semantics (and cost profile) of the AWS services first - you can't just open a HTTP connection and dribble data out over several days and hope for things to work. It is not a

[Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread dokondr
in SimpleDB or Cassandra or Redis, with concurrent access supported. So it looks like NData.Map should be a monad ... Any ideas on implementation and similar work? Thanks! Dmitri --- http://sites.google.com/site/dokondr/welcome ___ Haskell-Cafe mailing

Re: [Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread dokondr
Thanks everybody for advice! I'll try to clarify what I mean by persistence and concurrent access that preserves happens-before relationship. 1) Persistence - imagine Haskell run-time executing in infinite physical memory. My idea is to implement really huge, almost infinite memory in the cloud

Re: [Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread dokondr
On Wed, Nov 2, 2011 at 3:12 AM, dokondr doko...@gmail.com wrote: Thanks everybody for advice! I'll try to clarify what I mean by persistence and concurrent access that preserves happens-before relationship. 1) Persistence - imagine Haskell run-time executing in infinite physical memory. My

[Haskell-cafe] cabal install: Could not find module `Text.XML.HXT.Arrow'

2011-11-08 Thread dokondr
Hi, On Mac OSX, ghc-6.12.3, I have successfully installed the 'hxt' package: http://hackage.haskell.org/package/hxt-8.5.2 Registering hxt-9.1.4... Installing library in /Users/user/.cabal/lib/hxt-9.1.4/ghc-6.12.3 Now when I try to install hSimpleDB ( http://hackage.haskell.org/package/hSimpleDB)

Re: [Haskell-cafe] cabal install: Could not find module `Text.XML.HXT.Arrow'

2011-11-08 Thread dokondr
changed its module structure going from 9.0 to 9.1, hSimpleDB doesn't build against 9.0. You can try to build it by adding '--constraint=hxt==9.0.\*' after your cabal-install command. You can also ask the author to add version ranges to the package. Erik On Tue, Nov 8, 2011 at 11:58, dokondr

Re: [Haskell-cafe] cabal install: Could not find module `Text.XML.HXT.Arrow'

2011-11-08 Thread dokondr
On Tue, Nov 8, 2011 at 2:31 PM, Audun Skaugen audunskau...@gmail.comwrote: Erik Hesselink wrote: On Tue, Nov 8, 2011 at 12:16, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 8 November 2011 22:10, Erik Hesselink hessel...@gmail.com wrote: This is because hSimpleDB doesn't

Re: [Haskell-cafe] cabal install: Could not find module `Text.XML.HXT.Arrow'

2011-11-08 Thread dokondr
QuickCheck ==2.1.* QuickCheck-2.4.1 was excluded because tagsoup-0.8 requires QuickCheck ==2.1.* QuickCheck-2.4.1.1 was excluded because tagsoup-0.8 requires QuickCheck ==2.1.* On Tue, Nov 8, 2011 at 2:43 PM, dokondr doko...@gmail.com wrote: On Tue, Nov 8, 2011 at 2:31 PM, Audun Skaugen audunskau

[Haskell-cafe] Haskell Platform for OSX ?

2011-11-08 Thread dokondr
Hi, I am running GHC 6.12.3 at Mac OSX and have numerous problems with 'cabal install' of different packages. For example: ~cabal install mongoDB Resolving dependencies... Configuring mongoDB-1.1.0... Preprocessing library mongoDB-1.1.0... Building mongoDB-1.1.0... ... Control/Monad/MVar.hs:16:34:

Re: [Haskell-cafe] Haskell Platform for OSX ?

2011-11-09 Thread dokondr
On Wed, Nov 9, 2011 at 3:48 AM, Rogan Creswick cresw...@gmail.com wrote: On Tue, Nov 8, 2011 at 4:30 PM, Giovanni Tirloni gtirl...@sysdroid.com wrote: 3) How to install it into a separate location so it would not ruin my current platform? You can install it under a different username.

[Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread dokondr
Hi, What Haskell package to work with NoSQL storage is both mature and easiest to use? I need persistent storage for simple key/value lists (not complex JSON docs). CouchDB and Cassandra seems to be overkill for my needs. What about Riak, MongoDB, Voldemort, etc. ? Thanks! Dmitri.

Re: [Haskell-cafe] Haskell Platform for OSX ?

2011-11-09 Thread dokondr
On Wed, Nov 9, 2011 at 2:11 PM, Giovanni Tirloni gtirl...@sysdroid.comwrote: I meant install new packages through cabal under a different username. The cabal repo should be localized unless you specify --global Please see Rogan's suggestions. Thanks for your help! In case I upgrade to the

Re: [Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread dokondr
On Wed, Nov 9, 2011 at 5:46 PM, Daniel Schoepe dan...@schoepe.org wrote: On Wed, 9 Nov 2011 13:59:46 +0300, dokondr doko...@gmail.com wrote: Hi, What Haskell package to work with NoSQL storage is both mature and easiest to use? I need persistent storage for simple key/value lists

Re: [Haskell-cafe] Easiest to use NoSQL storage with Haskell?

2011-11-09 Thread dokondr
On Wed, Nov 9, 2011 at 8:41 PM, Bas van Dijk v.dijk@gmail.com wrote: On 9 November 2011 11:59, dokondr doko...@gmail.com wrote: What Haskell package to work with NoSQL storage is both mature and easiest to use? I need persistent storage for simple key/value lists (not complex JSON

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-11-16 Thread dokondr
to you under load. The free tier at AWS should allow you to experiment with building an app. The first couple of months of development cost us less than $1. Steve On Tue, Nov 1, 2011 at 1:27 AM, dokondr doko...@gmail.com wrote: On Tue, Nov 1, 2011 at 10:53 AM, Neil Davies semanticphilosop

[Haskell-cafe] How to get a file path to the program invoked?

2011-12-01 Thread dokondr
Hi, When my program starts it needs to know a complete path to the directory from which it was invoked. In terms of standard shell (sh) I need the Haskell function that will do equivalent to: #!/bin/sh path=$(dirname $0) How to get this path in Haskell? getProgName :: IO String defined

Re: [Haskell-cafe] How to get a file path to the program invoked?

2011-12-01 Thread dokondr
. -- All the best, Dmitri O. Kondratiev This is what keeps me going: discovery doko...@gmail.com http://sites.google.com/site/dokondr/welcome ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How to get a file path to the program invoked?

2011-12-01 Thread dokondr
, any way to get the same functionality in GHC? On Thu, Dec 1, 2011 at 10:32 PM, Giovanni Tirloni gtirl...@sysdroid.comwrote: On Thu, Dec 1, 2011 at 5:26 PM, dokondr doko...@gmail.com wrote: On the contrary, standard shell variable $0 - contains a full path to the program location

Re: [Haskell-cafe] How to get a file path to the program invoked?

2011-12-01 Thread dokondr
Balazs, thanks! It's great that these packages exist! On Thu, Dec 1, 2011 at 11:17 PM, Balazs Komuves bkomu...@gmail.com wrote: Hello, I'm not subscribed to haskell cafe, but I browse the archives sometimes. As Simon Hengel wrote there, there are two packages on Hackage trying to solve

[Haskell-cafe] writeFile: commitBuffer: invalid argument (Illegal byte sequence)

2011-12-04 Thread dokondr
Hi, In GHC 7.0.3 / Mac OS X when trying to: writeFile someFile (Hoping You Have A iPhone When I Do This) Lol Sleep Is When You Close These ---gt; \55357\56384 I get: commitBuffer: invalid argument (Illegal byte sequence) The string I am trying to write can also be seen here:

Re: [Haskell-cafe] writeFile: commitBuffer: invalid argument (Illegal byte sequence)

2011-12-04 Thread dokondr
Correct url of a bad string: http://twitter.com/#!/search/Hoping%20You%20Have%20A%20iPhone%20When%20I%20Do%20This%20lang%3Aen On Sun, Dec 4, 2011 at 3:08 PM, dokondr doko...@gmail.com wrote: Hi, In GHC 7.0.3 / Mac OS X when trying to: writeFile someFile (Hoping You Have A iPhone When I Do

Re: [Haskell-cafe] writeFile: commitBuffer: invalid argument (Illegal byte sequence)

2011-12-04 Thread dokondr
On Sun, Dec 4, 2011 at 13:12, dokondr doko...@gmail.com wrote: Correct url of a bad string: http://twitter.com/#!/search/Hoping%20You%20Have%20A%20iPhone%20When%20I%20Do%20This%20lang%3Aenhttp://twitter.com/#%21/search/Hoping%20You%20Have%20A%20iPhone%20When%20I%20Do%20This%20lang%3Aen On Sun

Re: [Haskell-cafe] How to get a file path to the program invoked?

2011-12-05 Thread dokondr
(splitFileName path) getMyPath' (RunGHC path) _ = fst (splitFileName path) getMyPath' Interactive curDir = curDir++/ -- All the best, Dmitri O. Kondratiev This is what keeps me going: discovery doko...@gmail.com http://sites.google.com/site/dokondr/welcome

Re: [Haskell-cafe] writeFile: commitBuffer: invalid argument (Illegal byte sequence)

2011-12-05 Thread dokondr
%20invalid%20argument%0A%20%28Illegal%20byte%20sequence%29In-Reply-To=%3C4EDBBEB6.3050201%40vex.net%3E wrote: On 11-12-04 07:08 AM, dokondr wrote: * In GHC 7.0.3 / Mac OS X when trying to: ** ** writeFile someFile (Hoping You Have A iPhone When I Do This) Lol ** Sleep Is When You Close These ---gt

Re: [Haskell-cafe] How to get a file path to the program invoked?

2011-12-05 Thread dokondr
, dokondr doko...@gmail.com wrote: This is how I finally solved this problem for POSIX complaint system: -- -- TestRun -- module Main where import System.Cmd (rawSystem) import System.Directory (getCurrentDirectory) import System.Environment.Executable (ScriptPath(..), getScriptPath) import

Re: [Haskell-cafe] How to get a file path to the program invoked?

2011-12-05 Thread dokondr
, / is absolute, so it is returned. If you wish to add a trailing path separator, use `addTrailingPathSeparator`. Erik On Mon, Dec 5, 2011 at 15:53, dokondr doko...@gmail.com wrote: Balazs, thanks for your comments! The first comment works just fine. With / operator I get this: Main

[Haskell-cafe] Where threadSleep is defined?

2011-12-06 Thread dokondr
Hi, I need to make the current process (executing thread) go to sleep for a given amount of time. Can't find where threadSleep is defined. Thanks! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Where threadSleep is defined?

2011-12-06 Thread dokondr
I was trying to google haskell process sleep without much success. It really needs some experience to construct hoogle queries correctly :) Thanks everybody for your help! On Tue, Dec 6, 2011 at 8:07 PM, Paul R paul.r...@gmail.com wrote: dokondr Hi, I need to make the current process (executing

[Haskell-cafe] Converting string to System.Time.ClockTime

2011-12-08 Thread dokondr
Hi, What would be the simplest way to convert strings like Wed, 07 Dec 2011 10:09:21 + to System.Time.ClockTime ? Thanks! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Converting string to System.Time.ClockTime

2011-12-08 Thread dokondr
] http://hackage.haskell.org/packages/archive/time/latest/doc/html/Data-Time-Format.html#v:parseTime On Thu, Dec 8, 2011 at 14:16, dokondr doko...@gmail.com wrote: Hi, What would be the simplest way to convert strings like Wed, 07 Dec 2011 10:09:21 + to System.Time.ClockTime ? Thanks

Re: [Haskell-cafe] Converting string to System.Time.ClockTime

2011-12-08 Thread dokondr
timeFormat2 = %m/%e/%Y %l:%M:%S %p -- timeFormat1 = %m/%d/%Y %l:%M:%S %p On Thu, Dec 8, 2011 at 6:30 PM, dokondr doko...@gmail.com wrote: I need to parse time strings like Wed, 07 Dec 2011 10:09:21 + to a type that: 1) implements Eq, Ord 2) is numerical, so I could subtract one value from

Re: [Haskell-cafe] Converting string to System.Time.ClockTime

2011-12-08 Thread dokondr
these dates 3) Print out all three dates in the different format, like these: 2011, 7 Dec, Wed, 10:11:00 What functions should I use to implement this? On Thu, Dec 8, 2011 at 7:13 PM, Antoine Latter aslat...@gmail.com wrote: On Thu, Dec 8, 2011 at 9:01 AM, dokondr doko...@gmail.com wrote: Now, when I

Re: [Haskell-cafe] Converting string to System.Time.ClockTime

2011-12-08 Thread dokondr
On Thu, Dec 8, 2011 at 7:39 PM, Antoine Latter aslat...@gmail.com wrote: On Thu, Dec 8, 2011 at 9:30 AM, dokondr doko...@gmail.com wrote: Ok, maybe you could advise what packages to use for this simple scenario: I have two text strings with dates: s1 = Wed, 07 Dec 2011 10:09:21 +

[Haskell-cafe] No instance for (Read POSIXTime)

2011-12-09 Thread dokondr
Hi, I need to read / write epoch seconds from / to plain text files. When I try to read POSIXTime that I use in my own data type: data TimedClassRecT = TCR {timeStamp :: POSIXTime, classCosMap :: Map.Map String Float} deriving (Eq, Read, Show) I get the following error:

[Haskell-cafe] Tracing Prelude.read exceptions

2011-12-11 Thread dokondr
Hi, I got quite used to a sequence providing simple data persistence : 1) Store my data to a file: writeFile fileName (show someData) 2) Some time later read this data back: line - readFile fileName let someData = read line :: SomeDataType Having this done hundreds of times I now got stuck with

Re: [Haskell-cafe] No instance for (Read POSIXTime)

2011-12-11 Thread dokondr
) where tryFormat time | time == Nothing = parseTime defaultTimeLocale timeFormat2 timeStr :: Maybe UTCTime | otherwise = time Not a very easy way, isn't it? On Sun, Dec 11, 2011 at 9:22 PM, Yitzchak Gale g...@sefer.org wrote: dokondr wrote: When I try to read POSIXTime

[Haskell-cafe] Need advice: Haskell in Web Client

2012-01-17 Thread dokondr
Hi all, I hope to use Haskell for graphics (charts) programming in Web client. My current implementation in brief: Server side, Haskell modules: 1) collecting various statistics from Twitter 2) generating text data for Gnuplot (http://www.gnuplot.info/) 3) Gnuplot creates png files with charts

Re: [Haskell-cafe] Need advice: Haskell in Web Client

2012-01-17 Thread dokondr
On Tue, Jan 17, 2012 at 6:42 PM, John Lenz l...@math.uic.edu wrote: HTML5 Canvas is great for charts. If you go this route you might as well use a library which draws charts for you instead of writing all this code yourself. Personally, I use extjs version 4 which has some amazing charts,

Re: [Haskell-cafe] Need advice: Haskell in Web Client

2012-01-18 Thread dokondr
On Wed, Jan 18, 2012 at 10:47 AM, John Lenz l...@math.uic.edu wrote: I don't see a great need of developing something like GWT for haskell, since we already have good support for all sorts of existing tools that span more than just haskell, like extjs, yui, and jqueryui. Haskell makes my

Re: [Haskell-cafe] Need advice: Haskell in Web Client

2012-01-26 Thread dokondr
On Thu, Jan 19, 2012 at 1:37 AM, Dag Odenhall dag.odenh...@gmail.comwrote: On Tue, 2012-01-17 at 22:05 +0300, dokondr wrote: I prefer using Turing complete PL to program web client, like the one used in GWT (Java) or Cappuccino (Objective-J). http://cappuccino.org/learn/ In this case

[Haskell-cafe] Need advice: Haskell in Web Client

2012-01-30 Thread dokondr
**Bardur Arantsson wrote: On 01/26/2012 11:16 AM, dokondr wrote: Ideally, I would be happy to be able to write in Haskell a complete front-end / GUI, so it could be compiled to different back-ends: Javascript to run in the Browser and also a standalone app. In Python world this is already done

[Haskell-cafe] ANN: NubFinder : Mining Opinions on the Web

2012-02-01 Thread dokondr
://sites.google.com/site/dokondr/welcome ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] ANN: NubFinder : Mining Opinions on the Web

2012-02-01 Thread dokondr
On Wed, Feb 1, 2012 at 5:04 PM, dokondr doko...@gmail.com wrote: Hello, I am pleased to announce NubFinder research project. Goal: develop technology to search and analyze user opinions on the Web. NubFinder and NubTrend are research prototypes trying first to accomplish a more 'simple

[Haskell-cafe] Simple GUI library to view JSON?

2012-02-20 Thread dokondr
Please advise on a simple GUI library to display JSON data. A library that is easy to build both on Win, Linux and OsX. I need a scrollable view to show a list of JSON objects. Every object may contain other objects (recursively). List may have thousands of objects. Fields may have very long text

Re: [Haskell-cafe] Simple GUI library to view JSON?

2012-02-20 Thread dokondr
/ On Mon, Feb 20, 2012 at 2:01 PM, dokondr doko...@gmail.com wrote: Please advise on a simple GUI library to display JSON data. A library that is easy to build both on Win, Linux and OsX. I need a scrollable view to show a list of JSON objects. Every object may contain other objects (recursively

[Haskell-cafe] Debian 6.0.5: 'cabal install curl' problem

2012-08-14 Thread dokondr
Please help to solve a problem installing curl package ( http://hackage.haskell.org/package/curl/) on Debian 6.0.5. I am running the most recent Debian Haskell platform with GHC 6.12.1. I did: - cabal update - cabal install cabal-install It is interesting that in case you do again 'cabal update

Re: [Haskell-cafe] Debian 6.0.5: 'cabal install curl' problem

2012-08-14 Thread dokondr
Marcot, Thanks for the detailed info! Looks like aptitude install libcurl4-gnutls-dev solved the problem. cheers, Dmitri On Tue, Aug 14, 2012 at 6:29 PM, Marco TĂșlio Pimenta Gontijo marcotmar...@gmail.com wrote: Hi dokondr. On Tue, Aug 14, 2012 at 11:23 AM, dokondr doko...@gmail.com wrote

[Haskell-cafe] Building all possible element combinations from N lists.

2012-10-25 Thread dokondr
Hi all, I am looking for the algorithm and code better then the one I wrote (please see below) to solve the problem given in the subject. Unfortunately I finally need to implement this algorithm in Java. That's why I am not only interested in beautiful Haskell algorithms, but also in the one that

Re: [Haskell-cafe] Building all possible element combinations from N lists.

2012-10-25 Thread dokondr
On Fri, Oct 26, 2012 Alex Stangl wrote: * * combos [] = [[]] combos ([]:ls) = combos ls combos ((h:t):ls) = map (h:) (combos ls) ++ combos (t:ls) Excellent, thanks! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Building all possible element combinations from N lists.

2012-10-28 Thread dokondr
On Fri, Oct 26, 2012 at 2:34 AM, Jake McArthur jake.mcart...@gmail.comwrote: I golfed a bit. :) sequence = filterM (const [False ..]) What is golfed and = ? Please, explain. Thanks, Dmitri ___ Haskell-Cafe mailing list