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 Pandoc Markdown in order to be able to create an EPUB version. Having
 a “real” e-book meant that I could comfortably read it on my e-book
 reader and highlight text and take notes while reading. I also fixed
 some minor issues while reading it. (These fixes were of course
 backported to the official Typeclassopedia version on the Haskell Wiki.)

 The EPUB file can be downloaded from Github:

 https://github.com/ehamberg/typeclassopedia-md/releases

 The Markdown source is also available in that repo and you can of course
 use Pandoc to convert the Markdown file to all the other output formats
 Pandoc supports.

 By using a program like Calibre, the EPUB file can be converted to other
 e-book formats such as the Kindle format.

 I hope people find this useful. :-)

 --
 Erlend Hamberg
 ehamb...@gmail.com

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 :)
A.


On 18 August 2013 14:50, Simon Hengel s...@typeful.net wrote:

 Hi,
 I just released hspec-test-framework[1] and hspec-test-framework-th[2]
 to Hackage.

 They can be used to run test-framework tests with Hspec unmodified.

 This can also be used to work around test-framework's incompatibility
 with QuickCheck-2.6 and base-4.7.0 ;)

 Have a look at the README for usage instructions:

 https://github.com/sol/hspec-test-framework#readme

 Cheers,
 Simon

 [1] http://hackage.haskell.org/package/hspec-test-framework
 [2] http://hackage.haskell.org/package/hspec-test-framework-th

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 someone states, data-files in for run-time, whereas I need to tell
cabal please copy these files in place before trying to compile, so at
compile-time.

Does something similar exist?

I think the best solution, unless someone prove me wrong, is to create a
small startup script which copies the files for me (I *think* yesod is
using something similar, namely a script called EmbeddedFiles.hs) and then
triggers cabal install the usual way. Can you come up with a better way?

Thanks in advance!

Alfredo
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-08-16 Thread Alfredo Di Napoli
Hi Daniel,

It's the path I've eventually took as well.

Many thanks,

Sent from my iPad

On 16/ago/2013, at 11:13, Daniel Díaz Casanueva dhelta.d...@gmail.com wrote:

 What I have always done to solve this is to create a custom Setup.hs. 
 Something like:
 
 Setup.hs
 -
 import 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,
 
 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 someone states, data-files in for run-time, whereas I need to tell cabal 
 please copy these files in place before trying to compile, so at 
 compile-time.
 
 Does something similar exist?
 
 I think the best solution, unless someone prove me wrong, is to create a 
 small startup script which copies the files for me (I *think* yesod is using 
 something similar, namely a script called EmbeddedFiles.hs) and then triggers 
 cabal install the usual way. Can you come up with a better way?
 
 Thanks in advance!
 
 Alfredo
 
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe
 
 
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-08-16 Thread Alfredo Di Napoli
Thanks Dag, I'll give it a spin. Btw, I've successfully solved my problem
with the following Setup.hs, I'm posting it here in case someone will find
this useful in the future:

#!/usr/bin/env runhaskell
 import Distribution.Simple
 import Distribution.PackageDescription
 import Distribution.Package
 import Distribution.Simple
 import Distribution.Simple.LocalBuildInfo
 import Distribution.Simple.Setup
 import Distribution.Verbosity
 import Distribution.Simple.Utils
 import Paths_myproject
 main :: IO ()
 main = defaultMainWithHooks myHooks
   where myHooks = simpleUserHooks { preBuild = copyResources }
 copyResources :: Args
  - BuildFlags
  - IO HookedBuildInfo
 copyResources args flags = do
   installDir - getDataDir
   installDirectoryContents verbose resources (installDir ++ /resources)
   return emptyHookedBuildInfo


where myproject should be the name of your project, as in myproject.cabal.


On 16 August 2013 13:11, Dag Odenhall dag.odenh...@gmail.com wrote:

 You want extra-source-files. They'll be included in the tarball, and
 cabal always builds from the root of the package, so you can safely use
 relative paths.


 On Fri, Aug 16, 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://stackoverflow.com/questions/15731170/cabal-how-to-add-text-file-as-a-build-dependency

 As someone states, data-files in for run-time, whereas I need to tell
 cabal please copy these files in place before trying to compile, so at
 compile-time.

 Does something similar exist?

 I think the best solution, unless someone prove me wrong, is to create a
 small startup script which copies the files for me (I *think* yesod is
 using something similar, namely a script called EmbeddedFiles.hs) and then
 triggers cabal install the usual way. Can you come up with a better way?

 Thanks in advance!

 Alfredo

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 similar movies for Haskell as
  https://www.youtube.com/watch?v=kLO1djacsfg and
  https://www.youtube.com/watch?v=E3418SeWZfQ exist for Java.
 
  I indend to give them to some people to make them intrigued by the
  language and start learning it / looking for it.
 
 

 Cool, many thanks to all who answered here, they have proven useful

 --
 MM
 All we have to decide is what we do with the time that is given to us

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 ByteStrings is that they need
to be pinned inside the heap,
preventing the GC from collecting them. This is more than an issue, I
think, if a program uses them massively
and they needs to be allocated persistently (example: a long-life
constant). I know is still a marginal case, but
knowing that a part of my heap is pinned makes my sleep quality degrade :(
I assume that working with vector remove the problem, correct?

A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-07-10 Thread Alfredo Di Napoli
Hello Bas,

sorry for being unclear. What you say is correct, I was referring (and I
realised this after posting :D ) that the real
annoying thing is fragmentation in memory. Due to the fact the GC can't
move those objects, if we have long running
processes our memory will become more and more 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 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 ByteStrings is that they
 need
  to be pinned inside the heap,
  preventing the GC from collecting them.

 Being pinned doesn't prevent an object from being garbage collected.
 It just means that the GC won't move the object around so that foreign
 code can reliably reference the object while the GC is running:

 http://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage/GC/Pinned

  I assume that working with vector remove the problem, correct?

 There wasn't a problem in the first but note that a Storable Vector is
 implemented in the same way as a ByteString: a ForeignPtr and a
 length*

 I hope I have now improved your sleep quality ;-)

 Cheers,

 Bas

 * A ByteString also contains an offset but vector modifies the pointer
 in the ForeignPtr instead so we safe an Int there.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 maydw...@gmail.com wrote:
  How can I join the group?

 by asking any of the current members :) I've added you.

  P.S. I've attached a simple image for the Gravatar if it looks okay.

 great, can you add it?

 Conrad.

 
 
  On Tue, May 28, 2013 at 12:40 PM, Conrad Parker con...@metadecks.org
  wrote:
 
  On 28 May 2013 05:29, Alexander Solla alex.so...@gmail.com wrote:
   As per recent discussions, I'm making a list of volunteers who are
   willing
   to pick up some slack in Hackage package maintenance, so that we can
   submit
   an amendment to the Haskell Prime Committee's ticket 113
   (http://hackage.haskell.org/trac/haskell-prime/ticket/113)
  
   I think that showing that people are willing to pick up missing
 package
   maintainer's slack will alleviate the concern of breaking lots of
 code
   by
   refactoring the monad/applicative/functor hierarchy.  Code will be
   broken,
   but publicly available packages can be fixed by the community during
 a
   staging period.  To that end, I have made a Google Form to collect
   some
   volunteer information.  If you are interested in helping, please
 visit:
  
  
  
 https://docs.google.com/forms/d/1o4B8CEE_42u9f-sgmu2t5iSEvm0cq6-um6g_fHJt6GE/viewform
  
  
 
  For that proposal, there is also an informal github group for updating
  unmaintained packages,
  which anyone willing is welcome to join:
 
  https://github.com/haskell-pkg-janitors
 
  cheers,
 
  Conrad.
 
  ___
  Haskell-Cafe mailing list
  Haskell-Cafe@haskell.org
  http://www.haskell.org/mailman/listinfo/haskell-cafe
 
 
 
  ___
  Haskell-Cafe mailing list
  Haskell-Cafe@haskell.org
  http://www.haskell.org/mailman/listinfo/haskell-cafe
 



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 expect to simply re-brand as the release, unless
 anyone uncovers some issues.*
 *If you decide to test these out, please let me know how it goes.*
 *
 *
 The Mac OS X RC2 installers:

 *32bit: *Haskell Platform 2013.2.0.0 32bit 
 rc2.signed.pkghttp://www.ozonehouse.com/mark/platform/Haskell%20Platform%202013.2.0.0%2032bit%20rc2.signed.pkg
 *64bit: *Haskell Platform 2013.2.0.0 64bit 
 rc2.signed.pkghttp://www.ozonehouse.com/mark/platform/Haskell%20Platform%202013.2.0.0%2064bit%20rc2.signed.pkg

 The source tarball (RC1):

 haskell-platform-2013.2.0.0-rc1.tar.gzhttp://www.ozonehouse.com/mark/platform/haskell-platform-2013.2.0.0-rc1.tar.gz


 *Notable new things in Haskell Platform 2013.2:*

- GHC 7.6.3
- Major update to *OpenGL*  *GLUT*
- New packages:
   - *attoparsec*
   - *case-insensitive*
   - *hashable*
   - *unordered-containers*

 — Mark mad releaser Lentczner


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/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 yi-editor.  As a emacer, I made
 yi-editor more emacs like, including the following change:
   1. ido-mode like file find and buffer find
   2. support more color in vty
   3. automatic search tags file in parents's directory
   4. change some keymap

   The following step to have a try:
   1. clone : git clone https://github.com/onlyu/yi.git
   2. build  : ./yi/yi.sh --rebuild
   3. run: ./yi/yi.sh

 Thanks for have a test, and thanks yi-editor, now I combine
 my favourite editor (emacs) and language (haskell) together.

   Apologize for my noisy!


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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
Hi Edsko, thanks for the reply.
The only things that might affect the outcome are:

a) Ghc version: I'm running ghc 7.6.2 instead of 7.6.1
b) Don't know if you are using cabal-dev as sandboxing (like any good
Haskell programmer I'm too lazy to open your blog post :D ), whilst I'm
using hsenv
c) I've brewed GTK instead of manually installing it, but gtk-demo runs
just fine
d) Are you using XQuartz? If yes, which version?

