instance Show (a->b) (was Re: GHC-4.00 assembler crash)

1998-10-25 Thread Felix Schroeter

Hello!

On Tue, Oct 20, 1998 at 12:36:44AM -0700, Sigbjorn Finne (Intl Vendor) wrote:


> [...]

> To quote from somewhere deep within the Prelude:

>   instance Show (a -> b) where 
> showsPrec _ _ = showString "<>"

> [meta-comment: could we just do away with this one? Beyond giving
> rise to semi-entertaining bugs, it's of precious little practical use..]

I think, it IS of practical use for hugs users, as it prints
<> as a response of a function valued expression instead
of an error message that it can't find an instance of Show for the
type of the entered expression.

> Thanks for the report; fixed (one line patch attached.)

> --Sigbjorn


> begin 600 MachRegs.diff

Why not in clear text? :-)

> [... uuencode deleted ...]

Regards, Felix.

PS: The Message-Id in your mail is a bit strange. Usually, it should
be <[EMAIL PROTECTED]>.



RE: instance Show (a->b) (was Re: GHC-4.00 assembler crash)

1998-10-25 Thread Sigbjorn Finne (Intl Vendor)


Felix Schroeter <[EMAIL PROTECTED]> writes: 
>
> 
> > To quote from somewhere deep within the Prelude:
> 
> >   instance Show (a -> b) where 
> > showsPrec _ _ = showString "<>"
> 
> > [meta-comment: could we just do away with this one? Beyond giving
> > rise to semi-entertaining bugs, it's of precious little 
> practical use..]
> 
> I think, it IS of practical use for hugs users, as it prints
> <> as a response of a function valued expression instead
> of an error message that it can't find an instance of Show for the
> type of the entered expression.
> 

That's a Hugs user interface issue, and can be solved without polluting
the Haskell Prelude, i.e., no need to burden the rest of us with it ;-)

> 
> > begin 600 MachRegs.diff
> 
> Why not in clear text? :-)
> 

because Outlook scares me no end :-) 

> > [... uuencode deleted ...]
> 
> Regards, Felix.
> 
> PS: The Message-Id in your mail is a bit strange. Usually, it should
> be <[EMAIL PROTECTED]>.
> 

Maybe so, but it's within the bounds of what constitutes a legal addr-spec
as per RFC 822.

--Sigbjorn



RE: GHC-4.00 assembler crash

1998-10-20 Thread Sigbjorn Finne (Intl Vendor)



> Jan Laitenberger [mailto:[EMAIL PROTECTED]] writes: 
> 
> 
> Hi,
> 
> 
> Compiling our interpreter module causes the assembler to crash
> 
>   ghc -c -H45M Inter.hs
> 
> returns:
> 
>   /usr/ccs/bin/as: "/tmp/ghc22153.s", line 572: error: 
> statement syntax
>   /usr/ccs/bin/as: "/tmp/ghc22153.s", line 572: error: 
> statement syntax
>   /usr/ccs/bin/as: "/tmp/ghc22153.s", line 590: error: 
> statement syntax
>   /usr/ccs/bin/as: "/tmp/ghc22153.s", line 590: error: 
> statement syntax
> 
> 
> These lines look like:  (I used -S to get the assembler file)
> 
>   .word   0r<>
> 
> 
> Is this a valid assembler syntax?? If I delete "r<>"
> the assembler accepts the program. But is it still correct then?
> 

To quote from somewhere deep within the Prelude:

  instance Show (a -> b) where 
showsPrec _ _ = showString "<>"

[meta-comment: could we just do away with this one? Beyond giving
rise to semi-entertaining bugs, it's of precious little practical use..]

Thanks for the report; fixed (one line patch attached.)

--Sigbjorn


begin 600 MachRegs.diff
M*BHJ(&-O;7!I;&5R+VYA=&EV94=E;B]-86-H4F5GRUP


GHC-4.00 assembler crash

1998-10-20 Thread Jan Laitenberger


Hi,


Compiling our interpreter module causes the assembler to crash

  ghc -c -H45M Inter.hs

returns:

  /usr/ccs/bin/as: "/tmp/ghc22153.s", line 572: error: statement syntax
  /usr/ccs/bin/as: "/tmp/ghc22153.s", line 572: error: statement syntax
  /usr/ccs/bin/as: "/tmp/ghc22153.s", line 590: error: statement syntax
  /usr/ccs/bin/as: "/tmp/ghc22153.s", line 590: error: statement syntax


These lines look like:  (I used -S to get the assembler file)

  .word 0r<>


Is this a valid assembler syntax?? If I delete "r<>"
the assembler accepts the program. But is it still correct then?


Best Wishes,

Jan

 ___
'---|--
|  __,   _  _  EMail: [EMAIL PROTECTED]
| /  |  / |/ | WWWeb: http://www.uni-passau.de/~laitenbe/
|/\_/|_/  |  |_/
   /| Laitenberger
--(-|--
   \|