Re: [Haskell-cafe] Best platform for development with GHC?

2011-06-15 Thread Ketil Malde
Dmitri O.Kondratiev doko...@gmail.com writes: Which platform - Mac OS X, Linux or Win32 is best for development with GHC today? I think most developers use Linux, which tends to ensure that more stuff will work there. Most developers will also tend to use recent versions of everything, so go

Re: [Haskell-cafe] Lazy lists vs generators

2011-06-15 Thread oleg
But Interlisp-10 had generators back in 1973, if I'm reading the manual at Trailing Edge correctly. As the following document explains, generators were common to all new-generation AI languages that appeared in early 1970 (such as SAIL, CONNIVER, POPLER, INTERLISP amd QLISP):

Re: [Haskell-cafe] GHC 7.0.3 / Win32: Data.Time library?

2011-06-15 Thread Dmitri O.Kondratiev
Hi, Yitz! Your example puts scattered around pieces in place, thanks a lot! On Wed, Jun 15, 2011 at 9:49 AM, Yitzchak Gale g...@sefer.org wrote: Dmitri O.Kondratiev wrote: It would also help to see a simple example of parsing 10/11/2009 7:04:28 PM to time and date objects. Let's assume

Re: [Haskell-cafe] OSX, ghci, dylib, what is the correct way?

2011-06-15 Thread Simon Marlow
On 14/06/2011 17:57, Jason Dagit wrote: On Tue, Jun 14, 2011 at 4:26 AM, Simon Marlowmarlo...@gmail.com wrote: On 12/06/2011 20:17, Jason Dagit wrote: On Sun, Jun 12, 2011 at 11:45 AM, Brandon Allberyallber...@gmail.com wrote: On Sun, Jun 12, 2011 at 14:31, Jason Dagitdag...@gmail.com

[Haskell-cafe] Data import from octave / text file

2011-06-15 Thread kaffeepause73
Dear all, I want to read numeric data in vector / matrix format generated by octave. As I haven't seen any octave specific libraries yet (only matlab), I'm tyrying the way via ascii - file. The folloing file log.txt contains three signal traces in the three columns (time, signal 1, signal 2)

Re: [Haskell-cafe] Data import from octave / text file

2011-06-15 Thread Claude Heiland-Allen
Hi, On 15/06/11 12:13, kaffeepause73 wrote: let m = read text :: [[Double]] signalImport: Prelude.read: no parse read :: String - [[Double]] -- expects Haskell syntax try something like: parse :: String - [[Double]] -- expects plainer syntax parse = map (map read . words) . lines

Re: [Haskell-cafe] Data import from octave / text file

2011-06-15 Thread Lars Viklund
On Wed, Jun 15, 2011 at 04:13:49AM -0700, kaffeepause73 wrote: The folloing file log.txt contains three signal traces in the three columns (time, signal 1, signal 2) 0 30 9 0.1 30 9 0.2 30 9 let m = read text :: [[Double]] SecondLot signalImport: Prelude.read: no parse

Re: [Haskell-cafe] Data import from octave / text file

2011-06-15 Thread Victor Gorokgov
read :: String - [[Double]] can't read this format. It expects [[0,30,9],[0.1,30,9],...] use this code let m = map f text :: [[Double]] f a = map g $ lines a g a = map read $ words a 15.06.2011 15:13, kaffeepause73 пишет: Dear all, I want to read numeric data in vector / matrix

Re: [Haskell-cafe] Haskell-Cafe Digest, Vol 94, Issue 34

2011-06-15 Thread Gregory Guthrie
--- Subject: Re: [Haskell-cafe] Best platform for development with GHC? On Wed, 15 Jun 2011, Dmitri O.Kondratiev wrote: Since I maintain the gnuplot binding for Haskell - what are the particular problems with that package on Windows?

Re: [Haskell-cafe] Data import from octave / text file - Thanks

2011-06-15 Thread kaffeepause73
Hey guys, thanks for the very quick help. The code works and looks like: (any tips regards speed and memory usage ?) import System.IO import Data.Array import Data.Packed.Matrix parse :: String - [[Double]] -- expects plainer syntax parse = map (map read . words) . lines main = do

Re: [Haskell-cafe] GHC 7.0.3 / Win32: Data.Time library?

2011-06-15 Thread Dmitri O.Kondratiev
Still have trouble iterating days ( I have: ds1 = 10/11/2009 7:04:28 PM ds2 = 10/17/2009 8:48:29 AM t1 = readTime defaultTimeLocale %m/%d/%Y %l:%M:%S %p ds1 :: UTCTime t2 = readTime defaultTimeLocale %m/%d/%Y %l:%M:%S %p ds2 :: UTCTime dif = diffUTCTime t2 t1 I need to: 1) Find how many complete

Re: [Haskell-cafe] Data import from octave / text file

2011-06-15 Thread kaffeepause73
Hey guys, thanks for the very quick help. The code works and looks like: (any tips regards speed and memory usage ?) import System.IO import Data.Array import Data.Packed.Matrix parse :: String - [[Double]] -- expects plainer syntax parse = map (map read . words) . lines main = do --

Re: [Haskell-cafe] Best platform for development with GHC?

2011-06-15 Thread Dmitri O.Kondratiev
*Ketil Malde* ketil at malde.org haskell-cafe%40haskell.org?Subject=Re%3A%20%5BHaskell-cafe%5D%20Best%20platform%20for%20development%20with%20GHC%3FIn-Reply-To=%3C8739jb60hv.fsf%40malde.org%3E writes: I use Ubuntu. Most stuff is fairly up-to-date, but even with six-month releases, it's lagging

Re: [Haskell-cafe] Haskell-Cafe Digest, Vol 94, Issue 34

2011-06-15 Thread Stephen Tetley
On 15 June 2011 13:38, Gregory Guthrie guth...@mum.edu wrote: --- Subject: Re: [Haskell-cafe] Best platform for development with GHC? On Wed, 15 Jun 2011, Dmitri O.Kondratiev wrote: Since I maintain the gnuplot binding for Haskell - what are the

Re: [Haskell-cafe] OSX, ghci, dylib, what is the correct way?

2011-06-15 Thread Jason Dagit
On Wed, Jun 15, 2011 at 2:16 AM, Simon Marlow marlo...@gmail.com wrote: On 14/06/2011 17:57, Jason Dagit wrote: On Tue, Jun 14, 2011 at 4:26 AM, Simon Marlowmarlo...@gmail.com  wrote: On 12/06/2011 20:17, Jason Dagit wrote: On Sun, Jun 12, 2011 at 11:45 AM, Brandon

Re: [Haskell-cafe] Best platform for development with GHC?

2011-06-15 Thread kaffeepause73
Its also worth looking at Arch Linux - they have a rolling release and are therefore very up to date and have from first glance a very good haskell integration. The community is excellent as well. I switched back to debian squeeze however, because of its stability - update seldomly cause

Re: [Haskell-cafe] OSX, ghci, dylib, what is the correct way?

2011-06-15 Thread Simon Marlow
On 15/06/2011 15:41, Jason Dagit wrote: On Wed, Jun 15, 2011 at 2:16 AM, Simon Marlowmarlo...@gmail.com wrote: On 14/06/2011 17:57, Jason Dagit wrote: On Tue, Jun 14, 2011 at 4:26 AM, Simon Marlowmarlo...@gmail.comwrote: On 12/06/2011 20:17, Jason Dagit wrote: On Sun, Jun 12, 2011 at

Re: [Haskell-cafe] GHC 7.0.3 / Win32: Data.Time library?

2011-06-15 Thread Yitzchak Gale
Dmitri O.Kondratiev wrote: I have: ds1 = 10/11/2009 7:04:28 PM ds2 = 10/17/2009 8:48:29 AM t1 = readTime defaultTimeLocale %m/%d/%Y %l:%M:%S %p ds1 :: UTCTime t2 = readTime defaultTimeLocale %m/%d/%Y %l:%M:%S %p ds2 :: UTCTime dif = diffUTCTime t2 t1 I need to: 1) Find how many complete

Re: [Haskell-cafe] Please help : Data.Time.Format parseTime