Thanks again!
A.


On 4 April 2013 08:52, Edsko de Vries edskodevr...@gmail.com wrote:

 Hi Alfredo,

 No dark magic as far as I recall (except in the actual bundling as a Mac
 app, unfortunately that required some magic, the GTK libraries don't
 relocate so easily :-( ). I didn't have any problems building. I compiled
 it with ghc 7.6.1, with the GTK libraries installed manually (there are
 some suggestions on how to do that at the very end of my Comprehensive
 Haskell Sandboxes post,
 http://www.edsko.net/2013/02/10/comprehensive-haskell-sandboxes/). It
 used to be a lot more painful (requiring the latest versions of Haskell
 libraries, with patches etc.) but these days the situation is a lot better.
 (That's not so say that problems like the one you reported 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 the root, namely why
 it was failing.

 Can you tell me a bit more about the dark magic you used to make it work?
 Which GHC version did you use?

 Thanks a lot,
 A.


 On 3 April 2013 12:40, 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 alfredo.dinapoli at gmail.com writes:

 
  Said that,has someone had any luck in running Threadscope on Mac OS X
 10.8 at all?
 
  Thanks,
  A.
 

 I think I have encountered the same problem:


 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

 In my experience, anything that uses gtk is a problem on a MAC.

 I still intend to do some analysis *not* using threadscope but using
 event-logs directly
 but that is at least a few weeks away.

 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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
Perfect, I will try to probe the ground for points c) and d), and I will
get back to all of you if I manage to shed some light to this mystery :D

A.


On 4 April 2013 09:12, Edsko de Vries edskodevr...@gmail.com wrote:

 a) 7.6.2 vs 7.6.1 seems unlike to be the issue, although theoretically
 possible I guess.
 b) Actually, the blog post is how to set things up by hand for better
 control than either of those tools give you; but again, I don't think it's
 relevant.
 c) This might be a bigger difference. I don't know what version brew
 installs, where it installs it, etc. etc.
 d) 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 that might affect the outcome are:

 a) Ghc version: I'm running ghc 7.6.2 instead of 7.6.1
 b) Don't know if you are using cabal-dev as sandboxing (like any good
 Haskell programmer I'm too lazy to open your blog post :D ), whilst I'm
 using hsenv
 c) I've brewed GTK instead of manually installing it, but gtk-demo runs
 just fine
 d) Are you using XQuartz? If yes, which version?

 Thanks again!
 A.


 On 4 April 2013 08:52, Edsko de Vries edskodevr...@gmail.com wrote:

 Hi Alfredo,

 No dark magic as far as I recall (except in the actual bundling as a Mac
 app, unfortunately that required some magic, the GTK libraries don't
 relocate so easily :-( ). I didn't have any problems building. I compiled
 it with ghc 7.6.1, with the GTK libraries installed manually (there are
 some suggestions on how to do that at the very end of my Comprehensive
 Haskell Sandboxes post,
 http://www.edsko.net/2013/02/10/comprehensive-haskell-sandboxes/). It
 used to be a lot more painful (requiring the latest versions of Haskell
 libraries, with patches etc.) but these days the situation is a lot better.
 (That's not so say that problems like the one you reported 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 the root, namely
 why it was failing.

 Can you tell me a bit more about the dark magic you used to make it
 work?
 Which GHC version did you use?

 Thanks a lot,
 A.


 On 3 April 2013 12:40, 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.org
  wrote:

 Alfredo Di Napoli alfredo.dinapoli at gmail.com writes:

 
  Said that,has someone had any luck in running Threadscope on Mac OS
 X 10.8 at all?
 
  Thanks,
  A.
 

 I think I have encountered the same problem:


 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

 In my experience, anything that uses gtk is a problem on a MAC.

 I still intend to do some analysis *not* using threadscope but using
 event-logs directly
 but that is at least a few weeks away.

 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe






___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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
Thanks Edsko, the app is awesome and it's starting just fine.
Even though this fixes my problem, it doesn't solve the root, namely why it
was failing.

Can you tell me a bit more about the dark magic you used to make it work?
Which GHC version did you use?

Thanks a lot,
A.


On 3 April 2013 12:40, 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 alfredo.dinapoli at gmail.com writes:

 
  Said that,has someone had any luck in running Threadscope on Mac OS X
 10.8 at all?
 
  Thanks,
  A.
 

 I think I have encountered the same problem:

 https://groups.google.com/d/msg/parallel-haskell/-lhrgNN8elw/KzqLM9BzoJwJ

 In my experience, anything that uses gtk is a problem on a MAC.

 I still intend to do some analysis *not* using threadscope but using
 event-logs directly
 but that is at least a few weeks away.

 Dominic.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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
Fair enough :)
Here is the gdb output:

(gdb) run
Starting program: /Users/adinapoli/Library/Haskell/ghc-7.6.2/bin/threadscope
Reading symbols for shared libraries
++...
done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x
0x in ?? ()

I have two hypothesis:

a) could be the RAM (tips about some RAM testing tool?)
b) could be some programs which is writing in that portion of memory, see:

https://discussions.apple.com/thread/3734077?start=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
 CrashReports
 log folder to see if it gives a bit more information on the state of the
 process at the time it died?

 Thanks,
 --
 John Wiegley
 FP Complete Haskell tools, training and consulting
 http://fpcomplete.com   johnw on #haskell/irc.freenode.net

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 reported the possibility for completeness.

Said that,has someone had any luck in running Threadscope on Mac OS X 10.8 at 
all?

Thanks,
A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 environment (provided by
hsenv)
* Using XQuartz 2.7.4

I know it's a bit difficult to debug this way, I can try debugging with gdb
if it can help.

Cheers,

A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 -with-rtsopts=-N
  hs-source-dirs: tests
[...]

but this runs tests using the default cabal interface:

Linking dist/build/test-all/test-all ...
Running 1 test suites...
Test suite test-all: RUNNING...
Test suite test-all: PASS
Test suite logged to: dist/test/opencv-simple-0.1.0.0-test-all.log
1 of 1 test suites (1 of 1 test cases) passed.

This is, instead, what I wanted when I type cabal test and cabal install
--enable-tests:

http://batterseapower.github.com/test-framework/images/example.png

is it possible?

Thanks in advance,

A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 --prefix=~/Library/Haskell/ghc-xxx (where xxx is the version)
make install

(then inside ~/Library/Haskell)
ln -s ghc-xxx current
ln -s current/bin bin

This way my current GHC is pointing to current inside
~/Library/Haskell/current and my bin are updated accordingly (make sure to
add /bin to your $PATH!). Then you install cabal-install and you are pretty
much sorted. The advantage of this approach is that you have the control
over the installation process, but other suggestion (like Alp's one) are
pretty good too. Mostly depends on what you think will work best for you :)

A.

