Re: [Haskell-cafe] ANN: E-book version of the Typeclassopedia

2013-10-08 Thread Alfredo Di Napoli
Thanks, I wanted this for a long time as well! A. On 5 October 2013 17:25, Flavio Villanustre fvillanus...@gmail.com wrote: Very useful, thanks! On Oct 4, 2013 9:13 AM, Erlend Hamberg ehamb...@gmail.com wrote: While re-reading Brent Yorgey's Excellent Typeclassopedia I converted it to

Re: [Haskell-cafe] ANN: hspec-test-framework - Run test-framework tests with Hspec

2013-08-18 Thread Alfredo Di Napoli
Hi Simon, this is an exciting news! May I ask the question that maybe is lurking in the shadow? Due to the recent announcement of Roman's tasty library, are there plans to basically release something similar to hspec-test-framework and hspec-test-framework-th but targeting tasty instead? Bye

[Haskell-cafe] Does exist something like data-files in Cabal, which works at compile time?

2013-08-16 Thread Alfredo Di Napoli
Hello guys, I'm pretty sure the answer is no, but I was hoping to get some extra insight / best practices. The problem can be summarised by this SO question (not the OP, but I have the same problem): http://stackoverflow.com/questions/15731170/cabal-how-to-add-text-file-as-a-build-dependency As

Re: [Haskell-cafe] Does exist something like data-files in Cabal, which works at compile time?

2013-08-16 Thread Alfredo Di Napoli
Distribution.Simple main :: IO () main = doThisBeforeInstall defaultMain - Then you specify in your .cabal file that the Build-Type is Custom. Best regards, Daniel Díaz. On Fri, Aug 16, 2013 at 11:58 AM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Hello guys

Re: [Haskell-cafe] Does exist something like data-files in Cabal, which works at compile time?

2013-08-16 Thread Alfredo Di Napoli
, 2013 at 11:58 AM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Hello guys, I'm pretty sure the answer is no, but I was hoping to get some extra insight / best practices. The problem can be summarised by this SO question (not the OP, but I have the same problem): http

Re: [Haskell-cafe] Promoting Haskell via Youtube movies

2013-07-10 Thread Alfredo Di Napoli
Thanks guys, lots of interesting material I wasn't aware of! A. On 22 June 2013 14:42, Mihai Maruseac mihai.marus...@gmail.com wrote: On Wed, Jun 19, 2013 at 3:03 AM, Carlo Hamalainen ca...@carlo-hamalainen.net wrote: On 18/06/13 04:23, Mihai Maruseac wrote: I was wondering if we have

Re: [Haskell-cafe] Array, Vector, Bytestring

2013-07-10 Thread Alfredo Di Napoli
To make the transition easier I have an experimental library which defines a ByteString as a type synonym of a Storable.Vector of Word8 and provides the same interface as the bytestring package: https://github.com/basvandijk/vector-bytestring That's interesting Bas. What bothers me about

Re: [Haskell-cafe] Array, Vector, Bytestring

2013-07-10 Thread Alfredo Di Napoli
fragmented, correct? :( A. On 10 July 2013 08:25, Bas van Dijk v.dijk@gmail.com wrote: On 10 July 2013 08:57, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: To make the transition easier I have an experimental library which defines a ByteString as a type synonym

Re: [Haskell-cafe] Hackage Update Brigade

2013-05-29 Thread Alfredo Di Napoli
Can I join too? Always happy to spend my free time merging and reviewing some Haskell code :) A. On 29 May 2013 04:56, Lyndon Maydwell maydw...@gmail.com wrote: Done :) On Wed, May 29, 2013 at 12:22 PM, Conrad Parker con...@metadecks.orgwrote: On 29 May 2013 08:54, Lyndon Maydwell

Re: [Haskell-cafe] Release Candidates for Haskell Platform 2013.2

