Re: OS X - Haskell to Objective-C Binding on GHC 6.6

2006-10-26 Thread Rodney D Price


Mathew,

Would you be willing to send me a cvs diff as well?

Thanks,
-Rod


On Oct 26, 2006, at 2:08 PM, Mathew Mills wrote:

I just succeeded in building HOC from CVS HEAD against ghc-6.6 on  
x86 Mac OS X last night.  I didn't encounter that specific problem,  
though.  I can send you a cvs diff if that would help.


On Oct 26, 2006, at 10:15 AM, Charlie Conklin wrote:

Is anyone out there running OS X and using HOC and GHC 6.6? I took  
the latest
from cvs and got some way toward getting it to compile by changing  
the code to:


1. reflect changes regarding packages, i.e. adding -package-name  
to the

pertinent makefiles, and accommodating the changed signature of
Language.Haskell.TH.Syntax mkNameG_v and mkNameG_tc

2. replacing the obsolete names used from Data.Set which have been  
removed from

GHC 6.6.

At that point HOC was able to get to the point where it parses the  
ObjC headers,
but it then choked on compiling the generated .hs files, some of  
which seem to

have invalid constructions like:

-- enum definitions
$(declareAnonymousCEnum [(NSFileNoSuchFileError, 4), 
(NSFileLockingError,

255),(NSFileReadUnknownError, 256),(NSFileReadNoPermissionError,
257),(NSFileReadInvalidFileNameError, 25, 
(NSFileReadCorruptFileError,

259),(NSFileReadNoSuchFileError,
260),(NSFileReadInapplicableStringEncodingError,
261),(NSFileReadUnsupportedSchemeError, 262), 
(NSFileWriteUnknownError,
512),(NSFileWriteNoPermissionError, 513), 
(NSFileWriteInvalidFileNameError,

514),(NSFileWriteInapplicableStringEncodingError,
517),(NSFileWriteUnsupportedSchemeError, 51, 
(NSFileWriteOutOfSpaceError,

640),(NSKeyValueValidationError, 1024),(NSFormattingError,
204,(NSUserCancelledError, 3072),(NSFileErrorMinimum,
0),(NSFileErrorMaximum, 1023),(NSValidationErrorMinimum,
1024),(NSValidationErrorMaximum, 2047),(NSFormattingErrorMinimum,
204,(NSFormattingErrorMaximum, 2559)])

I'm a complete beginner to Hasell, and at this point I'm a bit stuck.

Any help would be much appreciated!

Cheers,

- Charlie

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: ghc-6.6 mac intel binary bundle

2006-10-16 Thread Rodney D Price

Here's what worked for me:

bunzip2 ghc-6.6-i386-apple-darwin.tar.bz2
tar -xvf ghc-6.6-i386-apple-darwin.tar
cd ghc-6.6
./configure
sudo make show-install-setup
sudo make install
ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.6

I'm on a MacBook Pro running OS X 10.4.8.  The make show-
install-setup step doesn't do anything but show you where the
files will go when you do make install, but make install worked
fine on my machine.

-Rod


On Oct 13, 2006, at 7:23 PM, Adam Megacz wrote:



Hi,

I'm grateful to whoever prepared the binary bundle for ghc-6.6 on
MacOS/Intel, but the instructions for installing it are missing/wrong.

In particular, make install doesn't do much, and the only binary in
the bundle called ghc appears to need additional configuration
options (-B), so it seems to need some sort of installation procedure.
The INSTALL file is not useful.

Overall, I'm kind of uncertain exactly what this tarball contains.  It
looks like a built copy of the source code, but most of the source
code is missing.  It's not an installer (.mpkg) nor does it
(apparently) contain any install scripts.

Could you perhaps update this webpage with an example of the shell
commands you might use to get it installed to the point where typing
ghc Foo.hs works?

  http://www.haskell.org/ghc/download_ghc_66.html#macosxintel

Thanks,

  - a

--
PGP/GPG: 5C9F F366 C9CF 2145 E770  B1B8 EFB1 462D A146 C380

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: GHC on MacOS

2006-10-02 Thread Rodney D Price


Simon,

I would like to help, but my time is limited and my knowledge of GHC
internals is nearly non-existent.  I am, however, very interested in
seeing GHC run on Mac Intel.  I particularly want to see the full STM
mechanism, including check, running on the Mac.  Are there small
pieces of this problem that I could help with?

-Rod


On Oct 2, 2006, at 11:23 AM, Thorkil Naur wrote:


Hello,

Let me make that offer, then, that I would like to help investigate  
and fix
GHC on MacOS. The obstacles that I have mentioned earlier are ones  
that I
would eventually have removed in any case, so don't worry, I will  
not be

wasting any time.

Regards Thorkil

On Monday 02 October 2006 09:31, Simon Peyton-Jones wrote:
Thanks -- in fact we've had a few helpful offers of access (which  
is v
helpful).  We may still yet take you up, but meanwhile don't do  
too much

work.

So far, no one has offered to help investigate/fix GHC on MacOS, so
progress may be slow.  We'd love to hear from keen MacOS users who  
are

willing to roll their sleeves up!

Simon


...
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: STM check operation

2006-07-13 Thread Rodney D Price


Thanks for your reply.  I'm a bit confused, however.  There is a  
function

check :: Bool - STM a in the STM library, but it appears to act
differently than the one described in the paper.  This version of check
seems to cause a transaction to block when its (check's)  first argument
is False, rather than issue an error or exception.  Is this right?

-Rod


On Jul 13, 2006, at 8:00 AM, Simon Peyton-Jones wrote:


'check' isn't in any public version of GHC just yet. We have the code,
but have not yet gotten it into the main darcs repository. Sorry.

Simon

| -Original Message-
| From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
| On Behalf Of S Koray Can
| Sent: 13 July 2006 03:13
| To: glasgow-haskell-users@haskell.org
| Subject: Re: STM check operation
|
| Rodney D Price wrote:
|  I've been reading the STM papers on Simon PJ's website, but I find
that
|  the GHC I'm using (6.5) changes a few things from the paper's
|  descriptions.
|  For instance, atomic becomes atomically and catch becomes
|  catchSTM.
|  I can't, however, find throw, and the type signature of check
has
|  changed.
|  The GHC documentation isn't much help.  Is there a discussion,
perhaps in
|  a mailing list archive somewhere, that will shed some light on  
these

|  changes?
|
| I had the same question about check's signature last night. But I do
| believe that throw is the same old throw :: Exception - a from
| Control.Exception.
|
| Cheers,
| Koray
| ___
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users@haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


STM check operation

2006-07-12 Thread Rodney D Price

I've been reading the STM papers on Simon PJ's website, but I find that
the GHC I'm using (6.5) changes a few things from the paper's  
descriptions.
For instance, atomic becomes atomically and catch becomes  
catchSTM.
I can't, however, find throw, and the type signature of check has  
changed.
The GHC documentation isn't much help.  Is there a discussion,  
perhaps in
a mailing list archive somewhere, that will shed some light on these  
changes?


Thanks,

-Rod


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


progress on Darwin x86 port?

2006-06-27 Thread Rodney D Price


Hi,

Some time ago I persuaded my employer to buy me a new Intel-based Mac.
While it runs fast, it doesn't compile many open-source programs,  
including
ghc.  On perusing the list archives, I found one or two people  
working on a

port.  What's the status?

Right now I'm writing Haskell code using ghci, which is running under  
Rosetta.
Is it possible to build an unregisterised version of ghc that would  
at the very

least emit executable binaries on Intel Macs?

Thanks,

-Rod
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: progress on Darwin x86 port?

2006-06-27 Thread Rodney D Price


Thanks!  I first downloaded the binary from pugs.blogs.com and  
installed it.

When I tried to compile a small program, I got this:

 ghc -o hello hello.hs
dyld: Library not loaded: GMP.framework/Versions/A/GMP
  Referenced from: /usr/local/lib/ghc-6.5.20060608/ghc-6.5.20060608
  Reason: no suitable image found.  Did find:
/Library/Frameworks/GMP.framework/Versions/A/GMP: mach-o,  
but wrong architecture

Trace/BPT trap

I then downloaded the binary from www.uni-graz.at and unpacked it.  The
file was corrupted, but I did get the GMP.framework out of it.  Upon  
removing
the first GMP.framework and substituting this one in its place, I was  
able to

compile my simple program.

It appears to be working now.  Thanks again,

-Rod


On Jun 27, 2006, at 4:03 PM, [EMAIL PROTECTED] wrote:



Take a look here:

http://hackage.haskell.org/trac/ghc/wiki/X86OSXGhc

-reilly hayes


From Rodney D Price [EMAIL PROTECTED] on 27 Jun 2006:



Hi,

Some time ago I persuaded my employer to buy me a new Intel-based  
Mac.

While it runs fast, it doesn't compile many open-source programs,
including
ghc.  On perusing the list archives, I found one or two people
working on a
port.  What's the status?

Right now I'm writing Haskell code using ghci, which is running under
Rosetta.
Is it possible to build an unregisterised version of ghc that would
at the very
least emit executable binaries on Intel Macs?

Thanks,

-Rod
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users