[Haskell] ANNOUNCE: Clipboard-2.2.0. System clipboard interface.

2011-05-30 Thread Daniel Díaz Casanueva
Hi all, I've just uploaded Clipboard-2.2.0 to Hackage [1]. Clipboard [2] is a library that provides an interface for the system clipboard. The API is very simple, so anyone can use it without knowing of low-level Win32 API. Currently, this library only works on a Windows OS, due to its

Re: [Haskell] [ANNOUNCE] JuicyPixels 1.0 - image loading library

2012-01-13 Thread Daniel Díaz Casanueva
Thanks for this upload! I searched something like this a time ago. I'll test it soon and, if I have any issue, send you some feedback. Thanks again for the work. I made a library to work with PPM images (not released to Hackage), but I'm glad to see a Haskell implementation of PNG and JPG. Good

Re: [Haskell] Haskell stars in experimental film

2013-01-02 Thread Daniel Díaz Casanueva
I am SO SCARED. ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] Invitation to connect on LinkedIn

2013-05-15 Thread Daniel Díaz Casanueva
LinkedIn Daniel Díaz Casanueva requested to add you as a connection on LinkedIn: -- Adrian, I'd like to add you to my professional network on LinkedIn. - Daniel Accept invitation from Daniel Díaz Casanueva http://www.linkedin.com

Re: [Haskell] Invitation to connect on LinkedIn

2013-05-15 Thread Daniel Díaz Casanueva
My apologies, it looks like this e-mail has been sent to all my contacts. My intention never was to reach the Haskell list. Sincerely, Daniel Díaz. On Wed, May 15, 2013 at 11:44 PM, Daniel Díaz Casanueva mem...@linkedin.com wrote: [image: LinkedIn Logo] http://www.linkedin.com

[Haskell-cafe] ANNOUNCE: Clipboard-2.2.0. System clipboard interface.

2011-05-30 Thread Daniel Díaz Casanueva
Hi all, I've just uploaded Clipboard-2.2.0 to Hackage [1]. Clipboard [2] is a library that provides an interface for the system clipboard. The API is very simple, so anyone can use it without knowing of low-level Win32 API. Currently, this library only works on a Windows OS, due to its

Re: [Haskell-cafe] Installing Gtk2Hs on Win32

2011-06-10 Thread Daniel Díaz Casanueva
Hi, Dmitri, here is newer guide, with updated links: http://deltadiaz.blogspot.com/2011/03/on-windows-how-to-install-gtk.html Hope it helps! On Fri, Jun 10, 2011 at 5:30 PM, Dmitri O.Kondratiev doko...@gmail.comwrote: Please help to find pre-compiled binary libraries of Gtk+ for Win32.

[Haskell-cafe] ANNOUNCE: HaTeX 3 - First release

2011-10-06 Thread Daniel Díaz Casanueva
Hello, folks! I have just released HaTeX 3 to Hackage: http://hackage.haskell.org/HaTeX It is a first version, not well documented yet, but now you can test it with a simple cabal install hatex. What is HaTeX? HaTeX consists in a set of combinators which allow you to build LaTeX code,

Re: [Haskell-cafe] ANNOUNCE: HaTeX 3 - First release

2011-10-06 Thread Daniel Díaz Casanueva
It seems there is an error in the hackage URL's. Working URL's: http://hackage.haskell.org/package/HaTeX http://hackage.haskell.org/package/HaTeX-meta Sorry! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] SSH in community.haskell.org

2011-10-13 Thread Daniel Díaz Casanueva
Hi Cafe! This is not actually a question about Haskell, but it is related. I sent my request and I have now an account in community.haskell.org. When I was going to use my project, I read these instructions: http://community.haskell.org/admin/using_project.html But I stopped in the first step

Re: [Haskell-cafe] SSH in community.haskell.org

2011-10-13 Thread Daniel Díaz Casanueva
Thanks JP and Ivan for the quick response! Anyway, it seems I lack the private key mentioned (all I have is the public key), and that sounds bad. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] SpecConstr message while compiling