2013-05-13 Thread Alfredo Di Napoli
That's awesome :) I'm just curious to dig deeper inside the updates to OpenGL and GLUT, any link or change notes I can read? Thanks, A. On 13 May 2013 15:39, Mark Lentczner mark.lentcz...@gmail.com wrote: *Some of the release candidates for Haskell Platform 2013.2 are up.* *These are what I

Re: [Haskell-cafe] a library for abstract algebra?

2013-04-18 Thread Alfredo Di Napoli
Wow, there is an Edward Kmett package for everything, isn't it? :D On 18 April 2013 13:12, Gábor Lehel illiss...@gmail.com wrote: http://hackage.haskell.org/package/algebra -- Your ship was destroyed in a monadic eruption. ___ Haskell-Cafe

Re: [Haskell-cafe] yi-editor for emacer

2013-04-15 Thread Alfredo Di Napoli
thanks a great news, thanks, even though I'm a Vim user :) I continue to think that Yi is a promising editor, it's a shame we don't have a serious community effort to make it better :) A. On 15 April 2013 06:02, Junior White efi...@gmail.com wrote: Hi Cafe, I'm glad to announce my fork of

Re: [Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-04-04 Thread Alfredo Di Napoli
don't still crop up from time to time, and can cause many a sleepless night..). Edsko On Wed, Apr 3, 2013 at 9:33 PM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Thanks Edsko, the app is awesome and it's starting just fine. Even though this fixes my problem, it doesn't solve

Re: [Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-04-04 Thread Alfredo Di Napoli
) And this might be related too; yes, I'm using XQuartz and have the GTK compiled for it; currently using 2.7.4 but I don't know if I upgraded since building. -E On Thu, Apr 4, 2013 at 9:07 AM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Hi Edsko, thanks for the reply. The only things

Re: [Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-04-03 Thread Alfredo Di Napoli
, Edsko de Vries edskodevr...@gmail.com wrote: I provide a ThreadScope binary on my site ( http://www.edsko.net/2013/01/24/threadscope-0-2-2/) which runs fine for me on 10.8.3. -E On Mon, Apr 1, 2013 at 8:01 AM, Dominic Steinitz domi...@steinitz.orgwrote: Alfredo Di Napoli

Re: [Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-03-31 Thread Alfredo Di Napoli
=0tstart=0 On 30 March 2013 15:19, John Wiegley jo...@fpcomplete.com wrote: Alfredo Di Napoli alfredo.dinap...@gmail.com writes: I know it's a bit difficult to debug this way, I can try debugging with gdb if it can help. Yes, can you show us a backtrace from gdb, and also look in your

Re: [Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-03-31 Thread Alfredo Di Napoli
Hi Tobias, What do you mean by _some_ program? It's the program that you started (threadscope). In a forum I've read that this error could be some third party app (for example one started at login or running as a daemon) which is conflicting and causing the error. Unlikely, but i've

[Haskell-cafe] Threadscope 0.2.2 goes in segmentation fault on Mac Os X 10.8.3

2013-03-30 Thread Alfredo Di Napoli
Hi Cafè, I've tried installing threadscope, but when I run it from console with threadscope I get a laconic segmentation fault. Some info to help the debugging: * Installed gtk via brew * gtk-demo runs correctly * I'm using Mac Os X 10.8.3 * Running gtk and threadscope through a virtual

[Haskell-cafe] How to use the nice test output spit out by test-framework with cabal test?

2013-03-18 Thread Alfredo Di Napoli
Hi guys, I've been wondering for a long time about how to use the nice terminal-base report spit out from test-framework when I type cabal test. Atm this is my run-of-the-mill cabal setting: test-suite test-all type: exitcode-stdio-1.0 main-is: Main.hs ghc-options: -w -threaded -rtsopts

Re: [Haskell-cafe] Question about updating GHC on MacOS

2013-03-14 Thread Alfredo Di Napoli
From my $0.2 experience, if you are planning of having multiple GHC installation, it would be better to do a fresh install using the bootstrapped GHC you can find on the website. Roughly I have done this way (on my Mac and on My EC2 instance): (inside a ghc bootstrapped folder) ./configure

Re: [Haskell-cafe] ANNOUNCE: io-streams 1.0.0.0

2013-03-06 Thread Alfredo Di Napoli
As I've already said on Reddit, awesome job guys. From the little I've seen the API is very lean and easy, so I'm really looking forward to playing with it and helping you with it as well :) Bye, Alfredo ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Haskell syntax/indentation for vim

2013-03-05 Thread Alfredo Di Napoli
Here is the crazy idea; instead of having a vim plugin to rule-them-all, why you don't join your efforts and create a plugin which does only indentation for Haskell code? This way, we could have a modular stack and be free to use whatever plugins work for syntax highlighting / unicode syntactic

[Haskell-cafe] Aeson + MongoDB, how to effortlessly store and retrieve json?

2013-02-18 Thread Alfredo Di Napoli
Good evening guys, suppose I write a very simple parser using Aeson with these types and ToJSON / FromJSON instances: https://github.com/cakesolutions/the-pragmatic-haskeller/blob/master/01-json/Pragmatic/Types.hs

Re: [Haskell-cafe] Aeson + MongoDB, how to effortlessly store and retrieve json?

2013-02-18 Thread Alfredo Di Napoli
Hi Niklas, From a quick look it seems to be suitable for my task. I'll have a look ASAP and I'll keep you posted. Many thanks! Alfredo Di Napoli On 19/feb/2013, at 00:32, Niklas Hambüchen m...@nh2.me wrote: Not sure if this is helpful, but have a look at aesonbson: https://github.com/nh2

Re: [Haskell-cafe] Ticking time bomb

2013-02-13 Thread Alfredo Di Napoli
+1 for keeping this alive. Apart from the initial hype, now this issue is slowly losing attention but I think we should always keep the risk we are exposed to. Being I will sound pessimistic, but we should learn from the competitors mistakes :) Cheers, A. On 12 February 2013 08:49, Bob Ippolito

Re: [Haskell-cafe] Control.Monad provisional?

2013-02-11 Thread Alfredo Di Napoli
I might be wrong, but the impression I always had is that that field is something that most developer struggle to keep in sync. Maybe it was provisional ages ago, but they simply forgot to upgrade to stable or they are simply too humble and think How am I to judge if a package is stable or not?

Re: [Haskell-cafe] [Announcement] hArduino: Control your Arduino board from Haskell

2013-02-11 Thread Alfredo Di Napoli
Sounds cool! Thanks for your effort! :) A. On 10 February 2013 22:54, Levent Erkok erk...@gmail.com wrote: I'm happy to announce hArduino: a library that allows Arduino boards to be controlled directly from Haskell. hArduino uses the Firmata protocol ( http://firmata.org), to communicate with

Re: [Haskell-cafe] Next Meetup

2013-02-04 Thread Alfredo Di Napoli
Ok, so not exactly around the corner for me, but thanks for clarifying :D Alfredo On 4 February 2013 20:53, Albert Y. C. Lai tre...@vex.net wrote: On 13-02-04 02:56 AM, Alfredo Di Napoli wrote: Reverse engineering (aka Google searching) for Hacklab seems to reveal that the location

Re: [Haskell-cafe] Next Meetup

2013-02-03 Thread Alfredo Di Napoli
Reverse engineering (aka Google searching) for Hacklab seems to reveal that the location is Edimburgh: Correct? :D On 4 February 2013 05:39, Ivan Lazar Miljenovic ivan.miljeno...@gmail.comwrote: On 4 February 2013 16:27, Christopher Olah christopherolah...@gmail.com wrote: Hey All, I

Re: [Haskell-cafe] Heads up: planned removal of String instances from HTTP package

2013-01-30 Thread Alfredo Di Napoli
Maybe (just my 2 cents!) since you are going to broke the API anyway, go for it and seize the occasion to really clean up :) Obviously I'm saying this from a non-http-user point of view, maybe if I had some code in production affected by this, my suggestion would have been different :P Regards,

Re: [Haskell-cafe] Chordify, a new web startup using Haskell

2013-01-18 Thread Alfredo Di Napoli
Congratulations! Keep up the good work, especially in using Haskell at a commercial level :) Bye! Alfredo On 18 January 2013 07:34, Alp Mestanogullari alpmes...@gmail.com wrote: That's awesome, works like a charm on the samples I've tried it on! Cheers to the Chordify team, I will use it and

Re: [Haskell-cafe] Where is the convergence point between Category Theory and Haskell?

2013-01-14 Thread Alfredo Di Napoli
/teamblogs/ Bye, Alfredo On 13 January 2013 23:43, Christopher Howard christopher.how...@frigidcode.com wrote: On 01/13/2013 03:15 AM, Alfredo Di Napoli wrote: Morning Cafe, I'm planning to do a series of write-ups about Category Theory, to publish them on the company's blog I'm currently

[Haskell-cafe] Where is the convergence point between Category Theory and Haskell?

2013-01-13 Thread Alfredo Di Napoli
Morning Cafe, I'm planning to do a series of write-ups about Category Theory, to publish them on the company's blog I'm currently employed. I'm not a CT expert, but since the best way to learn something is to explain it to others, I want to take a shot :) In my mind I will structure the posts

Re: [Haskell-cafe] Where is the convergence point between Category Theory and Haskell?

2013-01-13 Thread Alfredo Di Napoli
. Hask is a very rich category, and is suitable for encoding a lot (but not all) of category theory. As far as I know, the actual boundary is as yet unknown. On Sun, Jan 13, 2013 at 4:15 AM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Morning Cafe, I'm planning to do a series

Re: [Haskell-cafe] A Meetup Group for MN Haskellers

2013-01-12 Thread Alfredo Di Napoli
You made me upset, I thought you created a Meetup for our mancunian :( sob :( Alfredo ps. Good luck for your meetup, though :) On 12 January 2013 16:40, Kim-Ee Yeoh k...@atamo.com wrote: Hey Danny, Good job taking the lead! Wish you all success because I think meetups have so many

Re: [Haskell-cafe] Mancunian Haskellers out there?

2013-01-03 Thread Alfredo Di Napoli
and there is usually a trip to the pub afterwards. Thanks James On 30/12/12 14:38, Alfredo Di Napoli wrote: Morning Cafe, I've been living in Manchester for 1 month now and I'm wondering if some on you are from the Greater Manchester area, so that we could chat about out

Re: [Haskell-cafe] Mancunian Haskellers out there?

2013-01-01 Thread Alfredo Di Napoli
Manchester. I'd be up for a user group nearby, so will +1 your user group :) Similarly for me - I'm Leeds based and would be interested in joining in. Please sign me up! Cheers, David T Cheers, On 30 December 2012 15:15, Alfredo Di Napoli alfredo.dinap...@gmail.com

[Haskell-cafe] Mancunian Haskellers out there?

2012-12-30 Thread Alfredo Di Napoli
Morning Cafe, I've been living in Manchester for 1 month now and I'm wondering if some on you are from the Greater Manchester area, so that we could chat about out beloved language in front of a glass of ale / tea :P Happy new year to everyone! A. ___

Re: [Haskell-cafe] Mancunian Haskellers out there?

2012-12-30 Thread Alfredo Di Napoli
other people though. It would be nice if some Haskell talks could be held in the area if there are enough people. Good luck on your search, Mateusz Kowalczyk On 30/12/12 14:38, Alfredo Di Napoli wrote: Morning Cafe, I've been living in Manchester for 1 month now and I'm wondering if some

Re: [Haskell-cafe] ANNOUNCE: haskell-docs - Given a module name and a name, it will find and display the documentation of that name.

2012-12-26 Thread Alfredo Di Napoli
Excellent work, Chris! Looking forward to using your tool! Ciao! Alfredo Sent from my iPad On 27/dic/2012, at 01:43, Christopher Done chrisd...@gmail.com wrote: Ahoy hoy, Just thought I'd announce a tool I whipped up these evening to take a module name and a name and output the installed

Re: [Haskell-cafe] LGPL and Haskell (Was: Re: ANNOUNCE: tie-knot library)

2012-12-13 Thread Alfredo Di Napoli
Let me just chime in to give my 2 cents; I quote Micheal 100%; if we want to push Haskell out of the academic/open source world to the real world, well, GPL is not the way to go, due to its viral nature. Cheers, A. On 13 December 2012 08:09, Michael Snoyman mich...@snoyman.com wrote: To take

Re: [Haskell-cafe] To my boss: The code is cool, but it is about 100 times slower than the old one...

2012-11-29 Thread Alfredo Di Napoli
Hi there, I'm only an amateur so just my 2 cent: Haskell can be really fast, but reaching that speed can be all but trivial: you need to use different data types (e.g. ByteString vs. the normal String type) relies on unconventional IO (e.g. Conduit, Iterateee) and still be ready to go out of the

Re: [Haskell-cafe] ANNOUNCE: language-java 0.2.0

2012-11-27 Thread Alfredo Di Napoli
Thanks for the effort! Now, what about some documentation? :P Cheers, A. On 27 November 2012 18:26, Vincent Hanquez t...@snarc.org wrote: Hi Cafe, with the approval of Niklas, the original author and maintainer, i'll be maintaining language-java for now. I've uploaded a new version on

Re: [Haskell-cafe] A small step towards solving cabal hell.

2012-11-18 Thread Alfredo Di Napoli
Hi Tim, it seems a good idea, although I hardly believe such isolation is achievable in practice. Just a feeling, though :) However, I really hope we, as a community, will be able to finally fix the Cabal Hell. It's a topic with a lot of hype lately, but few practical, hands dirty approaches :)

Re: [Haskell-cafe] Announce: Haskell Platform 2012.4.0.0

2012-11-06 Thread Alfredo Di Napoli
Thanks! Best news of the day! :) A. On 6 November 2012 08:54, Mark Lentczner mark.lentcz...@gmail.com wrote: I'm pleased to announce that Haskell Platform 2012.4.0.0http://www.haskell.org/platform/index.html#2012.4.0.0is now available. This release contains three new packages to the

Re: [Haskell-cafe] Is XMonad still developed or with a current maintainer?

2012-11-06 Thread Alfredo Di Napoli
:38 AM, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: looking at the Darcs repo it seems that something is happening, but XMonad wasn't updated in a year on Hackage and everything seems to be still. Is XMonad still actively developed? If yes, who is the current maintainer? It would

Re: [Haskell-cafe] Is XMonad still developed or with a current maintainer?

2012-11-06 Thread Alfredo Di Napoli
Ah! The choice of an official maintainer is secondary, imo. It could be any of you, me, or whatever. I think that what is really important is to have a centralized point of convergence :) Bye! A. On 6 November 2012 12:31, Alfredo Di Napoli alfredo.dinap...@gmail.comwrote: The point is, I think

Re: [Haskell-cafe] Is XMonad still developed or with a current maintainer?

2012-11-06 Thread Alfredo Di Napoli
, Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Ah! The choice of an official maintainer is secondary, imo. It could be any of you, me, or whatever. I think that what is really important is to have a centralized point of convergence :) Very good to see some interest in the code base

Re: [Haskell-cafe] Is XMonad still developed or with a current maintainer?

2012-11-05 Thread Alfredo Di Napoli
Anyone knows something? On 5 November 2012 08:38, Alfredo Di Napoli alfredo.dinap...@gmail.comwrote: Hi guys, looking at the Darcs repo it seems that something is happening, but XMonad wasn't updated in a year on Hackage and everything seems to be still. Is XMonad still actively developed

Re: [Haskell-cafe] Is XMonad still developed or with a current maintainer?

2012-11-05 Thread Alfredo Di Napoli
might get dropped or be kept in the moderation queue. So I suggest subscribing and trying again. [1]: http://www.haskell.org/mailman/listinfo/xmonad Roman * Alfredo Di Napoli alfredo.dinap...@gmail.com [2012-11-05 15:21:08+0100] Anyone knows something? On 5 November 2012 08:38, Alfredo

[Haskell-cafe] Is XMonad still developed or with a current maintainer?

2012-11-04 Thread Alfredo Di Napoli
Hi guys, looking at the Darcs repo it seems that something is happening, but XMonad wasn't updated in a year on Hackage and everything seems to be still. Is XMonad still actively developed? If yes, who is the current maintainer? It would be good to have him listed in the Hackage package

