Re: Error building ghc 6.4 under os x

2005-05-05 Thread Jeffrey Vaughan
Thanks for the quick reply:)
Gregory Wright wrote:
Or just download and install the darwinports system and type
sudo port install ghc
Unfortunately this isn't working for me.  It appears that port is 
attempting to download ghc-6.4-darwin-bootstrap.tar.bz2 which does not 
exists. However this is a ghc-6.4-darwin-bootstrap-v01.tar.bz2.

I changed Portfile to reflect this, and the build died later in the 
process.  I'm currently waiting for xcode 1.5 to download, but i'm 
pretty sure the above is a bug.

--Jeff
On May 4, 2005, at 9:03 PM, Jeffrey Vaughan wrote:

Hi All,
I'm trying to build ghc 6.4 on mac os x (10.3) using ghc 6.2.  The  
build dies with /tmp/ghc18478.hc:3:17: Stg.h: No such file or  
directory.  An abridged session transcript is below.


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


Unicode source files

2005-05-05 Thread Bulat Ziganshin
Hello

it is true what to support unicode source files only StringBuffer
implementation must be changed? if so, then task can be simplified by
converting any files read by hGetStringBuffer to UTF-32 (PackedString)
representation and putting in memory array in this form. After this,
we must change indexing of ByteArray to indexing of Array Int Char,
and somewhat replace call to mkFastSubStringBA#.

btw, why in FastString module unicode strings are saved as [Int], not
as String itself?
  

-- 
Best regards,
 Bulat  mailto:[EMAIL PROTECTED]



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


RE: Haddock generated documentation for Control.Monad.Error

2005-05-05 Thread Simon Marlow
On 05 May 2005 06:34, Sean Seefried wrote:

 When I look in the Haddock generated code at:
 http://www.haskell.org/ghc/docs/latest/html/libraries/base/
 Control.Monad.html#t%3AMonadPlus, I don't seem to find any reference
 to the IO monad being an instance of the MonadPlus class.
 
 But when I look at the source code in
 libraries/mtl/Control/Monad/Error.hs it clearly is.  Why is this
 happening?

The instance is defined in Control.Monad.Error, that's all.

(Haddock doesn't currently tell you which instances are exported via
which modules, and I consider this to be a bug - though I'm not exactly
sure of the best way to fix it).

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


Re: Error building ghc 6.4 under os x

2005-05-05 Thread Gregory Wright
On May 5, 2005, at 2:03 AM, Jeffrey Vaughan wrote:
Thanks for the quick reply:)
Gregory Wright wrote:
Or just download and install the darwinports system and type
sudo port install ghc
Unfortunately this isn't working for me.  It appears that port is  
attempting to download ghc-6.4-darwin-bootstrap.tar.bz2 which does  
not exists. However this is a ghc-6.4-darwin-bootstrap-v01.tar.bz2.

Where did you get your copy of darwinports? The -v01 bootstrap file  
has been in use
for several months.  And after installing, did you run

sudo port -d selfupdate
to ensure you had the latest portfiles?

I changed Portfile to reflect this, and the build died later in the  
process.  I'm currently waiting for xcode 1.5 to download, but i'm  
pretty sure the above is a bug.

Not surprising, since somehow you got a very outdated port file. Send  
me the portfile
you tried and I'll try to get an idea of what happened.

If you didn't have the Xcode 1.5 tools + updates, building ghc from  
source was
almost certainly bound to fail.

-Greg
--Jeff

On May 4, 2005, at 9:03 PM, Jeffrey Vaughan wrote:
Hi All,
I'm trying to build ghc 6.4 on mac os x (10.3) using ghc 6.2.   
The  build dies with /tmp/ghc18478.hc:3:17: Stg.h: No such file  
or  directory.  An abridged session transcript is below.



___
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: Error building ghc 6.4 under os x

2005-05-05 Thread Gregory Wright

Jeff,
Mmaybe I was right about the portfile not being up to date.
The latest does indeed refer to -v01, and the haskell ftp site has the
-v01 bootstrap compiler (just checked!).
Send me your portfile, along with a transcript of the sudo port -dv  
install
output.

Greg
On May 5, 2005, at 2:03 AM, Jeffrey Vaughan wrote:
Thanks for the quick reply:)
Gregory Wright wrote:
Or just download and install the darwinports system and type
sudo port install ghc
Unfortunately this isn't working for me.  It appears that port is  
attempting to download ghc-6.4-darwin-bootstrap.tar.bz2 which does  
not exists. However this is a ghc-6.4-darwin-bootstrap-v01.tar.bz2.

I changed Portfile to reflect this, and the build died later in the  
process.  I'm currently waiting for xcode 1.5 to download, but i'm  
pretty sure the above is a bug.

--Jeff

On May 4, 2005, at 9:03 PM, Jeffrey Vaughan wrote:
Hi All,
I'm trying to build ghc 6.4 on mac os x (10.3) using ghc 6.2.   
The  build dies with /tmp/ghc18478.hc:3:17: Stg.h: No such file  
or  directory.  An abridged session transcript is below.



___
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: deprecate a constructor?

2005-05-05 Thread Simon Peyton-Jones
OK, I've fixed this one, in the HEAD at least.  You can now deprecate
data constructors as well as type constructors.  Not in the 6.4 branch
though, because doing so could conceivably make some programs fail.

Simon

| -Original Message-
| From: [EMAIL PROTECTED]
[mailto:glasgow-haskell-users-
| [EMAIL PROTECTED] On Behalf Of Simon Peyton-Jones
| Sent: 15 April 2005 14:58
| To: Johannes Waldmann; glasgow-haskell-users@haskell.org
| Subject: RE: deprecate a constructor?
| 
| Apparently not at the moment but it should be.
| 
| As in a 'hiding' list, deprecating T would deprecate the *type* T
and
| the *data constructor* T.  There'd be no way to deprecate one without
| the other, except by giving them different names.  (That's a bit of a
| shortcoming in hiding lists already, so matters are no worse than
| before.)
| 
| I'll look into this sometime I'm on an aeroplane...
| 
| Simon
| 
| | -Original Message-
| | From: [EMAIL PROTECTED]
| [mailto:glasgow-haskell-users-
| | [EMAIL PROTECTED] On Behalf Of Johannes Waldmann
| | Sent: 14 April 2005 17:27
| | To: glasgow-haskell-users@haskell.org
| | Subject: deprecate a constructor?
| |
| | is it possible to {-# DEPRECATE #-} a single constructor
| | (of a data declaration that is, as a whole, not deprecated)?
| | --
| | -- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
| |  http://www.imn.htwk-leipzig.de/~waldmann/ ---
| |
| | ___
| | 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


multiple versions of ghc

2005-05-05 Thread Malcolm Wallace
Is it true that on unix, tools like ghc-pkg-6.2.2 and ghc-pkg-6.4
may co-exist, but on Windows the version number is not present,
so a single executable is simply called ghc-pkg.exe?

If so, how do Windows users deal with having more than one version
of ghc installed simultaneously?  Is this just a bug/oversight that
can be fixed?

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


Re: multiple versions of ghc

2005-05-05 Thread Andre Pang
On 06/05/2005, at 2:41 AM, Malcolm Wallace wrote:
If so, how do Windows users deal with having more than one version
of ghc installed simultaneously?  Is this just a bug/oversight that
can be fixed?
I'm not on my Windows box at the moment, but If I Remember Correctly,  
GHC gets installed to a C:\ghc\ghc-{version} directory by default.   
So, you should be able to install two versions of ghc to e.g. C:\ghc 
\ghc-6.2.2 and C:\ghc\ghc-6.4.

To manage the two different versions, you might be able to use a  
utility such as Junction[1] to create a symlink (a junction, in  
NTFS parlance) to the proper GHC directory.  Here's the idea:

 * Add a directory named e.g. C:\ghc\working to your %PATH%.
 * Junction C:\ghc\working to C:\ghc\ghc-6.4 if you want to use GHC  
6.4, or junction it to C:\ghc\working\ghc-6.2.2 if you want to use  
GHC 6.2.2.

 * Write some small batch files to switch between the two  
directories if you need to do it often.

I guess you could also just rename all the .exe's in the GHC install  
directories to have -6.2.2. and -6.4 suffixes, but I dunno if that'll  
break anything.

(Note that I haven't tried any of this, but I see no reason why it  
wouldn't work.)

1. http://www.sysinternals.com/ntw2k/source/misc.shtml#junction
--
% Andre Pang : trust.in.love.to.save  http://www.algorithm.com.au/
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users