
19 Oct
2007
19 Oct
'07
5:58 p.m.
Jules Bean wrote:
This looks very very much clearer in GADT syntax, since in GADT syntax you always give constructors explicit types:
type ExistsNumber where Number :: forall a . Num a => ExistsNumber a
The questions in response to my post have been answered already; I'd like to mention, though, the two typos in your example, which should read instead: data ExistsNumber where Number :: forall a. Num a => a -> ExistsNumber Kalman