> 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<<function>>
> 
> 
> Is this a valid assembler syntax?? If I delete "r<<function>>"
> 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 "<<function>>"

[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-H4F5G<RYL:',),3DY."\P.2\R
M.2`Q-3HP,3HS.`DQ+C$V+C(N-@T*+2TM(&-O;7!I;&5R+VYA=&EV94=E;B]-
M86-H4F5G<RYL:',),3DY."\Q,"\R,"`P-SHS,3HR,`T**BHJ*BHJ*BHJ*BHJ
M*BHJ#0HJ*BH@.3,L.3D@*BHJ*@T*("`)($E&7T%20TA?86QP:&$H>RUP<F5P
M96YD(&YO=&AI;F<M?0T*("`)+$E&7T%20TA?:3,X-B@@)S`G(#H@)V0G(#H-
M"B`@"2Q)1E]!4D-(7W-P87)C*"<P)R`Z("=R)R`Z+"DI*0T*(2`)<VAO=R`H
M<F%T:6]N86P@<BDI#0H@(%QE;F1[8V]D97T-"B`@#0H@("4@+2`M("T@+2`M
M("T@+2`M("T@+2`M("T@+2`M("T@+2`M("T@+2`M("T@+2`M("T@+2`M("T@
M+2`M("T@+2`M("T@+0T*+2TM(#DS+#DY("TM+2T-"B`@"2!)1E]!4D-(7V%L
M<&AA*'LM<')E<&5N9"!N;W1H:6YG+7T-"B`@"2Q)1E]!4D-(7VDS.#8H("<P
M)R`Z("=D)R`Z#0H@(`DL249?05)#2%]S<&%R8R@G,"<@.B`G<B<@.BPI*2D-
M"B$@"7-H;W=31&]C("AR871I;VYA;"!R*2D-"B`@7&5N9'MC;V1E?0T*("`-
M"B`@)2`M("T@+2`M("T@+2`M("T@+2`M("T@+2`M("T@+2`M("T@+2`M("T@
=+2`M("T@+2`M("T@+2`M("T@+2`M("T@+2`M#0H=
`
end

Reply via email to