Re: [Haskell-cafe] ANNOUNCE: pretty-tree

2012-10-26 Thread Alfredo Di Napoli
The idea is pretty good, although I suggest you make clickable the Haddock's link to modules, because I had to navigate the source in order to find some application as well as nice tree visualizations :) Cheers, A. On 26 October 2012 14:58, Ivan Lazar Miljenovic ivan.miljeno...@gmail.comwrote:

Re: [Haskell-cafe] A clarification about what happens under the hood with foldMap

2012-10-24 Thread Alfredo Di Napoli
is the endofunctor, so a functor from X to X itself) act as a semantic bridge between the operation to perform (+,* or whatever) and our foldable structure. Have I got the gist? Thanks a lot! A. On 24 October 2012 02:22, John Lato jwl...@gmail.com wrote: From: Alfredo Di Napoli alfredo.dinap

Re: [Haskell-cafe] ANN: Cabal-1.16.0.2 and cabal-install-1.16.0.1

2012-10-24 Thread Alfredo Di Napoli
Thanks Johan and thanks to all the guys behind Cabal :) Cheers, A. On Wed, Oct 24, 2012 at 09:42:48AM -0700, Johan Tibell wrote: Hi, On behalf of the cabal contributors, I'm proud to announce bugfix releases of Cabal and cabal-install. Here's a complete list of changes since the last

[Haskell-cafe] A clarification about what happens under the hood with foldMap

2012-10-23 Thread Alfredo Di Napoli
Hi Cafe, I was playing with the classic example of a Foldable structure: Trees. So the code you can find both on Haskell Wiki and LYAH is the following: data Tree a = Empty | Node (Tree a) a (Tree a) deriving (Show, Eq) instance Foldable Tree where foldMap f Empty = mempty foldMap f

[Haskell-cafe] A clarification about what happens under the hood with foldMap

2012-10-23 Thread Alfredo Di Napoli
-- Forwarded message -- From: Alfredo Di Napoli alfredo.dinap...@gmail.com Date: 23 October 2012 10:35 Subject: Re: [Haskell-cafe] A clarification about what happens under the hood with foldMap To: Chaddaï Fouché chaddai.fou...@gmail.com I'm sure I'm missing a point

Re: [Haskell-cafe] A clarification about what happens under the hood with foldMap

2012-10-23 Thread Alfredo Di Napoli
Thanks guys, I'll work my way through Oleg's paradox as well as what you just said Chaddai. I'm very busy right now, but I'll probably come back to you tomorrow morning, when I'll have an hour to think freely :) Cheers, A. ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] How to correctly benchmark code with Criterion?

2012-10-18 Thread Alfredo Di Napoli
I don't know if you have already read them, but Tibell's slides on High Performance Haskell are pretty good: http://www.slideshare.net/tibbe/highperformance-haskell There is a section at the end where he runs several tests using Criterion. HTH, A. On 18 October 2012 11:45, Claude Heiland-Allen

