Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-17 Thread Daniel Schüssler
On Sunday 14 February 2010 17:02:36 Henk-Jan van Tuyl wrote: The symbols that are not specified in a library can be found here: http://www.haskell.org/haskellwiki/Keywords Hoogle used to show links to this page, when a keyword was searched, but not anymore. This isn't Haskell 98 only, is

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-16 Thread Neil Mitchell
Hi The symbols that are not specified in a library can be found here:  http://www.haskell.org/haskellwiki/Keywords Hoogle used to show links to this page, when a keyword was searched, but not anymore. And that's a bug: http://code.google.com/p/ndmitchell/issues/detail?id=280 (that I only

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-16 Thread Patrick LeBoutillier
Hi, The symbols that are not specified in a library can be found here:  http://www.haskell.org/haskellwiki/Keywords I noticed that \ is not in that list, should it be? Patrick -- = Patrick LeBoutillier Rosemère, Québec, Canada

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-16 Thread Neil Mitchell
Hi Patrick, The symbols that are not specified in a library can be found here:  http://www.haskell.org/haskellwiki/Keywords I noticed that \ is not in that list, should it be? Yes! Add it. If it would help a beginner understand what something means, it should be on that list. Thanks, Neil

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Andrew Coppin
Here's an idea... maybe we should make a small page on the Wiki explaining what all the various symbols in Haskell mean? There are a couple which are rare enough that most tutorials don't mention them that often. And there are of course symbols which mean different things in different

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread MightyByte
I like that idea. When I was first learning Haskell, I remember spending a non-trivial amount of time trying to figure out what '$' did. I incorrectly assumed that it was provided by some library. '!' and '~' would certainly be other good candidates for this kind of a page. These types of

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Andrew Coppin
MightyByte wrote: I like that idea. When I was first learning Haskell, I remember spending a non-trivial amount of time trying to figure out what '$' did. I incorrectly assumed that it was provided by some library. Technically, it is... '!' and '~' would certainly be other good

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread MightyByte
On Sun, Feb 14, 2010 at 8:39 AM, Andrew Coppin andrewcop...@btinternet.com wrote: MightyByte wrote: I like that idea.  When I was first learning Haskell, I remember spending a non-trivial amount of time trying to figure out what '$' did.  I incorrectly assumed that it was provided by some

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Felipe Lessa
On Sun, Feb 14, 2010 at 09:00:14AM -0500, MightyByte wrote: At any rate, they still don't help for things like '~', so there's definitely a use for a wiki page like this. Of course, Hoogle and Hayoo could be modified to show the docs when such symbols are searched as a special condition. --

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Henk-Jan van Tuyl
On Sun, 14 Feb 2010 14:24:03 +0100, Andrew Coppin andrewcop...@btinternet.com wrote: Here's an idea... maybe we should make a small page on the Wiki explaining what all the various symbols in Haskell mean? There are a couple which are rare enough that most tutorials don't mention them

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Dougal Stanton
And, I've search the meaning of the symbol ~, but I've found nothing about this (note that's not easy to search ~ on google ...) Searching for haskell tilde produces a lot of results and they're all relevant (on the first page at least). D ___

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Andrew Coppin
Henk-Jan van Tuyl wrote: The symbols that are not specified in a library can be found here: http://www.haskell.org/haskellwiki/Keywords Ah, nice. It seems somebody else has already thought of this. Also, I read this page and discovered something new within about 30 seconds. (Pattern

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Jake Wheat
On 14 February 2010 16:02, Henk-Jan van Tuyl hjgt...@chello.nl wrote: The symbols that are not specified in a library can be found here:  http://www.haskell.org/haskellwiki/Keywords Hoogle used to show links to this page, when a keyword was searched, but not anymore. In section 5 ! on this

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Evan Laforge
Finally, it is the array subscript operator: let x = arr ! 10 Shouldn't this be let x = arr !! 10 !! is the list subscript. Look in Data.Array.IArray for (!). Or Data.Map. There's still no consensus on typeclasses for collections, so these are all separate functions. Has anyone taken a

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread wagnerdm
Quoting Jake Wheat jakewheatm...@googlemail.com: On 14 February 2010 16:02, Henk-Jan van Tuyl hjgt...@chello.nl wrote: Finally, it is the array subscript operator: let x = arr ! 10 Shouldn't this be let x = arr !! 10 (!) is for arrays, (!!) is for lists. ~d

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Jake Wheat
On 14 February 2010 22:11, Evan Laforge qdun...@gmail.com wrote: Finally, it is the array subscript operator: let x = arr ! 10 Shouldn't this be let x = arr !! 10 !! is the list subscript.  Look in Data.Array.IArray for (!).  Or Data.Map. There's still no consensus on typeclasses for

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Stephen Tetley
On 14 February 2010 22:11, Evan Laforge qdun...@gmail.com wrote: There's still no consensus on typeclasses for collections, so these are all separate functions.  Has anyone taken a shot at a set of AT-using classes for the standard collections? The standard collections have different shapes

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Evan Laforge
On Sun, Feb 14, 2010 at 2:22 PM, Stephen Tetley stephen.tet...@gmail.com wrote: On 14 February 2010 22:11, Evan Laforge qdun...@gmail.com wrote: There's still no consensus on typeclasses for collections, so these are all separate functions.  Has anyone taken a shot at a set of AT-using

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Stephen Tetley
Hi Evan Singleton (aka wrap) would be nice - isn't it called Pointed in the typeclassopedia but not otherwise existent? I suppose its missing by historical accident rather than design. I frequently use Semigroup (append but no zero) - there is one on Hackage without any instances:

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Tony Morris
Stephen Tetley wrote: Hi Evan Singleton (aka wrap) would be nice - isn't it called Pointed in the typeclassopedia but not otherwise existent? I suppose its missing by historical accident rather than design. I frequently use Semigroup (append but no zero) - there is one on Hackage without

Re: [Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-14 Thread Evan Laforge
I'm no fan of (!!) on lists or other containers where it isn't O(1), but lookup/member are a bit more promising. However are there any useful derived operations or constructions that can be defined only in terms of a Lookup type class? For comparison, Monoid has mconcat as a derived op and

[Haskell-cafe] What is the meaning of tilde (~) symbol

2010-02-13 Thread kg
Hi, I'm reading the following subject : http://www.haskell.org/pipermail/haskell-cafe/2007-July/028227.html In the sample code, we can see : instance ReadAsAnyOf () ex where readAsAnyOf ~() = mzero And, I've search the meaning of the symbol ~, but I've found nothing about this (note