Re: [Haskell-cafe] Possible floating point bug in GHC?

2009-04-03 Thread Zachary Turner
What floating point model is your DLL compiled with? There are a variety of different options here with regards to optimizations, and I don't know about the specific assembly that each option produces, but I know there are options like Strict, Fast, or Precise, and maybe when you do something like

Re: [Haskell-cafe] Wishful thinking: a text editor that expands function applications into function definitions

2009-04-02 Thread Zachary Turner
On Thu, Apr 2, 2009 at 9:33 PM, Michael Snoyman wrote: > > > 2009/4/3 Duane Johnson > >> Perhaps it wouldn't be as all-wonderful as I think, but as a "new" Haskell >> user, I am constantly switching back and forth between various definitions >> of things trying to compare documentation and files

Re: [Haskell-cafe] Wishful thinking: a text editor that expands function applications into function definitions

2009-04-02 Thread Zachary Turner
It seems like a neat feature, and it could just be my inexperience with Haskell but it doesn't seem "killer". For example, why would you want to expand readLine like that if you already have it defined? It seems to defeat much of the benefit of functional languages in the first place, which is th

[Haskell-cafe] Building GHC under cygwin

2009-03-28 Thread Zachary Turner
Has anyone had any luck building a windows version of GHC under cygwin? I followed the instruction on the building guide to build it under MinGW/msys, which works, but when I try to build it under cygwin instead of msys I get this: cabal-bin.exe: Cannot find the program 'ghc' at '/cygdrive/c/dev/

Re: [Haskell-cafe] about Haskell code written to be "too smart"

2009-03-25 Thread Zachary Turner
On Tue, Mar 24, 2009 at 10:32 PM, wren ng thornton wrote: > Both of these conclusions seem quite natural to me, even from before > learning Haskell. It seems, therefore, that "naturality" is not the proper > metric to discuss. It's oft overlooked, but the fact is that expressivity > comes not from

Re: [Haskell-cafe] about Haskell code written to be "too smart"

2009-03-24 Thread Zachary Turner
On Tue, Mar 24, 2009 at 4:11 PM, Manlio Perillo wrote: > Conal Elliott ha scritto: > >> Another helpful strategy for the reader is to get smarter, i.e. to invest >> effort in rising to the level of the writer. Or just choose a different >> book if s/he prefers. - Conal >> >> > This strategy is

Re: [Haskell-cafe] Crash in GHCI - what is the correct behavior here?

2009-03-18 Thread Zachary Turner
On Wed, Mar 18, 2009 at 11:46 PM, Luke Palmer wrote: > 2009/3/18 Zachary Turner > >> Basically just learning haskell, I would have posted this in the beginners >> list but since it involves a segfault of GHCI, I figured it might be worth >> posting here. >>

[Haskell-cafe] Crash in GHCI - what is the correct behavior here?

2009-03-18 Thread Zachary Turner
Basically just learning haskell, I would have posted this in the beginners list but since it involves a segfault of GHCI, I figured it might be worth posting here. I was trying to get a good understanding of local variable scoping issues, so I tried the following: f :: (Num a) => a -> a f x =

Re: [Haskell-cafe] Fw: hw do i solve this problems:

2009-03-18 Thread Zachary Turner
2009/3/18 THANDO NTUANE > > > - Forwarded Message > *From:* THANDO NTUANE > *To:* Haskell-Cafe@haskell.org > *Sent:* Thursday, March 19, 2009 10:22:40 AM > *Subject:* hw do i solve this problems: > > kindly help me.. > im stack but managed to solve exercise 1 and 2. > I feel like this

Re: [Haskell-cafe] Haskell Style - Pattern Matching with case vs. function declarations

2009-03-18 Thread Zachary Turner
On Wed, Mar 18, 2009 at 12:49 PM, Tom.Amundsen wrote: > > Hi All, > > I am new to Haskell. I just started reading "Real World Haskell" a few days > ago, so I apologize for being such a noob. > > But, I am curious why I see a lot of code where people do pattern matching > via multiple function decl