[Haskell] ANNOUNCE: fugue

2012-09-07 Thread Alec
Hi all, Fugue is (yet) another contribution to the thriving cottage industry of alternate preludes. The goals for this one include minimal dependencies (currently nothing outside of base), minimal new functionality (there is, as yet, not a single line of original code other than module import and

Re: [Haskell] -compiler-options vs {#-LANGUAGE Flags-#}

2007-03-23 Thread Alec Berryman
S. Alexander Jacobson on 2007-03-23 17:16:26 -0400: > The correct answer, I believe, is to require that module authors put > flags in the module themselves where they belong. Does the OPTIONS_GHC pragma solve your issue? http://www.haskell.org/ghc/docs/latest/html/users_guide/using-ghc.html#sour

Re: differentiation. Reply

2002-01-09 Thread Alec
On Wednesday 09 January 2002 10:59 am, you wrote: > diff f x = (f (x + epsilon) - f (x - epsilon)) / (2 * epsilon) >where epsilon = 0.1 > > every call to say "diff sin" will cost you about as much as every call to > "sin" s/every call to "

Re: differentiation. Reply

2002-01-09 Thread Alec
re supposed to be > differentiated. > how about this: diff f x = (f (x + epsilon) - f (x - epsilon)) / (2 * epsilon) where epsilon = 0.1 every call to say "diff sin" will cost you about as much as every call to "sin" HTH Alec ___