2011-10-23 Thread Daniel Díaz Casanueva
Hi, cafe! I wrote a program and had the following message while compiling (with -O2): SpecConstr Function `addOc{v s6RL} [lid]' has four call patterns, but the limit is 3 Use -fspec-constr-count=n to set the bound Use -dppr-debug to see specialisations What it means? Is it

Re: [Haskell-cafe] SpecConstr message while compiling

2011-10-23 Thread Daniel Díaz Casanueva
notoriously, and I won't see changes in performance. But I will follow your pointers when necessary in the future. On Sun, Oct 23, 2011 at 7:50 PM, Daniel Fischer daniel.is.fisc...@googlemail.com wrote: On Sunday 23 October 2011, 19:33:55, Daniel Díaz Casanueva wrote: Hi, cafe! I wrote

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Daniel Díaz Casanueva
How about to a new optional Cabal field like mail-report? (don't bother about this name, I chose it randomly) If a build failure happens, or there is some relevant information about your package, Hackage will send a mail to the direction specified in that field. A field which content will NOT

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Daniel Díaz Casanueva
Then, the mailing list seems to be an option. But then I will receive mails for every package, and there is a lot of packages! Is not a lot of mails this? There is another work around? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] Overloaded Strings as default

2011-11-28 Thread Daniel Díaz Casanueva
Hi Cafe, I only feel curious about what would be the consequences of becoming the Overloaded Strings feature (currently, an extension) to be default in Haskell. This is not a proposal. I just want to know what pros and cons there are. Thanks! ___

[Haskell-cafe] ANNOUNCE: HaTeX 3.1.0 (and HaTeX-meta 1.1.0)

2011-12-09 Thread Daniel Díaz Casanueva
Hello Cafe! Today I released to Hackage a new version of the HaTeX package ( http://hackage.haskell.org/package/HaTeX-3.1.0 ). If you don't know HaTeX, it is a combinator library of the LaTeX syntax. Visit the homepage for more information: http://dhelta.net/hprojects/HaTeX Highlights: + Added

Re: [Haskell-cafe] [Haskell] [ANNOUNCE] JuicyPixels 1.0 - image loading library

2012-01-13 Thread Daniel Díaz Casanueva
Thanks for this upload! I searched something like this a time ago. I'll test it soon and, if I have any issue, send you some feedback. Thanks again for the work. I made a library to work with PPM images (not released to Hackage), but I'm glad to see a Haskell implementation of PNG and JPG. Good

[Haskell-cafe] [ANNOUNCE] HaTeX 3.2

2012-02-20 Thread Daniel Díaz Casanueva
Hello, A new version (3.2) of HaTeX has been released today to Hackage: http://hackage.haskell.org/package/HaTeX-3.2 HaTeX is the LaTeX language syntax implementation done in Haskell. Key changes in this version are: + LaTeX parser implemented (so new dependency on parsec). + Greek alphabet

[Haskell-cafe] Cabal try to install a package I already have

2012-04-29 Thread Daniel Díaz Casanueva
Hi Cafe, today I opened the command prompt and typed cabal install ftphs. Then I read: Resolving dependencies... Configuring network-2.3.0.5... And I started to feel confused. Because I already have installed that package with that version! I continued reading: cabal: The package has a

Re: [Haskell-cafe] Cabal try to install a package I already have

2012-04-29 Thread Daniel Díaz Casanueva
Indeed, it seems to be for parsec: ? ghc-pkg latest bytestring bytestring-0.9.1.10 ? ghc-pkg latest parsec parsec-3.1.2 Haskell Platform versions: bytestring-0.9.1.10, parsec-3.1.1. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Cabal try to install a package I already have

2012-04-29 Thread Daniel Díaz Casanueva
I have spent some time and, when I unregistered (with ghc-pkg unregister) all dependencies (even indirect dependencies) I have installed since I have the Haskell Platform, then the cabal install ftphs worked. Now I feel I understand the problem, but still seems annoying. Thanks for the pointer,

[Haskell-cafe] Announce: HaTeX 3.3

2012-04-29 Thread Daniel Díaz Casanueva
Greetings Haskellers! A new version of HaTeX is ready to use in Hackage: http://hackage.haskell.org/package/HaTeX-3.3 == Description == HaTeX is a heavily maintained LaTeX code parser/generator. Write LaTeX documents with all the advantages you already have in Haskell (recursion, type system,

Re: [Haskell-cafe] Problem with forall type in type declaration

2012-05-04 Thread Daniel Díaz Casanueva
If one parameter is not enough, you always can add more: Test m a b = Test { f :: m IO a - IO b } This way, if run :: m IO a - IO a then Test run :: Test m a a But for other type for your run function run' :: m IO a - IO b you get Test run' :: Test m a b So you can have different types

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-27 Thread Daniel Díaz Casanueva
This is something I always missed. Thank you! ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Gloss and relatively expensive computations

2012-12-27 Thread Daniel Díaz Casanueva
Hello cafe! I'm having some performance issues trying to use gloss to make animations where each model step is relatively time expensive. I'm using the IO.Simulate module because my step function needs to do an IO operation which takes around 1 second (it may vary). I will try to give some

Re: [Haskell-cafe] Gloss and relatively expensive computations

2012-12-30 Thread Daniel Díaz Casanueva
Hi Artyom! Thanks for your response. It seems your tactic has worked. I was so focused on programming inside the gloss parameter that I completely forgot about programming in the outside. Here is what I did (I picked MVar's): myprog s = do ... var - newMVar w0 let loop w = do w' - step

[Haskell-cafe] Object Oriented programming for Functional Programmers

2012-12-30 Thread Daniel Díaz Casanueva
Hello, Haskell Cafe folks. My programming life (which has started about 3-4 years ago) has always been in the functional paradigm. Eventually, I had to program in Pascal and Prolog for my University (where I learned Haskell). I also did some PHP, SQL and HTML while building some web sites,

[Haskell-cafe] Data.Sequence and replicateM

2013-01-24 Thread Daniel Díaz Casanueva
a - m (Seq a) g = Seq.replicateM Maybe is just in my test case, where the Int argument is big and the monadic action short, but it looks to me that Data.Sequence.replicateM can be faster than it is right now. Regards, Daniel Díaz. -- E-mail sent by Daniel Díaz Casanueva let f x = x in x

Re: [Haskell-cafe] Data.Sequence and replicateM

2013-01-24 Thread Daniel Díaz Casanueva
Good point. However, I forced the result to evaluate using `deepseq` and I still got similar results. On Thu, Jan 24, 2013 at 11:41 AM, Gershom Bazerman gersh...@gmail.comwrote: On 1/24/13 9:31 AM, Daniel Díaz Casanueva wrote: import Control.Monad import qualified Data.Sequence as Seq

Re: [Haskell-cafe] Data.Sequence and replicateM

2013-01-25 Thread Daniel Díaz Casanueva
f really is a kind of specialization of g. Could the reason for f performing better be list fusion? Anything happening inside Control.Monad.replicateM should be subject to it. Cheers, Thomas Am 24.01.2013 15:31, schrieb Daniel Díaz Casanueva: Hi Cafe, I was coding this morning when I

Re: [Haskell-cafe] Some aggregation of Haskell content

2013-02-10 Thread Daniel Díaz Casanueva
http://www.haskell.org/mailman/listinfo/haskell-cafe -- E-mail sent by Daniel Díaz Casanueva let f x = x in x ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] ANNOUNCE: HaTeX-3.5 - New version of the LaTeX library

2013-03-18 Thread Daniel Díaz Casanueva
sent by Daniel Díaz Casanueva let f x = x in x ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Haskell / Functional Programmers Group in Madrid (Spain)?

2013-04-10 Thread Daniel Díaz Casanueva
be. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- E-mail sent by Daniel Díaz Casanueva let f x = x in x ___ Haskell-Cafe mailing list Haskell

[Haskell-cafe] Building the Haskell Platform in Linux

2013-04-12 Thread Daniel Díaz Casanueva
by Daniel Díaz Casanueva let f x = x in x ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] NaN as Integer value

2013-04-13 Thread Daniel Díaz Casanueva
convenient to be able to handle (1 `div` 0) as regular NaN value and not as exception. Thanks. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- E-mail sent by Daniel Díaz Casanueva let f x

Re: [Haskell-cafe] Building the Haskell Platform in Linux

2013-04-14 Thread Daniel Díaz Casanueva
, Daniel Díaz Casanueva wrote: Hi cafe! Probably you all know how to do this, but I myself found confused when building the Haskell Platform in Linux for my first time. I was using Linux for my first time too! The first problem I encountered was to decide what linux packages install to make

Re: [Haskell-cafe] [Announcement] Sparse matrix Conjugate Gradient Solver

2013-04-14 Thread Daniel Díaz Casanueva
Díaz Casanueva let f x = x in x ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] list comprehension doesn't work

2013-05-14 Thread Daniel Díaz Casanueva
the Haskell - Haskell-Cafe mailing list archive at Nabble.com. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- E-mail sent by Daniel Díaz Casanueva let f x = x in x

Re: [Haskell-cafe] list comprehension doesn't work

2013-05-14 Thread Daniel Díaz Casanueva
Well, definitely, isSqrt should be called isSquare. On Tue, May 14, 2013 at 5:22 PM, Daniel Díaz Casanueva dhelta.d...@gmail.com wrote: You can always write it like this: listPairs = [ (x,y) | x - [6 .. 499] , y - [0 .. 1000] , isProduct x , isSqrt y , mod y x == 0 ] So you have

Re: [Haskell-cafe] list comprehension doesn't work

2013-05-14 Thread Daniel Díaz Casanueva
Díaz Casanueva let f x = x in x ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Good to find you on LinkedIn

2013-05-15 Thread Daniel Díaz Casanueva
LinkedIn Daniel Díaz Casanueva requested to add you as a connection on LinkedIn: -- Minh Thu, I'd like to add you to my professional network on LinkedIn. - Daniel Accept invitation from Daniel Díaz Casanueva http

Re: [Haskell-cafe] Good to find you on LinkedIn

2013-05-15 Thread Daniel Díaz Casanueva
My apologies, I don't know how this e-mail has reached the Haskell-Cafe. Sincerely, Daniel Díaz. On Wed, May 15, 2013 at 11:44 PM, Daniel Díaz Casanueva mem...@linkedin.com wrote: [image: LinkedIn Logo] http://www.linkedin.com/ Minh Thu, ** Daniel Díaz

[Haskell-cafe] Cabal config file Guide

2013-05-25 Thread Daniel Díaz Casanueva
Hello Cafe! As you already know, cabal-install is configured in the file config. It has a lot of fields, but I didn't find a single place where each field is explained with detail. Most of the options are trivial enough to understand what they do without previous explanation, but some of them

[Haskell-cafe] Fwd: Cabal config file Guide

2013-05-26 Thread Daniel Díaz Casanueva
Thank you, Albert, what you wrote is very useful. Why the Cabal Guide is lacking this kind of information? Maybe I should start gathering information in one place myself! Thank you, Daniel Díaz. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] ANNOUNCE: standalone-haddock-1.0

2013-06-07 Thread Daniel Díaz Casanueva
Hello Roman! Thank you, this is a great contribution. I found myself several times modifying the html output by hand in order to do exactly this. Nice! On Fri, Jun 7, 2013 at 2:15 PM, Roman Cheplyaka r...@ro-che.info wrote: I am happy to announce the first release of standalone-haddock.

[Haskell-cafe] ANN: HaTeX 3.6. Now with Babel, TikZ and more!

2013-06-25 Thread Daniel Díaz Casanueva
Hello everyone! It is time for a new release of HaTeX, the Haskell LaTeX library. http://hackage.haskell.org/package/HaTeX-3.6 == What is HaTeX? == HaTeX contains numerous types and functions that will assist you in the process of creating a LaTeX document within Haskell. You can also include

[Haskell-cafe] Custom Setup.hs and Paths module

2013-07-02 Thread Daniel Díaz Casanueva
Hi everyone. I am writing a package where I am using the Paths module that cabal generates automatically. After adding the Paths module to the other-modules section in my cabal file everything worked just fine, until I wanted to write a custom Setup.hs. This Setup.hs just writes a couple of files

Re: [Haskell-cafe] Custom Setup.hs and Paths module

2013-07-03 Thread Daniel Díaz Casanueva
, 2013 at 3:39 AM, Erik de Castro Lopo mle...@mega-nerd.comwrote: Daniel Díaz Casanueva wrote: Hi everyone. I am writing a package where I am using the Paths module that cabal generates automatically. After adding the Paths module to the other-modules section in my cabal file everything

[Haskell-cafe] Automatically test different versions of single dependency

2013-07-04 Thread Daniel Díaz Casanueva
Hello everyone. I would like to check what dependencies is one of my packages compatible with. For example, say I have a package called foo that depends on package bar. Most likely, foo does not build with each version of bar. What I want to do is try to build foo with each single version of bar

Re: [Haskell-cafe] Automatically test different versions of single dependency

2013-07-04 Thread Daniel Díaz Casanueva
, Daniel Díaz Casanueva dhelta.d...@gmail.com wrote: Hello everyone. I would like to check what dependencies is one of my packages compatible with. For example, say I have a package called foo that depends on package bar. Most likely, foo does not build with each version of bar. What I want

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

2013-08-16 Thread Daniel Díaz Casanueva
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

[Haskell-cafe] ANN: processing-1.2.0.0. Graphic web applications with processing.js.

2013-08-18 Thread Daniel Díaz Casanueva
Hello readers of Haskell-Cafe. Yesterday I uploaded a new version of the processing library [1]. == What is this library for? == The library is oriented to create graphic applications that run in a web browser, with no need of running a server. It provides the user with a set of functions and

[Haskell-cafe] Compiler stops at SpecConstr optimization

2013-08-29 Thread Daniel Díaz Casanueva
Hello. While hacking in one of my projects, one of my modules stopped to compile for apparently no reason. The compiler just freezes (like if it where in an infinite loop) while trying to compile that particular module. Since I had this problem I have been trying to reduce the problem as much as

Re: [Haskell-cafe] Compiler stops at SpecConstr optimization

2013-09-01 Thread Daniel Díaz Casanueva
Yes, that GHC ticket shows that this problem is well known. Thank you. On Fri, Aug 30, 2013 at 2:19 AM, Ben Lippmeier b...@ouroborus.net wrote: On 30/08/2013, at 2:38 AM, Daniel Díaz Casanueva wrote: While hacking in one of my projects, one of my modules stopped to compile for apparently