On 11 March 2013 11:33, Alp Mestanogullari alpmes...@gmail.com wrote:

 I don't think so. However, you can install the OS X binaries for ghc 7.6.2
 and make that sit just next to your Haskell Platform install. You can even
 use your existing cabal-install to install packages for the freshly
 installed ghc by doing 'cabal install foo --with-ghc=/path/to/ghc'. Just
 watch which ghc does become the default (it's a matter of replacing a
 symlink) and that it satisfies you.


 On Thu, Mar 7, 2013 at 10:50 PM, Graham Klyne g...@ninebynine.org wrote:

 Hi,

 I have Haskell Platform with GHC[i] 7.4.2 installed on a MacOS system.
  There's a problem with the handling of certain Markdown constructs in
 literate Haskell (lines starting with '#') that I understand is fixed in
 7.6.2.

 Therefore, I'd like to be able to update my GHC installation to 7.6.2.
  But I haven't yet been able to find any instructions about how to upgrade
 an existing GHC installation.  Am I missing something?

 #g
 --

 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe




 --
 Alp Mestanogullari

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 sugar / whatever, but
still have a de facto plugin for indenting haskell code in Vim in a smart
way :)

A.-
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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
https://github.com/cakesolutions/the-pragmatic-haskeller/blob/master/01-json/Pragmatic/JSON/Parser.hs

My question is simple: is it possible to automagically store the haskell
data structure produced from the aeson encoding using

http://hackage.haskell.org/packages/archive/mongoDB/1.3.2/doc/html/Database-MongoDB-Query.html#g:7

Any tip/suggestion is welcome,

Thanks,
Alfredo
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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/aesonbson/blob/master/Data/AesonBson.hs
 
 It can convert aeson to bson and the other way around, so you can easily
 convert 'Object's to 'Document's.
 
 Is that what you are looking for?
 
 On 18/02/13 21:37, Alfredo Di Napoli wrote:
 My question is simple: is it possible to automagically store the
 haskell data structure produced from the aeson encoding using
 
 http://hackage.haskell.org/packages/archive/mongoDB/1.3.2/doc/html/Database-MongoDB-Query.html#g:7

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 b...@redivi.com wrote:

 The Python and Ruby communities are actively working on improving the
 security of their packaging infrastructure. I haven't paid close attention
 to any of the efforts so far, but anyone working on cabal/hackage security
 should probably take a peek. I lurk on Python's catalog-sig list and here's
 the interesting bits I've noticed from the past few weeks:

 [Catalog-sig] [Draft] Package signing and verification process
 http://mail.python.org/pipermail/catalog-sig/2013-February/004832.html

 [Catalog-sig] [DRAFT] Proposal for fixing PyPI/pip security
 http://mail.python.org/pipermail/catalog-sig/2013-February/004994.html

 Python PyPi Security Working Document:

 https://docs.google.com/document/d/1e3g1v8INHjHsUJ-Q0odQOO8s91KMAbqLQyqj20CSZYA/edit

 Rubygems Threat Model:
 http://mail.python.org/pipermail/catalog-sig/2013-February/005099.html

 https://docs.google.com/document/d/1fobWhPRqB4_JftFWh6iTWClUo_SPBnxqbBTdAvbb_SA/edit

 TUF: The Update Framework
 https://www.updateframework.com/



 On Fri, Feb 1, 2013 at 4:07 AM, Christopher Done chrisd...@gmail.comwrote:

 Hey dude, it looks like we made the same project yesterday:


 http://www.reddit.com/r/haskell/comments/17njda/proposal_a_trivial_cabal_package_signing_utility/

 Yours is nice as it doesn't depend on GPG. Although that could be a
 nice thing because GPG manages keys. Dunno.

 Another diff is that mine puts the .sig inside the .tar.gz, yours puts
 it separate.

 =)

 On 31 January 2013 09:11, Vincent Hanquez t...@snarc.org wrote:
  On 01/30/2013 07:27 PM, Edward Z. Yang wrote:
 
  https://status.heroku.com/incidents/489
 
  Unsigned Hackage packages are a ticking time bomb.
 
  I agree this is terrible, I've started working on this, but this is
 quite a
  bit of work and other priorities always pop up.
 
  https://github.com/vincenthz/cabal
  https://github.com/vincenthz/cabal-signature
 
  My current implementation generate a manifest during sdist'ing in
 cabal, and
  have cabal-signature called by cabal on the manifest to create a
  manifest.sign.
 
  The main issue i'm facing is how to create a Web of Trust for doing all
 the
  public verification bits.
 
  --
  Vincent
 
 
  ___
  Haskell-Cafe mailing list
  Haskell-Cafe@haskell.org
  http://www.haskell.org/mailman/listinfo/haskell-cafe

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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? :)

My 2 cents :P
A.

On 10 February 2013 20:38, Petr Pudlák petr@gmail.com wrote:

 Dear Haskellers,

 Looking at Control.Monad:
 http://hackage.haskell.org/packages/archive/base/4.6.0.0/doc/html/Control-Monad.html
 I see: Stability provisional. I checked some older versions and it's
 the same. This feel somewhat unsettling - if Control.Monad is provisional,
 do we have any stable packages at all?

   Best regards,
   Petr Pudlak

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 and control Arduino boards,
 making it possible to implement many controller projects directly in
 Haskell.

Home page: http://leventerkok.github.com/hArduino/
Hackage: http://hackage.haskell.org/package/hArduino

 Some example programs:

Blink the led:
 http://hackage.haskell.org/packages/archive/hArduino/latest/doc/html/System-Hardware-Arduino-SamplePrograms-Blink.html
Digital counter:
 http://hackage.haskell.org/packages/archive/hArduino/latest/doc/html/System-Hardware-Arduino-SamplePrograms-Counter.html
Control an LCD:
 http://hackage.haskell.org/packages/archive/hArduino/latest/doc/html/System-Hardware-Arduino-SamplePrograms-LCD.html

 Short (4.5 mins) youtube video of the blink example:
 http://www.youtube.com/watch?v=PPa3im44t2g

 hArduino is work-in-progress: Patches, bug-reports, and feedback is most
 welcome.

 -Levent.

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 is Edimburgh: Correct? :D


 There are many Hacklabs worldwide. But this one is Toronto, Canada. I know
 because Christopher runs the Toronto Haskell Meetup and I go.

 And I will be talking about Arrow in the February meeting.

 And last month I talked about Parsec, and I documented it at
 http://www.vex.net/~trebla/**haskell/parsec-generally.xhtmlhttp://www.vex.net/~trebla/haskell/parsec-generally.xhtml

 Toronto is an international metropolis with three globally renowned
 universities, multiple major-player high-tech labs, a world-class orchestra
 and several world-class choirs, and fine cuisines from almost all cultures.
 Toronto is home of the Toronto Haskell Meetup. The Toronto Haskell Meetup
 welcomes attendees from all over the world.


 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 think we were planning on meeting on the second Wednesday of this
  month (Feb 13) but Hacklab has a members meeting that day. How do
  people feel about the 14th or 15th?

 Might help if you specify which location this meetup is intended for;
 haskell-cafe has a global membership ;-)

 
  Chris
 
  ___
  Haskell-Cafe mailing list
  Haskell-Cafe@haskell.org
  http://www.haskell.org/mailman/listinfo/haskell-cafe



 --
 Ivan Lazar Miljenovic
 ivan.miljeno...@gmail.com
 http://IvanMiljenovic.wordpress.com

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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,
A.