Re: [Haskell-cafe] poor performance when generating random text

2012-10-17 Thread Alfredo Di Napoli
What about this? I've tested on my pc and seems pretty fast. The trick is to generate the gen only once. Not sure if the inlines helps, though: import qualified Data.Text as T import System.Random.MWC import Control.Monad import System.IO import Data.ByteString as B import Data.Word (Word8)

Re: [Haskell-cafe] poor performance when generating random text

2012-10-17 Thread Alfredo Di Napoli
Glad to have been helpful :) Bests, Alfredo Sent from my iPad On 17/ott/2012, at 21:10, Dmitry Vyal akam...@gmail.com wrote: On 10/17/2012 12:45 PM, Alfredo Di Napoli wrote: What about this? I've tested on my pc and seems pretty fast. The trick is to generate the gen only once. Not sure

[Haskell-cafe] I would like a clarification about Enumerators and Iteratees, please :)

2012-10-16 Thread Alfredo Di Napoli
Hi guys, I've started playing with Iteratee and Enumerators: very cool and addictive stuff. I have wrote this simple code: https://gist.github.com/3899017 In a nutshell, it gives back the number of occurences for a single char in case the argument passed from the command line is a single char,

Re: [Haskell-cafe] ANNOUNCE: test-framework-golden-1.1

2012-10-04 Thread Alfredo Di Napoli
That's cool, thank you. A. Sent from my iPad On 04/ott/2012, at 23:55, Roman Cheplyaka r...@ro-che.info wrote: I am glad to announce the first public release of test-framework-golden — a golden testing library. Hackage: http://hackage.haskell.org/package/test-framework-golden GitHub:

[Haskell-cafe] Explicitly passing an argument to an arrow

2012-10-03 Thread Alfredo Di Napoli
Hello everyone, sorry for the dumb question but I'm wrapping my head around arrow just from this morning. Consider this toy function to swap argument of a tuple: swapA' :: (Arrow a) = a ((b,c), (b,c)) (c,b) swapA' = swapFirst swapSecond where swapFirst = first $ arr snd swapSecond =

Re: [Haskell-cafe] Explicitly passing an argument to an arrow

2012-10-03 Thread Alfredo Di Napoli
Thanks Brent, this should do the trick, although what I was asking was something more general: For explicitly pass I meant passing them without the eta reduce, in other terms: swapA' :: (Arrow a) = a ((b,c), (b,c)) (c,b) swapA' t = () swapFirst swapSecond (???) where swapFirst =

Re: [Haskell-cafe] Explicitly passing an argument to an arrow

2012-10-03 Thread Alfredo Di Napoli
I see. There exists an equivalent version but more generic? Just out of curiosity, I'm still pretty new to arrows, as you may have read :) Thanks, A. On 3 October 2012 15:59, Ertugrul Söylemez e...@ertes.de wrote: Alfredo Di Napoli alfredo.dinap...@gmail.com wrote: Solution was simple

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-14 Thread Alfredo Di Napoli
session, whining about nested tmux session and not starting at all. You can unset the $TERM variable as workaround, but I don't like that apporach. If you come up with an alternative solution please let me know :) A. On 13 September 2012 16:16, Alfredo Di Napoli alfredo.dinap...@gmail.comwrote

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-14 Thread Alfredo Di Napoli
, Alfredo Di Napoli alfredo.dinap...@gmail.comwrote: Ok, I've added the support for urxvt. Bear in mind that it partially support urxvt, though: it works fine if you run GVim or Vim outside an already running tmux session, otherwise it won't start. The problem is due to the fact urxvt believes

[Haskell-cafe] ANN: Cumino 0.3 - Now supports sandboxed environments (e.g, Hsenv ones)

