Re: [Haskell-cafe] Porting GHC to OSX86?

2006-05-10 Thread Scott Weeks
: GhcLibHcOpts = -O -fasm -keep-hc-files GhcRtsHcOpts = -fasm -keep-hc-files GhcWithInterpreter = NO GhcStage1HcOpts = -O GhcStage2HcOpts = -O -fasm -keep-hc-files SRC_HC_OPTS += -H32m -reilly hayes On May 5, 2006, at 7:34 PM, Scott Weeks wrote: Hi All, Does anyone know if there's been any

Re: [Haskell-cafe] Porting GHC to OSX86?

2006-05-05 Thread Scott Weeks
Hi All, Does anyone know if there's been any headway on this? If there's not a port available, where do I go about finding the hc files? Could I compile on a windows or linux x86 box and use the generated hc files to bootstrap? Cheers, Scott On 22/03/2006, at 7:09 AM, Deling Ren wrote:

[Haskell-cafe] Ambiguous types for collection keys

2006-04-12 Thread Scott Weeks
Hello everyone, I've been banging my head against my desk a bit so I figured it's time to ask for help :-) I'm writing an application that persists data to disk. The hard stuff is pretty much done (binary serialisation, etc...) The big stumbling block is that I want users to be able to

Re: [Haskell-cafe] Ambiguous types for collection keys

2006-04-12 Thread Scott Weeks
Well, if you get an ambiguous type variable error, you probably (I think) need to add some type annotations. For example: class Foo a where foo :: a bar :: a - String Evaluating bar foo will result in an error, but bar (foo :: Integer) will work just fine. The

Re: [Haskell-cafe] Ambiguous types for collection keys

2006-04-12 Thread Scott Weeks
Or carry an instance in along with a type parameter, using existentials or GADT. Brandon Moore Do you know of an example that would apply to my situation? I think I neglected to state part of my problem. I am storing the root nodes of btree indexes in a heterogeneous list using Typeable.

Re: [Haskell-cafe] Ambiguous types for collection keys

2006-04-12 Thread Scott Weeks
You are trying to assign two distinct types to dynFoo; that's a no-no. You need to move the usage of the polymorphic function out of the let so that the use at each distinct type doesn't get unified. {-# OPTIONS -fglasgow-exts #-} import Data.Dynamic data Foo a = FVal a

Re: [Haskell-cafe] does haskell have plist's ?

2006-02-07 Thread Scott Weeks
I just wanted to say thanks for posting that, I have been struggling with a similar problem and I still haven't fully wrapped my head around Typeable and fundeps so that PList code you posted helped immensely. Cheers, Scott On 05/02/2006, at 3:57 AM, J. Garrett Morris wrote: On 2/4/06,

Re: [Haskell-cafe] How to use a wiki to annotate GHC Docs? was Re: [Haskell] Re: Making Haskell more open

2005-11-16 Thread Scott Weeks
The public comment/wiki spam problem is easily solved. Use JavaScript to generate a value and put it in a hidden form field. Check for that value server side, if it's there then allow the post otherwise disallow. Most if not all bots don't have JavaScript engines. On 16/11/2005, at 10:15

Re: [Haskell-cafe] How to use a wiki to annotate GHC Docs? was Re: [Haskell] Re: Making Haskell more open

2005-11-16 Thread Scott Weeks
Most if not all bots don't have JavaScript engines. But not all users use JavaScript. I can certainly understand that some users don't have JavaScript but it's the vast minority. The choice is between usability. With captchas you can exclude the disabled and people with poor eyesight (as

Re: [Haskell-cafe] doc/html - wiki - xml

2005-11-15 Thread Scott Weeks
Frankly, the best way to go about writing your doc would be to do it in LaTeX/literate haskell. That way you could compile it to html/pdf/whatever. On 15/11/2005, at 2:40 AM, Bulat Ziganshin wrote: Hello Haskellers, i'm now write documention about Template Haskell in MS Word. when it will

Re: [Haskell-cafe] Information on B-Tree IO implemenations

2005-11-07 Thread Scott Weeks
a bit of this in my head. Cheers, that was a great help. On 07/11/2005, at 11:12 PM, Malcolm Wallace wrote: Scott Weeks [EMAIL PROTECTED] writes: For a project that I'm working on I need to implement a B-Tree or similar disk based data structure for storing large amounts of data. I feel like

[Haskell-cafe] Information on B-Tree IO implemenations

2005-11-06 Thread Scott Weeks
Hello all, (I'm resending this because I sent the first one without being a member of the list and I'm assuming it bounced) I'm a newbie and while I grasp some of the basics of FP I have yet to really understand the guts of Haskell. The type system is starting to clear up for me and so are