On 30 January 2013 07:00, Ganesh Sittampalam gan...@earth.li wrote:

 On 29/01/2013 22:46, Johan Tibell wrote:
  On Tue, Jan 29, 2013 at 2:15 PM, Ganesh Sittampalam gan...@earth.li
 wrote:
  tl;dr: I'm planning on removing the String instances from the HTTP
  package. This is likely to break code. Obviously it will involve a major
  version bump.
 
  I think it's the right thing to do. Providing a little upgrade guide
  should help things to go smoother.

 One obvious cheap-and-dirty migration is via a newtype wrapper for
 String that embeds the old broken behaviour (char8 encoding). Perhaps
 the package should provide that? (with appropriate warnings etc)

 Ganesh

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 give any useful feedback if I have
 any.


 On Fri, Jan 18, 2013 at 12:07 AM, José Pedro Magalhães j...@cs.uu.nlwrote:

 Hi all,

 I'd like to introduce Chordify http://chordify.net/ [1], an online
 music player that extracts chords from musical sources like Soundcloud,
 Youtube or your own files, and shows you which chord to play when. Here's
 an example song:
 http://chordify.net/chords/passenger-let-her-go-official-video-passengermusic

 The aim of Chordify is to make state-of-the-art music technology
 accessible to a broader audience. Behind the scenes, Chordify uses the
 HarmTrace Haskell package to compute chords from audio. I've been working
 on this project with a couple of colleagues for a while now, and recently
 we have made the website public, free to use for everyone.

 We do not use Haskell for any of the frontend/user interface, but the
 backend is entirely written in Haskell (and it uses pretty advanced
 features, such as GADTs and type families [3]). We're particularly
 interested in user feedback at this stage, so if you're interested in music
 and could use an automatic chord transcription service, please try Chordify!


 Cheers,
 Pedro

 [1] http://chordify.net/
 [2] http://hackage.haskell.org/package/HarmTrace
 [3] José Pedro Magalhães and W. Bas de Haas. Functional Modelling of
 Musical Harmony: an Experience Report. In Proceedings of the 16th ACM
 SIGPLAN International Conference on Functional Programming (ICFP'11), pp.
 156–162, ACM, 2011. http://dreixel.net/research/pdf/fmmh.pdf


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe




 --
 Alp Mestanogullari

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-01-14 Thread Alfredo Di Napoli
Thanks everyone for the answers. Mine is just an experiment, but if I
succeed in keeping it
up and to come with something useful, I won't hesitate to poke you :)
Btw, in case I succeed, posts will appear here:

http://www.alfredodinapoli.com/posts.html

and here:

http://www.cakesolutions.net/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 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 following Awodey's book, but I'm
  wondering how can I make my posts a little more real world.
  I always read about the Hask category, which seems to be the
  bootstrap of the whole logic behind Haskell. Can you please give my
  materials/papers/links/blogs to the Hask category and briefly explain me
  how it relates to Category Theory and Haskell itself?
 
  I hope my question is clear enough, in case is not, I'll restate :P
 
  Cheers,
  A.
 
 

 You want to give us the link to that blog?

 If you can keep your explanations reasonably illustrative and easy to
 understand, you'll get a regular reader out of me.

 --
 frigidcode.com


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 following Awodey's book, but I'm
wondering how can I make my posts a little more real world.
I always read about the Hask category, which seems to be the bootstrap
of the whole logic behind Haskell. Can you please give my
materials/papers/links/blogs to the Hask category and briefly explain me
how it relates to Category Theory and Haskell itself?

I hope my question is clear enough, in case is not, I'll restate :P

Cheers,
A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-01-13 Thread Alfredo Di Napoli
Thank you Alexander for the reply.
My wondering is: is Hask a category created by Haskell researchers or was
something already present in literature?

Cheers,
A.

On 13 January 2013 17:44, Alexander Solla alex.so...@gmail.com wrote:

 There was a conversation on the cafe about this last month.  Check out:

 https://groups.google.com/forum/#!topic/haskell-cafe/tBO2AowUvMY

 Category theory is a language of composition.  In logical terms,
 different categories are models of different axioms.  That said, a rich
 enough category is suitable for encoding the whole of category theory
 (as a language -- not necessarily as a model containing sub-models.  Typing
 introduces some complications, since types meant to help us escape logical
 paradoxes like Russell's by introducing a notion of foundedness)

 Hask is the category whose objects are types and whose morphisms are
 Haskell functions.

 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 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 following Awodey's book, but I'm
 wondering how can I make my posts a little more real world.
 I always read about the Hask category, which seems to be the
 bootstrap of the whole logic behind Haskell. Can you please give my
 materials/papers/links/blogs to the Hask category and briefly explain me
 how it relates to Category Theory and Haskell itself?

 I hope my question is clear enough, in case is not, I'll restate :P

 Cheers,
 A.

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 underrated benefits.

 (Where I am in a city  10 million, i.e. Jakarta, Indonesia, you'd think
 it would be a piece of cake, but so far no dice. Me and another guy are
 working on this )

 Have you considered corralling a bunch of other FPers together, like the
 Bay Area FP group? Results from a search for Scala / Clojure Minneapolis
 look promising.


 -- Kim-Ee


 On Sat, Jan 12, 2013 at 10:32 PM, Danny Gratzer 
 danny.grat...@gmail.comwrote:

 Hello,

 After seeing the post about Manchurian Haskellers I decided to start one
 for people in and around the Twin Cities.

 Here's the meetup page: http://www.meetup.com/HaskellMN/

 If any Haskell guru's are lurking around here we'd love to have you give
 a talk!

 --
 Danny Gratzer

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-01-03 Thread Alfredo Di Napoli
Great news James, thanks!
I've checked on the map and is near Piccadilly Gardens, in the heart of
Manchester!
I'll join the google group and attend the next meeting for sure :)

Cheers,
A.

On 3 January 2013 12:59, James Jeffries jamesjeffri...@gmail.com wrote:

 Hi there

 There isn't currently a haskell user groupu in Manchester, however there
 is a functional programming group where a lot of the member s are
 haskellers.

 http://www.lambdalounge.org.uk/
 https://groups.google.com/forum/?fromgroups#!forum/lambda-lounge-manchester

 It is at Madlab in the Northern Quarter 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 beloved language in front of a
 glass of ale / tea :P

 Happy new year to everyone!
 A.


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org  mailto:Haskell-Cafe@haskell.org 
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2013-01-01 Thread Alfredo Di Napoli
Wow guys,
that's a great news!
I have no experience with User Groups or sites like Meetup (the only think
I know is that a small contribution fee is required to create a Meetup), do
you have any?
Basically I think the trickiest part would be to find a place to keep the
meetings: I could ask to my employer, but it's unlikely it would gives us
permission to use company's premises outside working hours.
Any idea?

Happy new year!
A.

On 1 January 2013 18:55, David Turner d.tur...@tracsis.com wrote:

 On 01/01/2013 16:19, Blake Rain wrote:

 Hi Alfredo,

 I live in Leeds, which is not far from 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
 mailto:alfredo.dinapoli@**gmail.com alfredo.dinap...@gmail.com
 wrote:

 Hey, thanks for the response :)
 Mine was more a small survey to see if we are enough to think about
 creating a small user group and see each other once a month or
 whenever :)

 Cheers,
 A.


 On 30 December 2012 15:58, Mateusz Kowalczyk
 fuuze...@fuuzetsu.co.uk 
 mailto:fuuze...@fuuzetsu.co.**ukfuuze...@fuuzetsu.co.uk
 wrote:

 Greetings,
 I'm currently residing in Bury, a metrolink ride away from
 Manchester. Unfortunately, I'm only here for Christmas holidays
 and am leaving tomorrow so a meeting is unlikely. I don't think
 that I'd be a good conversation partner anyway as my knowledge
 is still quite limited.

 I'd love to hear whether you find any 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 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.


 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org  
 mailto:Haskell-Cafe@haskell.**orgHaskell-Cafe@haskell.org
 
 
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe




 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org 
 mailto:Haskell-Cafe@haskell.**orgHaskell-Cafe@haskell.org
 

 
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe




 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe



 --
 David Turner
 Senior Consultant
 Tracsis PLC

 Tracsis PLC is a company registered in
 England and Wales with number 5019106.


 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2012-12-30 Thread Alfredo Di Napoli
Hey, thanks for the response :)
Mine was more a small survey to see if we are enough to think about
creating a small user group and see each other once a month or whenever :)

Cheers,
A.