2012-09-14 Thread Alfredo Di Napoli
Hi Cafè, I'm glat to annouce the third major improvement of my VIm plugin Cumino: https://github.com/adinapoli/cumino This one is a juicy one. If you have a sandboxed environment enabled (e.g. one created with Hsenv) and you start vim from the same shell, Cumino will automatically uses at

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-13 Thread Alfredo Di Napoli
You're welcome :) Using Cumino your workflow should be faster and leaner. I encourage to try it out and let me have feedback! Cheers, A. On 12 September 2012 21:43, Roman Cheplyaka r...@ro-che.info wrote: Ah, okay. I was just confused by the fact that it uses tmux, and thought that I was

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-13 Thread Alfredo Di Napoli
Nice bridge between vim and tmux! Thanks! Would you mind add supporting for `urxvtc'? urxvtc's -e option is followed by a list of options instead of a string. urxvtc -e sh -c 'echo a' xterm -e echo a I would like to, and in fact I've already tried, but urxvt is trickier than

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-13 Thread Alfredo Di Napoli
If I remember correctly, I've also tried that combinations, without success. Anyway, I'm not at work so I can't test Cumino against gnome and Xmonad until tomorrow morning: I'll keep you posted! Bye, Alfredo I think you misunderstood; as I read it (and as I would expect it to work given the

[Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
Hi everyone, in case you have missed it, I've released a Vim plugin called Cumino: http://adinapoli.github.com/cumino/ It does one simple thing: It allows communication between Vim and tmux, in particular to a ghci session. With Cumino you can fire-up Vim, load a ghci session and interact with

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
/12/2012 05:03 PM, Alfredo Di Napoli wrote: There are still some issues with some terminals (for example urxvt does not work right now) ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
, Roman Cheplyaka r...@ro-che.info wrote: So, suppose that I'm in a terminal vim session, and I want to start ghci (in the current terminal). What do I do? localleadercc starts a new terminal, which is not what I want. On Wed, Sep 12, 2012 at 3:03 PM, Alfredo Di Napoli alfredo.dinap

Re: [Haskell-cafe] [ANN] Cumino 0.2 - Now supports pretty indentation through stylish-haskell

2012-09-12 Thread Alfredo Di Napoli
If such a possibility exists, I would be happy to fix the urxvt support :) Bear in mind, though, that the Cumino terminal is only needed for the Ghci session, so you can use your favourite terminal to run Vim :) A. urxvt defaults to using a client-server model for all terminals, IIRC (we have

[Haskell-cafe] Help a young graduate haskeller to land its dream job

2012-09-12 Thread Alfredo Di Napoli
Hi everyone, If this mail sound strange to you, you are free to ignore it. My name is Alfredo Di Napoli and I'm a 24-year-old programmer from Rome, Italy. I've graduated in May and I'm currently working as an intern for a company involved in the defence field. In my spare time, though, I study

Re: [Haskell-cafe] ANN: LambdaCube 3D (purely functional rendering engine) is back in business

2012-09-08 Thread Alfredo Di Napoli
Good luck for this new beginning! A. On Sat, Sep 08, 2012 at 10:39:36AM +0200, Patai Gergely wrote: Hello all, We recently rebooted the LambdaCube project, which aims to provide a purely functional interface for GPU programming. The details and the background are described in our new blog

Re: [Haskell-cafe] ANNOUCE: Haddock 2.10.0 and 2.11.0

2012-09-07 Thread Alfredo Di Napoli
Great news! On 7 September 2012 13:19, David Waern david.wa...@gmail.com wrote: -- Haddock 2.10.0 and 2.11.0 Two new versions of Haddock have been uploaded to Hackage: version 2.10.0 which comes with

Re: [Haskell-cafe] ANNOUNCE: grid-1.1

2012-09-06 Thread Alfredo Di Napoli
It seems cool, looking forward to play with it! On 6 September 2012 09:42, Amy de Buitléir a...@nualeargais.ie wrote: I'm happy to announce a new package called grid: http://hackage.haskell.org/package/grid https://github.com/mhwombat/grid/wiki (wiki) Grid provides tools for