Re: [Haskell-cafe] haskell/clojure job opprtunity

2011-11-10 Thread Herbert Valerio Riedel
Hello, On Wed, 2011-11-09 at 15:06 -0800, Vagif Verdi wrote: We use yesod (haskell web framework) for internal web application and web services, and compojure (clojure web framework) for customer facing web site. Just out of curiousity: Are there specific reasons for not using Haskell on the

Re: [Haskell-cafe] Bounds checking pragma?

2011-11-10 Thread Artyom Kazak
2011/11/10 Daniel Fischer daniel.is.fisc...@googlemail.com: There's a problem here, unsafeAt uses an Int index into the array, while (!) uses the declared index type. Even skipping the bounds check, you'd still have to calculate the Int index for the replacement of (!). #ifdef

[Haskell-cafe] [ANN] transformers-base, transformers-abort, monad-abort-fd

2011-11-10 Thread Mikhail Vorozhtsov
Hi Cafe. I've been using these three small transformer libraries for awhile, so it's probably time to announce them. transformers-base[1] introduces a generalized version of MonadIO, MonadBase (BaseM in monadLib terms). It's very useful when you are trying to make a stateful API work in

Re: [Haskell-cafe] howto best use emacs + tiling WM (Xmonad,DWM)

2011-11-10 Thread Diego Souza
A little delayed, but might be useful. I personally use icicles. I found the M-* great for narrowing results down. I've tried anything and ido also, but icicles ended up winning, for my taste at least. A side note, speedbar actually *does* works for bufffers. Simply type *b* on the speedbar and

[Haskell-cafe] graphviz: dotizeGraph and graphToGraph not adding positions

2011-11-10 Thread Max Rabkin
My understanding of the documentation for Data.GraphViz.dotizeGraph and graphToGraph is that they should add position attributes to a graph. But they always seem to return graphs with empty attribute lists. What am I doing wrong in the following tiny example? dotizeGraph nonClusteredParams

Re: [Haskell-cafe] haskell/clojure job opprtunity

2011-11-10 Thread Vagif Verdi
No reasons at all. It's just historically been been written in java. (about 10 years ago) Most of the web site can be done in haskell. Some functionality though requires java (pdf library). If haskell has pdf library with similar functionality then al of it can be done in haskell. Going forward we

Re: [Haskell-cafe] [ANN] transformers-base, transformers-abort, monad-abort-fd

2011-11-10 Thread Bas van Dijk
On 10 November 2011 12:58, Mikhail Vorozhtsov mikhail.vorozht...@gmail.com wrote: transformers-base[1] introduces a generalized version of MonadIO, MonadBase (BaseM in monadLib terms). Hi Mikhail, nice packages! I'm currently giving monad-control a new design and I'm planning to generalize

[Haskell-cafe] timezone-series, timezone-olson dependencies

2011-11-10 Thread Ben Gamari
Is there a reason why the current version of the timezone-series and timezone-olson packages depend on time1.3? With time 1.4 being widely used at this point this will cause conflicts with many packages yet my tests show that both packages work fine with time 1.4. Could we have this upper bound

Re: [Haskell-cafe] [ANN] transformers-base, transformers-abort, monad-abort-fd

2011-11-10 Thread Felipe Almeida Lessa
On Thu, Nov 10, 2011 at 2:54 PM, Bas van Dijk v.dijk@gmail.com wrote: * Use descriptive variable names: 'm' for monad, 'b' for base monad It's funny how we, haskellers, find 'm' and 'b' descriptive names. I know many programmers who would cry after seeing this =). Cheers, -- Felipe.

Re: [Haskell-cafe] [ANN] transformers-base, transformers-abort, monad-abort-fd

2011-11-10 Thread Bas van Dijk
What about base instead of b? I don't think we should change m since that name is used to denote a monad in almost any Haskell library I know. On 10 November 2011 19:07, Colin Adams colinpaulad...@gmail.com wrote: And quite rightly too. On 10 November 2011 18:02, Felipe Almeida Lessa

Re: [Haskell-cafe] timezone-series, timezone-olson dependencies

2011-11-10 Thread Yitzchak Gale
Ben Gamari wrote: Is there a reason why the current version of the timezone-series and timezone-olson packages depend on time1.3? With time 1.4 being widely used at this point this will cause conflicts with many packages yet my tests show that both packages work fine with time 1.4. Could we

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

2011-11-10 Thread Daniel Schoepe
On Wed, 9 Nov 2011 20:34:11 +0300, dokondr doko...@gmail.com wrote: I am wondering if Database.Persist can work with key/value storage such as Riak or SimpleDB where records are lists of key/value pairs and any two lists can have different keys? Is simple implementation of 'persistent' based

Re: [Haskell-cafe] Data.Vector.Unboxed

2011-11-10 Thread Yves Parès
Does Repa always use unboxed Vectors? But a Repa array can store any element, so how does it handles types which haven't an unboxed equivalent? Or is the unboxing done automatically? 2011/11/10 Bas van Dijk v.dijk@gmail.com On 9 November 2011 22:33, kaffeepause73 kaffeepaus...@yahoo.de

Re: [Haskell-cafe] Data.Vector.Unboxed

2011-11-10 Thread Daniel Peebles
Yes, it does. You can only use members of the Elt class in repa arrays, and Elt has Unbox as a superclass. On Thu, Nov 10, 2011 at 5:03 PM, Yves Parès limestr...@gmail.com wrote: Does Repa always use unboxed Vectors? But a Repa array can store any element, so how does it handles types which

Re: [Haskell-cafe] graphviz: dotizeGraph and graphToGraph not adding positions

2011-11-10 Thread Ivan Lazar Miljenovic
On 11 November 2011 02:19, Max Rabkin max.rab...@gmail.com wrote: My understanding of the documentation for Data.GraphViz.dotizeGraph and graphToGraph is that they should add position attributes to a graph. But they always seem to return graphs with empty attribute lists. What am I doing wrong

[Haskell-cafe] Getting started on Mac OSX

2011-11-10 Thread hstenstrom
I have a book on Haskell, and I've downloaded and installed Haskell Platform for Mac OS X. What do I do now? XCode is a requirement, and I have it, but I don't know how to run it. To begin with, I want to test small examples from the book, using ghc or ghci. I have read

Re: [Haskell-cafe] Getting started on Mac OSX

2011-11-10 Thread Sunny Basi
Try going into your terminal and typing ghci or ghc CLI is usually the common way of accessing ghc and ghci. I haven't installed the platform on my mac yet so I dont know any sort of ui is provided. Writing your code in xcode and then compiling via terminal isn't all that bad, you'll get used to

Re: [Haskell-cafe] Getting started on Mac OSX

2011-11-10 Thread Sunny Basi
**Addendum:* *You might want to check out some the resources available at http://www.haskell.org/haskellwiki/Mac_OS_X On Fri, Nov 11, 2011 at 2:46 AM, Sunny Basi sunny.b...@gmail.com wrote: Try going into your terminal and typing ghci or ghc CLI is usually the common way of accessing ghc and