On 30 December 2012 15:58, Mateusz Kowalczyk fuuze...@fuuzetsu.co.ukwrote:

  Greetings,
 I'm currently residing in Bury, a metrolink ride away from Manchester.
 Unfortunately, I'm only here for Christmas holidays and am leaving tomorrow
 so a meeting is unlikely. I don't think that I'd be a good conversation
 partner anyway as my knowledge is still quite limited.

 I'd love to hear whether you find any 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
 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.


 ___
 Haskell-Cafe mailing 
 listHaskell-Cafe@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 Haddock documentation
 for it. Examples with my GHCi session:
 
 λ :doc Data.List.Split split
 Split a list according to the given splitting strategy. This is
 how to run a Splitter that has been built using the other
 combinators.
 λ :doc Control.Concurrent.MVar swapMVar
 Take a value from an MVar, put a new value into the MVar and
 return the value taken. This function is atomic only if there are
 no other producers for this MVar.
 λ :doc Data.List sort
 Ambiguous module, belongs to more than one package: base haskell2010-1.1.0.1
 Continuing anyway...
 Package: base
 The sort function implements a stable sorting algorithm.
 It is a special case of sortBy, which allows the programmer to supply
 their own comparison function.
 
 Please have a play with it, the package is at:
 http://hackage.haskell.org/package/haskell-docs It has installation
 instructions. Feel free to share any issues that you have, either
 here, or on the Github page: https://github.com/chrisdone/haskell-docs
 There are some issues to do with versioning that I'm not sure how to
 solve in a standard way.
 
 The obvious next step is to have a -package-conf flag so that it can
 be used with cabal-dev.
 
 The wizards on #haskell are currently thinking of a way to avoid
 having to write the module name and just use what's in scope.
 
 Ciao!
 
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 this out of the academic realm and into the real-life realm: I've
 actually done projects for companies which have corporate policies
 disallowing the usage of any copyleft licenses in their toolset. My use
 case was a web application, which would not have been affected by a GPL
 library usage since we were not distributing binaries. Nonetheless, those
 clients would not have allowed usage of any such libraries. You can argue
 whether or not this is a good decision on their part, but I don't think the
 companies I interacted with were unique in this regard.

 So anyone who's considering selling Haskell-based services to companies
 could very well be in a situation where any (L)GPL libraries are
 non-starters, regardless of actual legal concerns. This affects the open
 source realm as well, because I think many of us want our libraries to be
 commercial-friendly (I know this is the case for Yesod).

 As one specific data point, I initially created the markdown package[1]
 because I couldn't use pandoc[2] in one of these situations due to its GPL
 license.

 MIchael

 [1] http://hackage.haskell.org/package/markdown
 [2] http://hackage.haskell.org/package/pandoc


 On Thu, Dec 13, 2012 at 10:00 AM, Petr P petr@gmail.com wrote:

   Hi Felipe,

 thanks for making me think about the licenses. Without your suggestion, I
 wouldn't be aware of problems LGPL might cause for Haskell projects. And
 I'm considering the possibility of using BSD (or a similar) license in the
 future.

 I'm aware of the issues you pointed out. As you say, since tie-knot is a
 small library, it's not really that important what license it has, it's
 easy to re-implement it if needed. And, until some else contributes to the
 library, anybody can ask me to release the code under a different license,
 if needed.

 I'd say that the recent debate was a bit academic. (That wasn't bad at
 all, it clarified many things for me.) Nobody actually said I want to use
 the library, but I cannot because of the license. Also we're talking about
 LGPL, not GPL, and this makes thing different. Consider this: All packages
 on Hackage have published their source codes. (More than 95% are open
 source, and it's likely that those in OtherLicence are too.) With public
 source codes, there is no problem using a LGPL-ed library! Anybody can
 write a BSD licensed program which uses a LGPL library, and because all
 sources are public, the requirement to allow re-linking is easily
 satisfied. And nobody is forced to (L)GPL (unless the library is modified).
 We can freely mix open-source projects that use LGPL and non-copyleft
 licenses. The LGPL problem manifests only when someone wants to keep
 source codes secret - then (s)he is forced to solve the problem with
 re-linking. [With GPL, this would be very different, the whole project
 would have to be GPL no matter what.]

 I think it would be interesting to make some kind of poll to see what
 kind of software Haskell community writes (FOSS vs closed source) and what
 licensing issues people have. But the usual problem with such polls is that
 only people who have problems vote, so the results are very biased.

   Best regards,
   Petr


 2012/12/12 Felipe Almeida Lessa felipe.le...@gmail.com

 When deciding what license to use, I think one should also think about
 the role of their library.  For example, containers is quite central
 to the Haskell community and not easily replaceable.  The tie-knot
 library, OTOH, may be rewritten from scratch or even just skipped
 (just tie the knot yourself).  A GPLed containers forces the library
 user to somehow get a way of complying to the license.  A GPLed
 tie-knot, OTOH, may be just ignored.

 What I'm trying to say is that if your library is nice but someone may
 just rewrite it without much effort, then using GPL will just drive
 potential users of your library away, which is bad not just for the
 library but also for those potential users as well.  Perhaps you have
 a nice library but it may be replaced (with some small pain) by
 another, similar library.

 (In particular, I'm not saying that tie-knot is a library that should
 be ignored.  On the contrary, I think it's quite nice and it would be
 a shame if I had to ignore it when tying a knot just because of its
 restrictive license.)

 Of course, if everything on Hackage was GPLed, then it wouldn't make
 sense to release something as BSD as you wouldn't be able to use it
 anyway.  But the reality right now is that we have:

 (Apache,3)
 (BSD3,3359)
 (BSD4,3)
 (MIT,269)
 (PublicDomain,142)

 (GPL,409)
 (GPL-2,27)
 (GPL-3,147)
 (LGPL,138)
 (LGPL-2,2)
 (LGPL-2.1,25)
 (LGPL-3,21)

 (OtherLicense,179)

 This data comes from a 

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 base, using packages and functions wich are not in base/haskell
platform (e.g. mwc-random).

My 2 cents :)
A.

On 29 November 2012 18:09, Fixie Fixie fixie.fi...@rocketmail.com wrote:

 Hi all haskellers

 I every now and then get the feeling that doing my job code in Haskell
 would be a good idea.

 I have tried a couple of times, but each time I seem to run into
 performance problems - I do lots of heavy computing.

 The problem seems to be connected to lazy loading, which makes my programs
 so slow that I really can not show them to anyone. I have tried all tricks
 in the books, like !, seq, non-lazy datatypes...

 I was poking around to see if this had changed, then I ran into this forum
 post:
 http://stackoverflow.com/questions/9409634/is-indexing-of-data-vector-unboxed-mutable-mvector-really-this-slow

 The last solution was a haskell program which was in the 3x range to C,
 which I think is ok. This was in the days of ghc 7.0

 I then tried compile the programs myself (ghc 7.4.1), but found that now
 the C program now was more that 100x faster. The ghc code was compiled with
 both O2 and O3, giving only small differences on my 64-bit Linux box.

 So it seems something has changed - and even small examples are still not
 safe when it comes to the lazy-monster. It reminds me of some code I read a
 couple of years ago where one of the Simons actually fired off a new
 thread, to make sure a variable was realized.

 A sad thing, since I am More that willing to go for Haskell if proves to
 be usable. If anyone can see what is wrong with the code (there are two
 haskell versions on the page, I have tried the last and fastest one) it
 would also be interesting.

 What is your experience, dear haskellers? To me it seems this beautiful
 language is useless without a better lazy/eager-analyzer.

 Cheers,

 Felix

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 hackage
 [1] with some minor improvements and the repository is now hosted on github
 [2].

 Thanks Niklas for language-java !

 [1] 
 http://hackage.haskell.org/**package/language-javahttp://hackage.haskell.org/package/language-java
 [2] 
 http://github.com/vincenthz/**language-java/http://github.com/vincenthz/language-java/

 --
 Vincent

 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 :)

Cheers,
Alfredo

On 18 November 2012 13:33, timothyho...@seznam.cz wrote:

 I've read a lot of negative regarding the problems with cabal and hackage.
 I've written quite a few of them myself.

 I want to propose a simple change in philosophy of packages.

 Haskell has inherited a philosophy from the imperative world,
 that there are two types of packages:
 Libraries and applications.

 Libraries are big collections of modules.
 Applications are big collections of modules.

 There is a difference from the perspective of the build system.

 Applications are big collections of modules that belong together and
 mutually rely upon each other for the application to work. Such that if one
 module is missing, the application cannot build and thus cannot do useful
 tasks.  If an application doesn't build, then the maintainer has to go and
 fix that problem.  This isn't perfect, I do not solve this problem in this
 email.

 Libraries don't always have this property.
 For example, 
 XMonad.Layout.Columnhttp://hackage.haskell.org/packages/archive/xmonad-contrib/0.10/doc/html/XMonad-Layout-Column.htmlhas
  no mutual dependency on
 XMonad.Layout.Circlehttp://hackage.haskell.org/packages/archive/xmonad-contrib/0.10/doc/html/XMonad-Layout-Circle.html
 .

 This is a feature of libraries that can and should be taken advantage of
 wherever possible :)

 We can and should,
 break up libraries into books.

 I hold this opinion,
 because libraries are hard to maintain.

 If xmonad-contrib refuses to build,
 I open up it's source code,
 and see some hundred modules.

 I cannot,
 as a non-xmonad developer,
 imagine myself fixing such a large library.
 But if it was just one small module from that library I wanted,
 and it refused to build,
 and I opened it up,
 and there were just 3 files there.
 I wouldn't feel so overwhelmed.

 I would fix the problem myself.

 What I'm trying to say,
 is that books
 (small packages containing 3 modules or less)
 are so easy to maintain,
 that they really need no maintainer at all.
 Any idiot can fix one.

 But libraries,
 with their hundreds of modules,
 and seemingly endless dependencies,
 Can be much harder to maintain,
 and require a knowledgeable maintainer.

 So lets stop publishing libraries,
 and maintaining libraries,
 and listening to people crying when libraries don't build,
 and lets start writing books,
 and publishing really small packages,
 that are so simple anyone can fix them when they break
 even when they have no in depth knowledge of the package.

 Lets make a new guideline for libraries
 that if it is possible to split a library into two or more,
 non-mutually dependent parts,
 than we *should* split them such.

 Timothy

 PS,

 I noticed that yesod is already a collection of books,
 but it appears to me, that these packages are STILL mutually dependent :(

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 platform:

- 
 async-2.0.1.3http://lambda.haskell.org/platform/doc/current/packages/async-2.0.1.3/doc/html/index.html
- 
 split-0.2.1.1http://lambda.haskell.org/platform/doc/current/packages/split-0.2.1.1/doc/html/index.html
- 
 vector-0.10.0.1http://vector-0.10.0.1http://lambda.haskell.org/platform/doc/current/packages/vector-0.10.0.1/doc/html/index.html

 The remainder of the changes are small updates to the versions of GHC (now
 7.4.2) and several other packages.

 Installers for Windows http://www.haskell.org/platform/windows.html, Mac
 OS X http://www.haskell.org/platform/mac.html, and the source tar 
 ballhttp://www.haskell.org/platform/linux.htmlare all now available from 
 the site. Linux distribution packages should be
 available shortly.

 On behalf of the Haskell Platform 
 teamhttp://trac.haskell.org/haskell-platform/wiki/Members
 ,
  - Mark mzero Lentczner, Release Manager


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2012-11-06 Thread Alfredo Di Napoli
The point is, I think it would be beneficial for XMonad to merge efforts in
one one point.
For this reason I've contacted Adam (the current maintainer) and asked him
if I could co-maintain XMonad.
The point is trying to make all our efforts in only one point. This is an
excerpt of what I've told him:

Thanks for the quick reply. if you would like to, we can co-maintain
 Xmonad. I've been using it for six months now and became such an invaluable
 tool that Os X aqua interface sucks when I use it :)
 I will be pretty busy until the end of the year, because I just landed a
 new job abroad and I'm in the process of relocating, bUt i'll have plenty
 of spare time this winter to hack on Xmonad.
 I have great plans for our lovely window manager, including:
 1) a new website, the current is nice but too geeky and old. Capturing
 user interest through a cool website is very important imho
 2) move Xmonad repo to github. this may sound heretical, but a lot of
 people (me included) are put off by Darcs. Git and github is such an
 effective tool that can't be ignored any longer. Furthermore, there is a
 lot of hype this days for osxmonad, which apparently build upon Xmonad,
 reusing it as much as possible. They are on github too. Working thightly
 with them we could create a family of product, with a bulk core
 (microkernel) and different adaption layer according to the Os (linux
 rather then mac os x)


Your fork could be a starting point, we could merge everything under one,
centralized repo on github, switching for a user based account to an
organization profile (XMonadWM or simply XMonad are two possible names, for
example).

As soon as I get a reply for Adam I'll inform you!

Bye!
A.


On 6 November 2012 12:23, Johan Brinch brin...@gmail.com wrote:

 On Mon, Nov 5, 2012 at 8: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 be good to have him listed in the Hackage package description,
 in
  order to contact him.
  Atm there is one generic email that seems not to be read very often :)
 

 Me and a couple others from the University of Copenhagen are running a
 fork of both XMonad and XMonadContrib here:
 https://github.com/reenberg/xmonad
 https://github.com/reenberg/XMonadContrib

 Jesper Reenberg is in charge and we're patching bugs in our spare
 time. We're both running this version daily (it's not bug free, but
 it's stable enough).

 --
 Johan Brinch

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 it would be beneficial for XMonad to merge efforts
 in one one point.
 For this reason I've contacted Adam (the current maintainer) and asked him
 if I could co-maintain XMonad.
 The point is trying to make all our efforts in only one point. This is an
 excerpt of what I've told him:

 Thanks for the quick reply. if you would like to, we can co-maintain
 Xmonad. I've been using it for six months now and became such an invaluable
 tool that Os X aqua interface sucks when I use it :)
 I will be pretty busy until the end of the year, because I just landed a
 new job abroad and I'm in the process of relocating, bUt i'll have plenty
 of spare time this winter to hack on Xmonad.
 I have great plans for our lovely window manager, including:
 1) a new website, the current is nice but too geeky and old. Capturing
 user interest through a cool website is very important imho
 2) move Xmonad repo to github. this may sound heretical, but a lot of
 people (me included) are put off by Darcs. Git and github is such an
 effective tool that can't be ignored any longer. Furthermore, there is a
 lot of hype this days for osxmonad, which apparently build upon Xmonad,
 reusing it as much as possible. They are on github too. Working thightly
 with them we could create a family of product, with a bulk core
 (microkernel) and different adaption layer according to the Os (linux
 rather then mac os x)


 Your fork could be a starting point, we could merge everything under one,
 centralized repo on github, switching for a user based account to an
 organization profile (XMonadWM or simply XMonad are two possible names, for
 example).

 As soon as I get a reply for Adam I'll inform you!

 Bye!
 A.


 On 6 November 2012 12:23, Johan Brinch brin...@gmail.com wrote:

 On Mon, Nov 5, 2012 at 8: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 be good to have him listed in the Hackage package description,
 in
  order to contact him.
  Atm there is one generic email that seems not to be read very often :)
 

 Me and a couple others from the University of Copenhagen are running a
 fork of both XMonad and XMonadContrib here:
 https://github.com/reenberg/xmonad
 https://github.com/reenberg/XMonadContrib

 Jesper Reenberg is in charge and we're patching bugs in our spare
 time. We're both running this version daily (it's not bug free, but
 it's stable enough).

 --
 Johan Brinch



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2012-11-06 Thread Alfredo Di Napoli
You have catch all my points, good to see what there is someone who agrees
with me :)
I don't care who is the maintainer either, because a community-driven repo
on github would be a great deal more effective.
After all, the maintainer is the person that updates and push the package
on Hackage, keep it updated and so on and so forth.
Is the social coding era, I think these are all tasks that could be
performed by the XMonad community :)

As soon as I get info from Adam I'll keep you posted :)
A.

On 6 November 2012 12:40, Johan Brinch brin...@gmail.com wrote:

 On Tue, Nov 6, 2012 at 12:33 PM, 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 ;-)
 Maybe you should also check the IRC channel? #xmonad at freenode.
 There's a lot of people in there.

 I agree, that it would be good to merge the repositories, and I'd
 prefer GitHub for hosting. I don't care who's the maintainer, except
 it should be someone who's available and has the time and interest (a
 fellow user).

 Whether it's our repository or somewhere else, I don't really care, as
 long as we can commit to it without too much hassle. Maybe we could
 finally get those bugs in core fixed ;-)

 Anyway, let me know when you hear something.

 --
 Johan Brinch

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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? If yes, who is the current maintainer?
 It would be good to have him listed in the Hackage package description, in
 order to contact him.
 Atm there is one generic email that seems not to be read very often :)

 Cheers,
 A.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2012-11-05 Thread Alfredo Di Napoli
Hey Roman,
thanks for the tip. I will also try on the irc channel, hoping to find
someone :)

Cheers,
A.

On 5 November 2012 15:45, Roman Cheplyaka r...@ro-che.info wrote:

 The generic email (xmo...@haskell.org) is the xmonad mailing list [1].
 However, if you are not subscribed, your emails 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 Di Napoli alfredo.dinap...@gmail.com
 wrote:
 
   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
 description, in
   order to contact him.
   Atm there is one generic email that seems not to be read very often :)

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 description, in
order to contact him.
Atm there is one generic email that seems not to be read very often :)

