Re: Another import question

1992-12-18 Thread Simon L Peyton Jones
| For example, | | module F(S,T) where | type S a = (a,a) | data T a = C a a | | could have the interface: | | interface F where | type S a | data T a | | Are there any problems with this? The main difficulty is deciding whether the signatures in the int

Re: Layout expansion

1992-12-18 Thread kh
> I want to build the layout expansion ('{', '}' and ';') > into the scanner. In general you could only do this by building some parsing capability into the scanner (though in musing about it I haven't found any cases which couldn't be solved by adding simple "bracket-counting" for interesting co

Re: Another import question

1992-12-18 Thread kh
> > On Thu, 03 Dec 92 08:13:17 +, Simon L Peyton Jones <[EMAIL PROTECTED]> >said: > Simon> Why do you need to drop the (..) when it turns into a "data" decl? > Simon> You only need do so if you want it to be abstract! > Simon> But "type" decls can't be abstract; the (..) reminds you of th