Re: [Haskell-cafe] Data.Time

2011-07-04 Thread Yitzchak Gale
I wrote: Not exactly. A TimeZone in Data.Time doesn't really represent a time zone - it represents a specific clock setting in a time zone. Ashley Yakeley wrote: I still regret this! I should have called it TimeOffset or somesuch. Oh, it's not your fault. Every other time library in the

Re: [Haskell-cafe] Data.Time

2011-07-04 Thread Ashley Yakeley
On Mon, 2011-07-04 at 10:38 +0300, Yitzchak Gale wrote: Leap second data is there too, so it should be possible to create a Data.Time.Clock.TAI.LeapSecondTable from it. No, unfortunately. There is a place in the data structure for leap second information, but no live Olson file has every

[Haskell-cafe] IterIO: How to write use my inumReverse

2011-07-04 Thread John Ky
Hi Haskell Cafe, I've defined the following reverse echo server that echos text back in reverse: module Programs.TcpEchoIterServer where import Control.Concurrent import Control.Exception import Control.Monad import Control.Monad.Trans import Data.IterIO import Data.IterIO.Inum import Network

[Haskell-cafe] Haskell Platform on Ubuntu: Installation Problems

2011-07-04 Thread Dmitri O.Kondratiev
Hi, I am trying to install Haskell Platform on latest Ubuntu desktop: ( uname -a: Linux frigate 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux ) I started with installing GHC. Ubuntu could only install version 6.12.3: without Cabal! Now I am trying to

Re: [Haskell-cafe] Haskell Platform on Ubuntu: Installation Problems

2011-07-04 Thread Adrien Haxaire
Hello, I encountered the same kind of problems with the dependencies, GHC 6.12 etc. I dropped the idea of installing Haskell Platform with synaptic. I installed it manually and I don't have any problem since then. I installed first a precompiled binary version GHC 7 then the Haskell

Re: [Haskell-cafe] How to ensure code executes in the context of a specific OS thread?

2011-07-04 Thread Felipe Almeida Lessa
On Mon, Jul 4, 2011 at 2:38 AM, Jason Dagit dag...@gmail.com wrote: (I believe the way the FFI works I'll have to make a new wrapper for each thing because I can't directly call objective-c). Probably, yes. I suppose I should try adding wrappers around all the GLFW functions so that it

Re: [Haskell-cafe] IterIO: How to write use my inumReverse

2011-07-04 Thread dm-list-haskell-cafe
At Mon, 4 Jul 2011 20:36:33 +1000, John Ky wrote: Hi Haskell Cafe,       enum |$ inumLines .| inumReverse .| inumUnlines .| iter ... iterLines :: (Monad m) = Iter L.ByteString m [L.ByteString] iterLines = do   line - lineI   return [line] iterUnlines

Re: [Haskell-cafe] How to ensure code executes in the context of a specific OS thread?

2011-07-04 Thread Edward Z. Yang
Sounds like something that could use a GHC Trac feature request. Edward ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] How to ensure code executes in the context of a specific OS thread?

2011-07-04 Thread David Pollak
On Sun, Jul 3, 2011 at 10:02 PM, Jason Dagit dag...@gmail.com wrote: Hello, I'm trying to get some GUI code working on OSX and numerous forums around the internet keep reiterating that on OSX to correctly handle GUI events you need to use the original thread allocated to your process to

Re: [Haskell-cafe] Haskell Platform on Ubuntu: Installation Problems

2011-07-04 Thread Dmitri O.Kondratiev
Adrien Haxaire adrien at adrienhaxaire.org wrote: I dropped the idea of installing Haskell Platform with synaptic. I installed it manually and I don't have any problem since then. To install GHC 7, have you completely de-installed GHC 6.12.3 and all related libraries ? On Mon, Jul 4, 2011

Re: [Haskell-cafe] Haskell Platform on Ubuntu: Installation Problems

2011-07-04 Thread anonymous
No, you shouldn't need to do that. Just download the Haskell Platform and GHC 7: http://lambda.galois.com/hp-tmp/2011.2.0.1/haskell-platform-2011.2.0.1.tar.gz http://haskell.org/ghc/dist/7.0.3/ghc-7.0.3-i386-unknown-linux.tar.bz2 Extract ghc, change into the directory, run configure, then make

Re: [Haskell-cafe] Haskell Platform on Ubuntu: Installation Problems

2011-07-04 Thread Adrien Haxaire
To install GHC 7, have you completely de-installed GHC 6.12.3 and all related libraries ? I am not sure if uninstalling GHC 6.12.3 is mandatory, but I did it to have a clean Haskell installation. Then I did what anonymous has summarized below: Just download the Haskell Platform and GHC

Re: [Haskell-cafe] Haskell Platform on Ubuntu: Installation Problems