Cheers,
A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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:

 For a project I'm working on, I got sick of writing out trees by hand.
  Data.Tree has a drawTree function, but whilst it's better than
 nothing, I prefer a more top-down traditional approach to drawing
 trees.

 So I wrote a package to do just that:
 http://hackage.haskell.org/package/pretty-tree

 (I didn't think to check whether diagrams had capabilities to do so
 until after I finished, though in this case I prefer a textual
 approach anyway.)

 I'm more than happy to consider adding other forms of drawing trees
 (though off-hand I can't think of any), or of course you can send me
 patches since I'm taking advantage of the nice new shiny hub.darcs.net
 (thanks Darcs team!).

 I was going to put an example here but it only really comes out nicely
 if you're using a monospaced font, so have a look at the Haddock docs
 for the module once Hackage builds it (in hindsight, I should probably
 have come up with better labels before releasing the package... oh
 well :)

 --
 Ivan Lazar Miljenovic
 ivan.miljeno...@gmail.com
 http://IvanMiljenovic.wordpress.com

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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

2012-10-24 Thread Alfredo Di Napoli
Thanks guys for the clarification, this blowed my mind a bit :P
As far as I understood, is that my initial thought about Sum and Product
was wrong; in fact, they don't even participate to the party!
This is confirmed by the Oleg's paradox about (-).
What really happens is that Endo (which I guess 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...@gmail.com
  Subject: [Haskell-cafe] A clarification about what happens under the
  hoodwith foldMap
 
  I'm sure I'm missing a point, but the minimum definition for a Foldable
  instance is given in terms of foldMap, so I get the cake for free, foldr
  included, right?
  In the example I have defined my treeSum as:
 
  treeSum = Data.Foldable.foldr (+) 0
 
  So the only thing Haskell knows it that I want to fold over a Foldable
 for
  which foldMap (and therefore foldr) is defined, and specifically I want
 to
  fold using (+) as function.
  But foldMap is defined in terms of f, which in this case is Sum, because
 I
  want to sum things. It it were (*) f would have been Product, right?
 
  So what I'm missing is the relation between foldMap and foldr, aka How
  Haskell infer from (+) that I want f = Sum and not something different?

 What you're missing is that this isn't how foldr is defined.  As you
 probably suspect, it isn't possible for Haskell to deduce f = Sum
 from just the function.  And in general the function parameter to
 foldr isn't even equivalent to mappend for any monoid, because it
 operates on two values with different types.  Rather, foldr is defined
 using the Endo monoid, which is

  newtype Endo a = Endo (a - a)

 instance Monoid (Endo a) where
 mempty = id
 mappend = (.)

 Here's the default instance of Data.Foldable.foldr

  foldr :: (a - b - b) - b - t a - b
  foldr f z t = appEndo (foldMap (Endo . f) t) z

 What happens is that, as the tree is traversed, Leaf constructors are
 replaced with 'id' (mempty :: Endo b), and branch values are replaced
 with 'Endo . f', where f = (+) in this example.  Look at Endo . f:

 -- Endo :: (b - b) - Endo b
 -- f :: a - (b - b)
 -- Endo . f :: a - Endo b

 so at each branch (Endo . f) is applied to the value, resulting in the
 type 'Endo b'

 foldMap just composes everything together with mappend, which, after
 the Endo constructor is removed, is a giant function pipeline :: b -
 b, which is then applied to the provided base value (0 here).

 John L.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 release:
 
 Since Cabal-1.16.0.1:
 
 * Bump Cabal version number to 1.16.0.2
 * Fixed warnings on the generated Paths module. The warnings are
 generated by the flag '-fwarn-missing-import-lists'.
 
 Since cabal-install-1.16.0:
 
 * Have bootstrap.sh use Cabal-1.16.0.2
 * Fix installing from custom folder on Linux (#1058)
 * Change bootstrap.sh to require Cabal = 1.16   1.18
 * Bump cabal-install version number to 1.16.0.1
 * Bump network dependency in bootstrap.sh to 2.3.1.1
 * Fix compilation error
 * Disable setting the jobs: $nprocs line in default ~/.cabal config
 * Fix building cabal-install with ghc-6.12 and older
 
 I expect this to be the last release from the 1.16 branch. I intend to
 make another in about 3 months, or a bit sooner if the sandboxing work
 is ready earlier.
 
 Cheers,
 Johan
 
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 (Node l p r) = foldMap f l `mappend` f p `mappend` foldMap f r

treeSum :: Tree Int - Int
treeSum = Data.Foldable.foldr (+) 0


What this code does is straighforward. I was struck from the following
sentences in LYAH:

Notice that we didn't have to provide the function that takes a value and
 returns a monoid value.
 We receive that function as a parameter to foldMap and all we have to
 decide is where to apply
 that function and how to join up the resulting monoids from it.


This is obvious, so in case of (+) f = Sum, so f 3 = Sum 3 which is a
Monoid.
What I was wondering about is how Haskell knows that it has to pass, for
example, Sum in case of (+) and Product in case of (*)?
In other term, I'm missing the logical piece of the puzzle which maps the
associative binary function passed to fold up to our foldMap declaration.

Thanks for any explanation :)

Cheers,
A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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, but the minimum definition for a Foldable
instance is given in terms of foldMap, so I get the cake for free, foldr
included, right?
In the example I have defined my treeSum as:

treeSum = Data.Foldable.foldr (+) 0

So the only thing Haskell knows it that I want to fold over a Foldable for
which foldMap (and therefore foldr) is defined, and specifically I want to
fold using (+) as function.
But foldMap is defined in terms of f, which in this case is Sum, because I
want to sum things. It it were (*) f would have been Product, right?

So what I'm missing is the relation between foldMap and foldr, aka How
Haskell infer from (+) that I want f = Sum and not something different?

I hope to have been clearer, don't know if I'm missing something crucial,
though :)

Thanks,
A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 cla...@mathr.co.uk wrote:

 Hi Janek,


 On 18/10/12 10:23, Janek S. wrote:

 during past few days I spent a lot of time trying to figure out how to
 write Criterion benchmarks,
 so that results don't get skewed by lazy evaluation. I want to benchmark
 different versions of an
 algorithm doing numerical computations on a vector. For that I need to
 create an input vector
 containing a few thousand elements. I decided to create random data, but
 that really doesn't
 matter - I could have as well use infinite lists instead of random ones.


 [snip]


  The question is how to generate data so that its evaluation won't be
 included in the benchmark.


 Something like this might work, not sure what the canonical way is.

 ---8---
 main = do
   ...
   let input = L.dataBuild gen
   evaluate (rnf input)
   defaultMain
  ...
  bench Lists $ nf L.benchThisFunction input
  ...
 ---8---

 I did use something like this in practice here:

 https://gitorious.org/bitwise/**bitwise/blobs/master/extra/**
 benchmark.hs#line155https://gitorious.org/bitwise/bitwise/blobs/master/extra/benchmark.hs#line155

 Thanks,


 Claude
 --
 http://mathr.co.uk


 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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)
import Data.ByteString.Char8 as CB


{- | Converts a Char to a Word8. Took from MissingH -}
c2w8 :: Char - Word8
c2w8 = fromIntegral . fromEnum


charRangeStart :: Word8
charRangeStart = c2w8 'a'
{-# INLINE charRangeStart #-}

charRangeEnd :: Word8
charRangeEnd = c2w8 'z'
{-# INLINE charRangeEnd #-}

--genString :: Gen RealWorld - IO B.ByteString
genString g = do
randomLen - uniformR (50 :: Int, 450 :: Int) g
str - replicateM randomLen $ uniformR (charRangeStart, charRangeEnd) g
return $ B.pack str


writeCorpus :: FilePath - IO [()]
writeCorpus file = withFile file WriteMode $ \h - do
  let size = 10
  _ - withSystemRandom $ \gen -
  replicateM size $ do
text - genString gen :: IO B.ByteString
CB.hPutStrLn h text
  return [()]

main :: IO [()]
main =  writeCorpus test.txt



A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 if the inlines helps, though:
 
 
  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
 ...
 
 Wow, haskell-cafe is a wonderful place! In just a two hours program run time 
 automagically improved 20x ;) Thanks Alfredo, code works wonderful. Compared 
 to mine implementation it's 2.5 sec vs 50 sec on my laptop. Interesting, how 
 it compares to C now.
 
 Inlining makes about 50x difference when code compiled without optimization. 
 A nice example.
 
 Best wishes,
 Dmitry
 

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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,
or the number of lines of the entire file.

I've tried it first on a small file (~100MB) and then on a huge one (~3GB).
As far as I understood Iteratee IO should be a smart way to do IO,
avoiding to keep the entire file in memory; what I observe in the second
case, instead, is a sort of memory leak. The memory grows and grows
until the entire machine hangs.

If I split the huge file in small chunks, memory comsumption is still
high but the computation terminates and is fast.

So my two questions:

a) What am I missing? Should be memory used be constant? And how can I
achieve this purpose?
b) I'm using the package enumerator because as far as I can see is the most
used. How does it compares with iteratee? Which of the two are more
performant?


Bye and thanks,
A.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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:  https://github.com/feuerbach/test-framework-golden
 
 Golden tests are similar to unit tests (as implemented in HUnit), but the idea
 is to store the expected result in files (called «golden» files).
 
 I was introduced to the idea of golden testing by Bohdan Vlasyuk at ZuriHac in
 2010. Since then I've discovered that this is a nice approach and it is 
 already
 used in variety of projects (e.g. ghc, haddock).
 
 Surprisingly, not much is written about golden testing, and I've been unable 
 to
 find any golden testing libraries for Haskell or any other programming 
 language.
 Every project has its own ad-hoc implementation in Haskell/Python/Shell/etc.
 
 The closest match on the market is Simon Michael's shelltestrunner. But to use
 it you have to expose the tested functionality via command line, which may be
 inconvenient.
 
 So this is my attempt at a general golden testing library.
 
 It consists of two modules.
 Test.Golden has a simple interface that helps you get started very quickly. 
 Test.Golden.Advanced provides a very generic testing function that you can use
 to implement the testing system you dream about.
 
 The library is integrated with test-framework, so you can use golden tests in
 addition to SmallCheck/QuickCheck/HUnit tests.
 
 In future there's a plan to support some golden test management capabilities.
 
 Roman
 
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 = second $ arr fst


