Re: [Haskell-cafe] Makefile for a Haskell Project

2012-12-27 Thread Scott Lawrence
On Fri, 28 Dec 2012, xuan bach wrote: Hi Scott, Thanks for your kind comment. By the way, is it possible to use ghc --make for my project including some external libraries and tools such as happy, Parsec and haskell stub calling C library? I'm not sure about happy and foreign interfaces - as

Re: [Haskell-cafe] Makefile for a Haskell Project

2012-12-27 Thread xuan bach
Hi Scott, Thanks for your kind comment. By the way, is it possible to use ghc --make for my project including some external libraries and tools such as happy, Parsec and haskell stub calling C library? I also tried out cabal to build my project but it seems quite complicated to use. Best Regard

Re: [Haskell-cafe] Makefile for a Haskell Project

2012-12-27 Thread Scott Lawrence
On Fri, 28 Dec 2012, xuan bach wrote: Hi everyone, I'm a newbie in Haskell. I'm wondering that if there is any tool support creating Makefile for Haskell project like Ocamlbuild for Ocaml project? Since ghc handles dependencies automatically, I usually just do, all: g

Re: [Haskell-cafe] Documentation operator

2012-12-27 Thread Michael Sloan
I also like this idea a lot! Here're a couple more benefits: 1) This makes it possible to generate documentation from TH - quite handy for things like lens generation / Yesod-like DSLs. 2) The annotation can aid automatically determining how an API has changed. I have a WIP tool[1] that tries to