2011-07-04 Thread Dmitri O.Kondratiev
On Mon, Jul 4, 2011 at 6:24 PM, anonymous qubi...@gmail.com wrote: No, you shouldn't need to do that. Just download the Haskell Platform and GHC 7: http://lambda.galois.com/hp-tmp/2011.2.0.1/haskell-platform-2011.2.0.1.tar.gz

Re: [Haskell-cafe] Haskell Platform on Ubuntu: Installation Problems

2011-07-04 Thread Adrien Haxaire
You're welcome :) Adrien On Mon, 4 Jul 2011 19:09:50 +0400, Dmitri O.Kondratiev wrote: I noticed that ) I removed GHC 6 completely. Then installed platform-independent GHC 7 compiler. Next to configure and eventually compile Haskell Platform I had to install  libgmp3-dev, zlib and OpenGL

[Haskell-cafe] Diagnose stack space overflow

2011-07-04 Thread Logo Logo
Hi, For the following error: Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize -RTS' to increase it. I want to find out the culprit function and rewrite it tail-recursively. Is there a way to find out which function is causing this error other than reviewing the code manually?

Re: [Haskell-cafe] Diagnose stack space overflow

2011-07-04 Thread Don Stewart
Profile!! E.g. http://stackoverflow.com/questions/6429085/haskell-heap-issues-with-parameter-passing-style/6429888#6429888 On Mon, Jul 4, 2011 at 11:44 AM, Logo Logo sarasl...@gmail.com wrote: Hi, For the following error: Stack space overflow: current size 8388608 bytes. Use `+RTS

Re: [Haskell-cafe] Diagnose stack space overflow

2011-07-04 Thread Chris Smith
You can use the heap profiling options in GHC to find out what is using all the memory. You'll want to compile with -prof and -rtsopts, and then invoke the program with +RTS -hx, where x is one of 'c', 'y', or a few others. Then run hp2ps on the resulting .hp file to get a graph of what's using

Re: [Haskell-cafe] Diagnose stack space overflow

2011-07-04 Thread Max Bolingbroke
On 4 July 2011 16:44, Logo Logo sarasl...@gmail.com wrote: Hi, For the following error: Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize -RTS' to increase it. I want to find out the culprit function and rewrite it tail-recursively. Is there a way to find out which

[Haskell-cafe] ANNOUNCE: doctest-0.4.0

2011-07-04 Thread Simon Hengel
I just uploaded a new version of doctest[1] to Hackage. WHAT IS doctest? doctest is a port of Python's doctest[2] to Haskell. It can be used to verify, that examples in Haddock comments[3] do still work. This also provides you with a simple mechanism to write unit test,

Re: [Haskell-cafe] Diagnose stack space overflow

2011-07-04 Thread Roman Cheplyaka
Hi Don, I find this answer confusing. The SO question you're linking to is about heap size, not stack overflow. The stack size in this example is 8M. The whole heap size may be much bigger (and increasing the stack size may actually remove the overflow). It would be interesting to learn about

Re: [Haskell-cafe] Diagnose stack space overflow

2011-07-04 Thread John Lato
From: Logo Logo sarasl...@gmail.com Hi, For the following error: Stack space overflow: current size 8388608 bytes. Use `+RTS -Ksize -RTS' to increase it. I want to find out the culprit function and rewrite it tail-recursively. Is there a way to find out which function is causing this

[Haskell-cafe] NVIDIA's CUDA and Haskell

2011-07-04 Thread Vasili I. Galchin
Hi, NVIDIA's CUDA library seems to be really hot in the massively parallel world: http://www.nvidia.com/object/cuda_home_new.html. I realize that given CUDA seems to be implemented in an extension of ANSI C that it is pervaded by statefulness. However, is there any effort to build a bridge

Re: [Haskell-cafe] NVIDIA's CUDA and Haskell

2011-07-04 Thread Don Stewart
There's a lot of active work: Direct access to CUDA: http://hackage.haskell.org/package/cuda CUDA in Haskell: http://hackage.haskell.org/package/language-c-quote Direct access to OpenCL: http://hackage.haskell.org/package/OpenCLRaw High-level pure data parallelism targetting your GPU:

[Haskell-cafe] Haskell Implementors Workshop 2011, Second CFT

2011-07-04 Thread Ben Lippmeier
Call for Talks ACM SIGPLAN Haskell Implementors' Workshop http://haskell.org/haskellwiki/HaskellImplementorsWorkshop/2011 Tokyo, Japan, September 23rd, 2011 The workshop will be held in conjunction with ICFP 2011

[Haskell-cafe] Splitting Hackage Packages and re-exporting entire modules (with same module name)

2011-07-04 Thread Thomas DuBuisson
All, I have decided it would be beneficial to split System.Crypto.Random and the rest of crypto-api into different packages. Is there I way I can create a package, entropy, with System.Crypto.Random but continue to expose that module from crypto-api (allowing people who use that module some time