Send Beginners mailing list submissions to beginners@haskell.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners or, via email, send a message with subject or body 'help' to beginners-requ...@haskell.org
You can reach the person managing the list at beginners-ow...@haskell.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Beginners digest..." Today's Topics: 1. Unicode characters in function names: some don't work? (Silent Leaf) 2. Re: Unicode characters in function names: some don't work? (Tim Perry) 3. Re: Unicode characters in function names: some don't work? (Tim Perry) 4. Re: Unicode characters in function names: some don't work? (Silent Leaf) 5. Re: Unicode characters in function names: some don't work? (Tim Perry) 6. Re: Unicode characters in function names: some don't work? (Silent Leaf) ---------------------------------------------------------------------- Message: 1 Date: Wed, 13 Apr 2016 21:33:48 +0200 From: Silent Leaf <silent.le...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: [Haskell-beginners] Unicode characters in function names: some don't work? Message-ID: <CAGFccjNU2cQsJROcb4si5TGtrATKUJitaH1mZrhAAQYC=xh...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi! say I wanna use "?" as new infix operator: it's the big dash used a bit like parenthesis, especially at the end of sentences ?like this. in ghci directly: Prelude> let (?) a b = a + b No problem, is accepted and usable. Same in files. Now I try using (?), a French (amongst others) punctuation sign, typically replaces the quote-ends, ? like this ?. Doesn't work: <interactive>:2:6: lexical error at character '\187' I thought Haskell was Unicode-friendly? Why some symbols but not others? :'( -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160413/328aa152/attachment-0001.html> ------------------------------ Message: 2 Date: Wed, 13 Apr 2016 16:50:47 -0700 From: Tim Perry <tim.v...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] Unicode characters in function names: some don't work? Message-ID: <cafvgasvq0khpls-iqqb8bc2a3yoalrzzx7bhzdslrgbet-g...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" I think it has something to do with which unicode symbols are punctuation. Check out this StackOverflow answer: http://stackoverflow.com/questions/10548170/what-characters-are-permitted-for-haskell-operators On Wed, Apr 13, 2016 at 12:33 PM, Silent Leaf <silent.le...@gmail.com> wrote: > Hi! > > say I wanna use "?" as new infix operator: it's the big dash used a bit > like parenthesis, especially at the end of sentences ?like this. > > in ghci directly: > Prelude> let (?) a b = a + b > > No problem, is accepted and usable. Same in files. > > Now I try using (?), a French (amongst others) punctuation sign, typically > replaces the quote-ends, ? like this ?. > Doesn't work: > <interactive>:2:6: lexical error at character '\187' > > I thought Haskell was Unicode-friendly? Why some symbols but not others? > :'( > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160413/fce39c6d/attachment-0001.html> ------------------------------ Message: 3 Date: Wed, 13 Apr 2016 17:02:36 -0700 From: Tim Perry <tim.v...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] Unicode characters in function names: some don't work? Message-ID: <cafvgasvrmf7requkqda15y60bnc5ekurz8sokkrp-f0z5ow...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" And to see if a character is punctuation, use the handy isPunctuation function https://hackage.haskell.org/package/base-4.8.2.0/docs/Data-Char.html#v:isPunctuation On Wed, Apr 13, 2016 at 4:50 PM, Tim Perry <tim.v...@gmail.com> wrote: > I think it has something to do with which unicode symbols are punctuation. > > Check out this StackOverflow answer: > > http://stackoverflow.com/questions/10548170/what-characters-are-permitted-for-haskell-operators > > > On Wed, Apr 13, 2016 at 12:33 PM, Silent Leaf <silent.le...@gmail.com> > wrote: > >> Hi! >> >> say I wanna use "?" as new infix operator: it's the big dash used a bit >> like parenthesis, especially at the end of sentences ?like this. >> >> in ghci directly: >> Prelude> let (?) a b = a + b >> >> No problem, is accepted and usable. Same in files. >> >> Now I try using (?), a French (amongst others) punctuation sign, >> typically replaces the quote-ends, ? like this ?. >> Doesn't work: >> <interactive>:2:6: lexical error at character '\187' >> >> I thought Haskell was Unicode-friendly? Why some symbols but not others? >> :'( >> _______________________________________________ >> Beginners mailing list >> Beginners@haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160413/695cf951/attachment-0001.html> ------------------------------ Message: 4 Date: Thu, 14 Apr 2016 03:30:58 +0200 From: Silent Leaf <silent.le...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] Unicode characters in function names: some don't work? Message-ID: <cagfccjnjcdn+nqdgft_oxfz6hxq2kadmkj-mp-dg6+xe4ew...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Well the problem is, the function you point out returns "true" for both symbols. And yet, one of them is refused as part of an operator, or anywhere for that matter, except between quotes of course. The function isn't true, both symbols are officially Unicode punctuation. That's really weird, and a bit sad, it could have been really useful to me :/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160414/1f67a323/attachment-0001.html> ------------------------------ Message: 5 Date: Wed, 13 Apr 2016 21:28:55 -0700 From: Tim Perry <tim.v...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] Unicode characters in function names: some don't work? Message-ID: <cafvgasvmcj8dvlxthknspcgi--823vvkfsl2p3tfu1fmeaa...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" I'm sorry to hear that. I guess the answer is more complicated than I thought. If I were you I'd post the question on Stack Overflow, there are quite a few experienced Haskell programmers on there that have always sorted my issues out quickly and thoroughly. If you do post on Stack Overflow, please post the link here. Good luck and sorry my info wasn't helpful. Tim On Wed, Apr 13, 2016 at 6:30 PM, Silent Leaf <silent.le...@gmail.com> wrote: > Well the problem is, the function you point out returns "true" for both > symbols. And yet, one of them is refused as part of an operator, or > anywhere for that matter, except between quotes of course. > The function isn't true, both symbols are officially Unicode punctuation. > That's really weird, and a bit sad, it could have been really useful to me > :/ > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160413/5b871164/attachment-0001.html> ------------------------------ Message: 6 Date: Thu, 14 Apr 2016 06:33:49 +0200 From: Silent Leaf <silent.le...@gmail.com> To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell <beginners@haskell.org> Subject: Re: [Haskell-beginners] Unicode characters in function names: some don't work? Message-ID: <CAGFccjOfm37ayqeTwvARJ21=uj8z6lx+zwf84sets4jtium...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Good idea, that was gonna be my next stop; Will do, thanks for trying to help me. Le jeudi 14 avril 2016, Tim Perry <tim.v...@gmail.com> a ?crit : > I'm sorry to hear that. I guess the answer is more complicated than I thought. If I were you I'd post the question on Stack Overflow, there are quite a few experienced Haskell programmers on there that have always sorted my issues out quickly and thoroughly. If you do post on Stack Overflow, please post the link here. > > Good luck and sorry my info wasn't helpful. > Tim > > On Wed, Apr 13, 2016 at 6:30 PM, Silent Leaf <silent.le...@gmail.com> wrote: >> >> Well the problem is, the function you point out returns "true" for both symbols. And yet, one of them is refused as part of an operator, or anywhere for that matter, except between quotes of course. >> The function isn't true, both symbols are officially Unicode punctuation. That's really weird, and a bit sad, it could have been really useful to me :/ >> _______________________________________________ >> Beginners mailing list >> Beginners@haskell.org >> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160414/7ecd92cd/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners ------------------------------ End of Beginners Digest, Vol 94, Issue 11 *****************************************