2011-06-15 Thread Daniel Patterson
As a more general response, be careful with parsing dates, because as far as I can tell, it is easy to print times (with formatTime) that cannot be parsed (with parseTime). Specifically, if you strip the padding (of zeros or spaces) there is no way to parse it back in. So parseTime . formatTime

Re: [Haskell-cafe] Data import from octave / text file

2011-06-15 Thread Philipp Schuster
Hi, try Numeric.Container.loadMatrix. Regards, Philipp On 15.06.2011 14:59, kaffeepause73 wrote: Hey guys, thanks for the very quick help. The code works and looks like: (any tips regards speed and memory usage ?) import System.IO import Data.Array import Data.Packed.Matrix parse :: String

[Haskell-cafe] Simple string tokenizer?

2011-06-15 Thread Dmitri O.Kondratiev
Sorry if this question was asked billions of times already, but I can not find a simple string tokenizer. All I need is to split a line in chunks at specified delimiter such as (,), nothing more. Don't want to write it myself for two reasons: 1) have to write lots of other code in very short time

Re: [Haskell-cafe] Simple string tokenizer?

2011-06-15 Thread Daniel Patterson
Would this work? http://hackage.haskell.org/packages/archive/split/0.1.4/doc/html/Data-List-Split.html On Jun 15, 2011, at 12:21 PM, Dmitri O.Kondratiev wrote: Sorry if this question was asked billions of times already, but I can not find a simple string tokenizer. All I need is to split a

Re: [Haskell-cafe] Simple string tokenizer?

2011-06-15 Thread Thedward Blevins
On Jun 15, 2011 11:22 AM, Dmitri O.Kondratiev doko...@gmail.com wrote: Sorry if this question was asked billions of times already, but I can not find a simple string tokenizer. All I need is to split a line in chunks at specified delimiter such as (,), nothing more. Don't want to write it

Re: [Haskell-cafe] Best platform for development with GHC?

2011-06-15 Thread Alexander Solla
On Wed, Jun 15, 2011 at 7:49 AM, kaffeepause73 kaffeepaus...@yahoo.dewrote: Its also worth looking at Arch Linux - they have a rolling release and are therefore very up to date and have from first glance a very good haskell integration. The community is excellent as well. Arch Linux is my

[Haskell-cafe] wxHaskell for Haskell Platform 2011.2.0.1

2011-06-15 Thread Eric Kow
Hi all, With green light from maintainer Jeremy O'Donoghue, I've uploaded a trivial update to wxHaskell, relaxing the dependencies so that it builds with the latest Haskell Platform and does not try to install other versions of packages. What is wxHaskell?

Re: [Haskell-cafe] Simple string tokenizer?

2011-06-15 Thread Dmitri O.Kondratiev
On Wed, Jun 15, 2011 at 8:25 PM, Daniel Patterson lists.hask...@dbp.mm.stwrote: Would this work? http://hackage.haskell.org/packages/archive/split/0.1.4/doc/html/Data-List-Split.html Yes, I think it will. Interface looks just great, thanks a lot!

[Haskell-cafe] Fwd: [iteratee] how to do nothing .. properly

2011-06-15 Thread Sergey Mironov
Forgot reply to all -- Forwarded message -- From: Sergey Mironov ier...@gmail.com Date: 2011/6/16 Subject: Re: [Haskell-cafe] [iteratee] how to do nothing .. properly To: John Lato jwl...@gmail.com Thanks for explanations! /ErrorT String (Iteratee s m) a/ definitely does the

Re: [Haskell-cafe] Best platform for development with GHC?

2011-06-15 Thread John D. Ramsdell
On Wed, Jun 15, 2011 at 3:02 AM, Ketil Malde ke...@malde.org wrote: Dmitri O.Kondratiev doko...@gmail.com writes: Which platform - Mac OS X, Linux or Win32 is best for development with GHC today? How are things with Ubuntu? I use Ubuntu.  Most stuff is fairly up-to-date, but even with

[Haskell-cafe] Haskell Weekly News: Issue 186

2011-06-15 Thread Daniel Santa Cruz
Glad you are reading this issue! This is issue 186, not 180... Seems that the last couple of issues got stuck on 180. Hopefully you will find pointers to interesting things happening in the Haskell community. This issue covers the week of June 05 to 11, 2011. Announcements Hakim