[Haskell-cafe] Compliments on the "IO inside" tutorial

2012-12-06 Thread Andriy Drozdyuk
I just wanted to express my gratitude to whoever wrote the "IO inside" tutorial: http://www.haskell.org/haskellwiki/IO_inside It is one of the best pieces of writing in Haskell I've ever come across: not only is it clear and very intuitive, but it also manages to strike a perfect balance between "

Re: [Haskell-cafe] How can I avoid buffered reads?

2012-12-06 Thread Brandon Allbery
On Thu, Dec 6, 2012 at 5:14 PM, Donn Cave wrote: > While I guess /dev/urandom isn't supposed to block, so it would look > about the same to select(2) either way, /dev/random is select-able, true? > Both should be cdevs, not files, so they do not go through the normal filesystem I/O pathway in th

Re: [Haskell-cafe] How can I avoid buffered reads?

2012-12-06 Thread Donn Cave
Quoth Brandon Allbery , > On Thu, Dec 6, 2012 at 3:24 PM, Tristan Seligmann > wrote: >>> On 29 Nov 2012 12:27 PM, "Leon Smith" wrote: >>> System.Posix.IO and Foreign.This appears to work, but for better or >>> worse, it is using blocking calls to the "read" system call and is not >>> integr

Re: [Haskell-cafe] How can I avoid buffered reads?

2012-12-06 Thread Brandon Allbery
On Thu, Dec 6, 2012 at 3:24 PM, Tristan Seligmann wrote: > On 29 Nov 2012 12:27 PM, "Leon Smith" wrote: > System.Posix.IO and Foreign.This appears to work, but for better or > worse, it is using blocking calls to the "read" system call and is not > integrated with GHC's IO manager. This

Re: [Haskell-cafe] How can I avoid buffered reads?

2012-12-06 Thread Tristan Seligmann
On 29 Nov 2012 12:27 PM, "Leon Smith" wrote: > > Well, I took Bardur's suggestion and avoided all the complexities of GHC's IO stack and simply used System.Posix.IO and Foreign.This appears to work, but for better or worse, it is using blocking calls to the "read" system call and is not in

[Haskell-cafe] schedule function

2012-12-06 Thread Corentin Dupont
Hi all, I have a simple question: is there in the libraries a function that can schedule a variable list of events for me? For example of the type: type Schedule = [UTCTime, IO()] startSchedule :: TVar Schedule -> IO ThreadId The function startSchedule will have to execute my actions at the given

Re: [Haskell-cafe] Observer pattern in haskell FRP

2012-12-06 Thread Nathan Hüsken
Sorry for the late reply, I somehow missed this eMail ... On 11/29/2012 06:28 PM, Heinrich Apfelmus wrote: If I take for example the breakout game from here [1]. It outputs an object "scene" of type Picture. But this picture is calculated from the objects "ballPos" and "paddlePos". So first a ga

Re: [Haskell-cafe] Best approach to avoid dependency hells

2012-12-06 Thread Bill Casarin
After using Haskell in production for awhile this is my go-to method for minimizing pain when dealing with dependencies. As long as you follow these steps you should be able to deal with most dependency issues. 1. NEVER use cabal, always use cabal-dev. Preferably with latest version that supports

Re: [Haskell-cafe] Generics & pattern matching

2012-12-06 Thread Andres Löh
Hi Joerg. I must admit that I do not fully understand the big picture, i.e., why you want to do what you are trying to do. It might be possible to recommend a better solution using a library such as guarded-rewriting on Hackage then. I've tried to look up the SO question (http://stackoverflow.com/

Re: [Haskell-cafe] Maintainer of fixpoint

2012-12-06 Thread Brent Yorgey
On Wed, Dec 05, 2012 at 08:22:32PM +0100, Petr P wrote: >Dear Haskellers, > > I've made some minor improvements of fixpoint package < > http://hackage.haskell.org/package/fixpoint>. I tried to contact the > original maintainer twice, but without success. The package hasn't been > updated for 4

Re: [Haskell-cafe] Are there REPA linear algebra routines? e.g. Eigenvalues?

2012-12-06 Thread Ben Lippmeier
On 06/12/2012, at 3:18 , KC wrote: > :) Not apart from the matrix-matrix multiply code in repa-algorithms. If you wanted to write some I'd be happy to fold them into repa-algorithms. Ben. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org htt

Re: [Haskell-cafe] The end of an era, and the dawn of a new one

2012-12-06 Thread Ben Lippmeier
On 06/12/2012, at 3:56 , Simon Peyton-Jones wrote: > Particularly valuable are offers to take responsibility for a > particular area (eg the LLVM code generator, or the FFI). I'm > hoping that this sea change will prove to be quite empowering, > with GHC becoming more and more a community projec

Re: [Haskell-cafe] Maintainer of hgettext

2012-12-06 Thread Ivan Perez
I did. No luck so far. Let's see if Roman can reach him. It's not that it's a big bug, but hgettext will refuse to compile at this point and the fix is 2 lines. Thanks. On 5 December 2012 18:11, Felipe Almeida Lessa wrote: > Did you try pinging him again? > > On Wed, Dec 5, 2012 at 3:59 PM, Iva

Re: [Haskell-cafe] Vector mysteries

2012-12-06 Thread Takayuki Muranushi
Hi, Fixie, Sadly, I've heard that data type contexts are "widely considered a misfeature, and is going to be removed from the language." see http://www.haskell.org/ghc/docs/7.6.1/html/users_guide/data-type-extensions.html Moreover, when Row explicitly takes its type arguments, the use of ScopedT