Re: syntax across languages

2002-02-14 Thread Ganesh Sittampalam
On Tue, 12 Feb 2002 14:43:22 +, Malcolm Wallace <[EMAIL PROTECTED]> wrote: >> Being able to specify the extensions required in a source file would be very >> useful in a range of cases. Very often helping other people with Haskell (in >> the case where they are trying to use someone else's mo

Re: syntax across languages

2002-02-13 Thread Jay Cox
On 12 Feb 2002, Pixel wrote: > eurk > > ERROR "/usr/share/hugs/lib/exts/ST.hs":48 - Syntax error in type expression >(unexpected `.') > > isn't there a way ST.hs would require the extensions? a pragma or something? > someone not knowing the "-98" would wonder for a long time about what to do > :

Re: syntax across languages

2002-02-12 Thread Malcolm Wallace
> Being able to specify the extensions required in a source file would be very > useful in a range of cases. Very often helping other people with Haskell (in > the case where they are trying to use someone else's module) is just a > question of saying "try '-98'" or "try '-fglasgow-exts'" or whate

Re: syntax across languages

2002-02-12 Thread Ganesh Sittampalam
On 12 Feb 2002 14:49:16 +0100, Pixel <[EMAIL PROTECTED]> wrote: >eurk > >ERROR "/usr/share/hugs/lib/exts/ST.hs":48 - Syntax error in type expression >(unexpected `.') > >isn't there a way ST.hs would require the extensions? a pragma or something? >someone not knowing the "-98" would wonder for a

Re: syntax across languages

2002-02-12 Thread Pixel
language (although, in reality, > the multiple solutions alluded to by the term are elements of a > deterministically (is that a word?!) produced list) "syntax across languages" is about syntax! If something needs much explaination, it can't be included :p [...] > I

Re: syntax across languages

2002-02-11 Thread Jay Cox
On 11 Feb 2002, Pixel wrote: > Jay Cox <[EMAIL PROTECTED]> writes: > > > Using > > > > data = Foo ... > > really should be meantioned as a way to construct new types. > > newtype = Foo ... (new type) > > > > type Foo = ... > > is only a type synonym. heres an example. > > type String = [Char] > >

Re: syntax across languages

2002-02-11 Thread Ketil Z. Malde
Pixel <[EMAIL PROTECTED]> writes: >> In addition to . function composition, there's also $ function application, >> which often is more practical to use. > I could put it in "grouping expressions": > $ ... Haskell Yes, but that might apply to the . operator too. But yes, essentially it

Re: syntax across languages

2002-02-11 Thread Pixel
ing about Type classes. This is the main > (only) method of overloading functions in haskell. > > maybe you might make mention of polymorphic type system and how haskell > uses type inferencing to determine the meaning of expressions (relates to > type classes). syntax-across-languag

Re: syntax across languages

2002-02-11 Thread Pixel
[EMAIL PROTECTED] (Ketil Z. Malde) writes: [...] > The . operator is used for package scope when packages (modules) are > imported "qualified". ok > Indentation can optionally be replaced by { ; and }. ok > In addition to . function composition, there's also $ function application, > which o

Re: syntax across languages

2002-02-10 Thread Ketil Z. Malde
Pixel <[EMAIL PROTECTED]> writes: > Contributions, suggestions and fixes are welcome. The . operator is used for package scope when packages (modules) are imported "qualified". Indentation can optionally be replaced by { ; and }. In addition to . function composition, there's also $ function a

Re: syntax across languages

2002-02-10 Thread Jay Cox
On 11 Feb 2002, Pixel wrote: > http://merd.net/pixel/language-study/syntax-across-languages.html > > CHANGES: > - the page has now much more entries > - one can check the missing entries per language at > http://merd.net/pixel/language-study/syntax-across-languages-per-langua

syntax across languages

2002-02-10 Thread Pixel
http://merd.net/pixel/language-study/syntax-across-languages.html CHANGES: - the page has now much more entries - one can check the missing entries per language at http://merd.net/pixel/language-study/syntax-across-languages-per-language.html (160KB) see especially the haskell one http