Re: [Haskell-cafe] my Fasta is slow ;(

2012-12-27 Thread Branimir Maksimovic
Thank you. Your entry is great. Faster than fortran entry!Dou you want to contribute at the site, or you want me to do it for you? Date: Thu, 27 Dec 2012 15:58:40 -0800 Subject: Re: [Haskell-cafe] my Fasta is slow ;( From: b...@serpentine.com To: bm...@hotmail.com CC: haskell-cafe@haskell.org On

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

2012-12-27 Thread Artyom Kazak
You could create a new thread which would be 'forever' executing your extensive computation and updating some IOVar accordingly. The drawing function would do nothing except reading that IOVar and displaying its contents. Since drawing is cheap, this can be done at any reasonable rate. 28.12.2012 3

[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 deta

Re: [Haskell-cafe] my Fasta is slow ;(

2012-12-27 Thread Bryan O'Sullivan
On Tue, Dec 18, 2012 at 12:42 PM, Branimir Maksimovic wrote: > > Seems to me that culprit is in function random as I have tested rest of > code > and didn't found speed related problems. > The problem with your original program was that it was not pure enough. Because you stored your PRNG state

Re: [Haskell-cafe] Non polymorphic numerals option -- avoiding type classes

2012-12-27 Thread Kim-Ee Yeoh
On Thu, Dec 27, 2012 at 11:48 PM, Rustom Mody wrote: > On Thu, Dec 27, 2012 at 8:26 PM, Kim-Ee Yeoh wrote: >> What he really wants methinks is a way to suppress type classes altogether! That or a NoOverloadedNumerals extension. > > I'm not really sure about that... Look! > > Prelude> :t [[1,2],3]

Re: [Haskell-cafe] Documentation operator

2012-12-27 Thread Clark Gaebel
I love the idea, but it seems like it's a bit too early in Haskell's life to implement it. Not everyone's on GHC 7.6.1+. - Clark On Thu, Dec 27, 2012 at 3:20 PM, Iavor Diatchki wrote: > Hi, > > I think that this is a neat idea that should be explored more! GHC's > parser has a bunch of awkw

Re: [Haskell-cafe] Documentation operator

2012-12-27 Thread Iavor Diatchki
Hi, I think that this is a neat idea that should be explored more! GHC's parser has a bunch of awkward duplication to handle attaching documentation to types, and it'd be cool if we could replace it with an actual language construct. Happy holidays! -Iavor On Wed, Dec 26, 2012 at 3:27 AM, Chri

[Haskell-cafe] Decent docs to my visualization tools

2012-12-27 Thread Eugene Kirpichov
Hi cafe, I just finally published a decent documentation website and binary distributions for my log visualization tools written in Haskell - http://jkff.info/software/timeplotters/ . I think now they might actually stand a chance of starting to be adopted by a wider circle than my friends :) Fe

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 amindfv
Thanks, this is great! Tom Sent from my iPhone On Dec 26, 2012, at 7:43 PM, Christopher Done 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 ses

Re: [Haskell-cafe] Non polymorphic numerals option -- avoiding type classes

2012-12-27 Thread Roman Cheplyaka
Forgot to say: if you go the first route, you'll also need to define your fromInteger in every module — the one from .ghci won't be in scope. You can define module MyPrelude (module Prelude, fromInteger) where import Prelude hiding (fromInteger) fromInteger = id and import it instead. *

Re: [Haskell-cafe] Non polymorphic numerals option -- avoiding type classes

2012-12-27 Thread Roman Cheplyaka
* Rustom Mody [2012-12-27 22:18:15+0530] > But now we are in for new surprises: Try out > f x y = x / y > Prelude> :l f > [1 of 1] Compiling Main ( f.hs, interpreted ) > > f.hs:1:11: Not in scope: `/' > Failed, modules loaded: none. > Prelude> (/) It's because RebindableSyntax impli

Re: [Haskell-cafe] Non polymorphic numerals option -- avoiding type classes

2012-12-27 Thread satvik chauhan
I don't know about the RebindableSyntax extension. But Prelude> :t [[1,2],3] [[1,2],3] :: (Num [t], Num t) => [[t]] The above only says that is is possible to have a list like [[1,2],3] if you have for a Num t, [t] is also an instance of Num. But it doesn't guarantee the existence of such an ins

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

Re: [Haskell-cafe] Non polymorphic numerals option -- avoiding type classes

2012-12-27 Thread Rustom Mody
On Thu, Dec 27, 2012 at 8:26 PM, Kim-Ee Yeoh wrote: > Hi David, it looks like Rustom's aware that haskell's not lisp. What he > really wants methinks is a way to suppress type classes altogether! That or > a NoOverloadedNumerals extension. > > -- Kim-Ee > > I'm not really sure about that... Look!

Re: [Haskell-cafe] Virthualenv/HsEnv in Windows

2012-12-27 Thread Taylor Hedberg
Kyle Hanson, Mon 2012-12-24 @ 15:49:44-0600: > Has anyone gotten this to work on Windows either native or on cygwin? > Is there an alternative? It may work on Cygwin, but I know for sure that it wouldn't run natively on Windows, as part of hsenv's functionality involves generating and executing ba

Re: [Haskell-cafe] Non polymorphic numerals option -- avoiding type classes

2012-12-27 Thread Kim-Ee Yeoh
Hi David, it looks like Rustom's aware that haskell's not lisp. What he really wants methinks is a way to suppress type classes altogether! That or a NoOverloadedNumerals extension. -- Kim-Ee On Thu, Dec 27, 2012 at 4:03 PM, David Virebayre wrote: > Prelude> :t [[1,2],3] > > you have a list wi

Re: [Haskell-cafe] Non polymorphic numerals option -- avoiding type classes

2012-12-27 Thread David Virebayre
Prelude> :t [[1,2],3] you have a list with 2 elements: - [1,2] - 3 the type of [1,2] is [Integer] the type of 3 is Integer But all elements in a list must have the same type. 2012/12/27 Rustom Mody : > > > On Thu, Dec 27, 2012 at 1:48 AM, Roman Cheplyaka wrote: >> >> * Rustom Mody [2012-12

Re: [Haskell-cafe] Type error when trying to adapt http-proxy to new conduit

2012-12-27 Thread Michael Snoyman
On Thu, Dec 27, 2012 at 9:42 AM, Erik de Castro Lopo wrote: > Pieter Laeremans wrote: > > > Hi, > > > > The http-proxy package isn't compatible any longer with the latest > > conduit. Since it is open source, I thought, I might as well try to adapt > > it and submit a patch. > > Have you looked i

Re: [Haskell-cafe] ANNOUNCE: Haskell BOF on 29c3 in Hamburg, Germany

2012-12-27 Thread koomi
Hey, sounds interesting, I'll be there :) Also, HTML in the description doesn't seem to work, you might want to add the links as footnotes or something. Koomi ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo