RE: Qualified names in foreign export

2000-03-20 Thread Simon Peyton-Jones
| BTW. The fact that functions containing the letter z in their names | will get zz in C names, unless explicitly specified differently, | should be either changed or documented. Thanks for pointing this out. I've fixed it in my (soon to be committed) copy. If you foreign-export an operator,

Re: Qualified names in foreign export

2000-03-08 Thread Sven Panne
Marcin 'Qrczak' Kowalczyk wrote: Shouldn't foreign exported names be allowed to be qualified? IMHO not: module Foo where Foo.f = "This is not allowed, either." I've just accidentally reused a Prelude name for a function to be foreign exported and could not resolve the conflict with

Qualified names in foreign export

2000-03-07 Thread Marcin 'Qrczak' Kowalczyk
Shouldn't foreign exported names be allowed to be qualified? I've just accidentally reused a Prelude name for a function to be foreign exported and could not resolve the conflict with the first way that came to mind: qualifying. It's only not obvious what C name would it get by default.