I a file that is too large to post here completely, I have
used:
type Result val s = (# val, Steps s
#)
and I get the error message:
UU_Parsing.hs:391:
Illegal unboxed tuple
type as function argument: (# val, Steps s #)
In the type: (# val, Steps s #)
While checking the RHS of a type synonym declaration `Result'
In the type synonym declaration for `Result'
In the type: (# val, Steps s #)
While checking the RHS of a type synonym declaration `Result'
In the type synonym declaration for `Result'
using version "The Glorious Glasgow Haskell Compilation
System, version 5.02.2".
Runningan earlier version of the compiler I get on the same file
the following error message:
ghc-5.00.2: panic! (the `impossible'
happened, GHC version 5.00.2):
dsExpr: tuple pattern:
let {
fail_d9jc
= PrelErr.patError
@ (b r,
UU_Parsing.Steps a,
UU_Parsing.Steps a,
UU_Parsing.Exp a,
UU_Parsing.Steps a)
(PrelBase.unpackCString# "UU_Parsing.hs:735|case")
} in
case ds_d9iL of wild_B1 { (# v, ds_d9iR #) ->
case ds_d9iR of wild_B1 {
UU_Parsing.Best l m f r -> (v, l, m, f, r); __DEFAULT -> fail_d9jc
}
}
Please report it as a compiler bug to [EMAIL PROTECTED],
or http://sourceforge.net/projects/ghc/.
dsExpr: tuple pattern:
let {
fail_d9jc
= PrelErr.patError
@ (b r,
UU_Parsing.Steps a,
UU_Parsing.Steps a,
UU_Parsing.Exp a,
UU_Parsing.Steps a)
(PrelBase.unpackCString# "UU_Parsing.hs:735|case")
} in
case ds_d9iL of wild_B1 { (# v, ds_d9iR #) ->
case ds_d9iR of wild_B1 {
UU_Parsing.Best l m f r -> (v, l, m, f, r); __DEFAULT -> fail_d9jc
}
}
Please report it as a compiler bug to [EMAIL PROTECTED],
or http://sourceforge.net/projects/ghc/.
which is not very informative either.
My questions are:
- is this type definition really forbidden, and what does the
phrase "function argument " in the error message refer
to?
- was there a restriction introduced about what one may write at
the rhs of a type defintion between version 5.00.2 and
5.02.2?
Thanks for looking into this,
Doaitse Swierstra
--
__________________________________________________________________________
S. Doaitse Swierstra, Department of Computer Science, Utrecht University
S. Doaitse Swierstra, Department of Computer Science, Utrecht University
P.O.Box 80.089, 3508 TB UTRECHT, the Netherlands
Mail: mailto:[EMAIL PROTECTED]
WWW: http://www.cs.uu.nl/
Mail: mailto:[EMAIL PROTECTED]
WWW: http://www.cs.uu.nl/
tel: +31 30 253 3962
fax: +31 30 251 3791
mobile: +31 6 2880 1680
__________________________________________________________________________
__________________________________________________________________________