It works but requires to pass a tuple of tuple, namely ((b,c), (b,c)).
How can I explicitly pass my tuple of tuple to swapFirst so I can simply
invoke

swapA' (1,2)


and get the correct result?

ps. I know that swap can be easily and elegantly be written as:

swap = snd  fst


but the point of the exercise was to experiment with first, second and
arrow concatenation

Thanks in advance,
Alfredo
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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  = first $ arr snd
swapSecond = second $ arr fst

 where the question marks indicate that I don't know how to tell swapFirst
hey, even though from the outside
I'm passing you a tuple *t*, you have to take as input a (t,t).

Hope this is clearer or it has some sense at all, maybe I'm not getting
correctly the way arrows work!

bye,
A.


Like this?

   swapA' = dup  swapFirst  swapSecond
 where
   dup = id  id
   ...

 I'm afraid I'm not confident I really understand your question,
 however, so if that doesn't answer it, try asking again!

 -Brent

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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, after reading that functions are arrows:
 
  swapA' t = (swapFirst  swapSecond) (t,t)
where
  swapFirst  = first snd
  swapSecond = second fst

 No, that's not a solution, unless a = (-) is acceptable.  This code is
 specific to the function arrow.


 Greets,
 Ertugrul

 --
 Key-ID: E5DD8D11 Ertugrul Soeylemez e...@ertes.de
 FPrint: BD28 3E3F BE63 BADD 4157  9134 D56A 37FA E5DD 8D11
 Keysrv: hkp://subkeys.pgp.net/

___
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-14 Thread Alfredo Di Napoli
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 that the new session is
launched within the running tmux 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:

 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 above descrtiption) that would be
 
  urxvt --hold -e sh -c 'echo a'
 
  --
  brandon s allbery
 allber...@gmail.com
  wandering unix systems administrator (available) (412) 475-9364vm/sms

___
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-14 Thread Alfredo Di Napoli
Sorry the typo, the variable is $TMUX and controls the nesting ot tmux
session. It turns out that if affect not only urxvt but also xterm and
gnome-terminal.
Perhaps it could be useful to unset it programmatically, I'll keep you
posted if I find a workaround.

A.

On 14 September 2012 06:14, 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 that the new session is
 launched within the running tmux 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:

 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 above descrtiption) that would be
 
  urxvt --hold -e sh -c 'echo a'
 
  --
  brandon s allbery
 allber...@gmail.com
  wandering unix systems administrator (available) (412) 475-9364vm/sms



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 startup the right ghci instance. This
means that if you have installed only some packages in your sandbox env,
you will have them available inside ghci :)

Feedback are welcome, as always.

A.
___
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-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 misusing it.

 Yes, I also usually keep ghci in a separate window (and I am an xmonad
 user, too). I just thought that this offers a different experience and
 wanted to try it out.

 Anyway, thanks for clarifying.


___
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-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
other shells. Using the command you gave me does not create a new window,
tested both on XMonad and Gnome. This is
the error you can see using the option -hold, this way:

 urxvt --hold -e echo a

This opens a new window with the error: *urxvt: Unable to exec child.
*
Any idea?
___
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-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 above descrtiption) that would be
 
 urxvt --hold -e sh -c 'echo a'
 
 -- 
 brandon s allbery  allber...@gmail.com
 wandering unix systems administrator (available) (412) 475-9364 vm/sms

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 it with only few keystrokes. The
plugin also supports visual selection: you can select for example a
function (even with all its signature!)
and you can send it to ghci. The visual selection supports imports, custom
types and typeclasses.

It's a simple idea but so damn useful, imho.

This release also adds the possibility to prettify the code using the
excellent stylish-haskell: select a snippet, simply indent in the usual way
( = ) and voilà, now
your code is indented!

Feedback are highly appreciated, as well as contributions.
There are still some issues with some terminals (for example urxvt does not
work right now) but the plugin has been tested against gnome-terminal,
xterm and mlterm.

I'll post in reddit too for completeness!

Bye!
Alfredo
___
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
Hi, 

I'm not in front of the pc now, but afair the problem was related to opening a 
new urxvt window FROM a running urxvt. 
More details soon :)

Sent from my iPad

On 12/set/2012, at 15:18, Matvey Aksenov matvey.akse...@gmail.com wrote:

 Are urxvt-related issues documented somewhere?
 
 On 09/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
Could you please tell me what your desired behaviour would be?
In praticular, do you want a ghci session in another tab or in a tmux pane 
perhaps?
Otherwise I can't see any viable way to let vim and ghci cooperate inside the 
SAME window.

Bye,
Alfredo

Sent from my iPad

On 12/set/2012, at 17:05, 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...@gmail.com wrote:
 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 it with only few keystrokes. The plugin 
 also supports visual selection: you can select for example a function (even 
 with all its signature!)
 and you can send it to ghci. The visual selection supports imports, custom 
 types and typeclasses.
 
 It's a simple idea but so damn useful, imho. 
 
 This release also adds the possibility to prettify the code using the 
 excellent stylish-haskell: select a snippet, simply indent in the usual way ( 
 = ) and voilà, now
 your code is indented!
 
 Feedback are highly appreciated, as well as contributions.
 There are still some issues with some terminals (for example urxvt does not 
 work right now) but the plugin has been tested against gnome-terminal, xterm 
 and mlterm.
 
 I'll post in reddit too for completeness!
 
 Bye!
 Alfredo
 
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe
 
 
___
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
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 a warning about it in the xmonad documentation as well since it messes
 up ManageHooks).  There's possibly some option to disable this and force an
 independent terminal.
 
 -- 
 brandon s allbery  allber...@gmail.com
 wandering unix systems administrator (available) (412) 475-9364 vm/sms

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[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 functional programming, especially 
Haskell. FP is my true passion and I'm another dreamer trying to land the
job he loves.

In a nutshell I'm looking for every possibility to do Haskell/functional
programming in Europe/North Europe. I'm throwing this stone into this pond
because life has endless possibilities, who knows? :)

A disclaimer, though: I'm not an expert Haskeller, but I'm very passionate
about technology and I love learning (I've obviously already read LYAH and
RWH). You can find more information about me (including my CV if interested)
here:

www.alfredodinapoli.com

Oh! One last thing! I would be very grateful to everyone willing to spent
two minutes of his time giving me any kind of suggestion about the FP job
world or how to prepare/improve myself for the foreseeable future.

Thanks again,
and sorry for the OT/spammish plug.

Humbly,
Alfredo Di Napoli

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 [1], while the code can be
 found on GitHub [2].
 
 Cheers,
 
 Gergely
 
 [1] http://lambdacube3d.wordpress.com/
 [2] https://github.com/csabahruska/lc-dsl
 
 -- 
 http://www.fastmail.fm - The professional email service
 
 
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 GHC 7.4.2 and 2.11.0 which comes with the new
 GHC 7.6.1!

 
 -- Changes in version 2.12.0
 

  * Labeled URLs (e.g http://example.net/ some label)

  * Improved memory usage (new dependency: deepseq)

 
 -- Changes in version 2.11.0
 

  * Show deprecation messages for identifiers

  * List identifiers declared on the same line (with a common type)
 separately

  * Don't crash on unicode strings in doc comments

  * Fix reporting of modules safe haskell mode

  * Fix a case where we were generating invalid xhtml

  * Improved --qual option (no crashes, proper error messages)

  * A new --qual option aliased which qualifies identifers by the module
 alias
used in the source code

  * The Haddock API restores GHC's static flags after invocation

  * Access to unexported identifiers through the Haddock API again

 
 -- Links
 

 Homepage:
  http://www.haskell.org/haddock

 Hackage page:
  http://hackage.haskell.org/package/haddock-2.12.0

 Bugtracker and wiki:
  http://trac.haskell.org/haddock

 Mailing list:
  hadd...@projects.haskell.org

 Code repository:
  http://darcs.haskell.org/haddock.git

 
 -- Contributors
 

 The following people contributed patches to this release:

 Paolo Capriotti
 Simon Hengel
 Ian Lynagh
 Simon Peyton Jones
 Iavor S. Diatchki
 David Terei
 Henning Thielemann
 David Waern

 
 -- Get Involved
 

 We would be very happy to get more contributors. To get involved, start by
 grabbing the code:

  http://darcs.haskell.org/haddock.git

 Then take a look at the bug and feature tracker for things to work on:

  http://trac.haskell.org/haddock

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 working with regular arrangements of tiles, such as
 might be used in a board game or self-organising map (SOM). Grid currently
 supports triangular, square, and hexagonal tiles, with various 2D and
 toroidal
 layouts. If you need a tile shape or layout that isn't currently provided,
 please let me know. See Math.Geometry.Grid for an example of how to use the
 package. Suggestions for improvement are welcome.


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe