Re: [Haskell-cafe] Re: Improved documentation for Bool

2009-01-21 Thread Richard O'Keefe
On 20 Jan 2009, at 8:33 am, Andrew Coppin wrote: rocon...@theorem.ca wrote: I noticed the Bool datatype isn't well documented. Since Bool is not a common English word, I figured it could use some haddock to help clarify it for newcomers. My only problem with it is that it's called Bool,

[Haskell-cafe] Re: Improved documentation for Bool

2009-01-19 Thread Andrew Coppin
rocon...@theorem.ca wrote: I noticed the Bool datatype isn't well documented. Since Bool is not a common English word, I figured it could use some haddock to help clarify it for newcomers. My only problem with it is that it's called Bool, while every other programming language on Earth

Re: [Haskell-cafe] Re: Improved documentation for Bool

2009-01-19 Thread Jonathan Cast
On Mon, 2009-01-19 at 19:33 +, Andrew Coppin wrote: rocon...@theorem.ca wrote: I noticed the Bool datatype isn't well documented. Since Bool is not a common English word, I figured it could use some haddock to help clarify it for newcomers. My only problem with it is that it's

Re: [Haskell-cafe] Re: Improved documentation for Bool

2009-01-19 Thread Dan Piponi
On Mon, Jan 19, 2009 at 11:33 AM, Andrew Coppin andrewcop...@btinternet.com wrote: My only problem with it is that it's called Bool, while every other programming language on Earth calls it Boolean. (Or at least, the languages that *have* a name for it...) Python: bool ocaml: bool C++: bool

Re: [Haskell-cafe] Re: Improved documentation for Bool

2009-01-19 Thread Jonathan Cast
On Mon, 2009-01-19 at 20:55 +, Andrew Coppin wrote: Dan Piponi wrote: On Mon, Jan 19, 2009 at 11:33 AM, Andrew Coppin andrewcop...@btinternet.com wrote: My only problem with it is that it's called Bool, while every other programming language on Earth calls it Boolean. (Or at

Re: [Haskell-cafe] Re: Improved documentation for Bool

2009-01-19 Thread ajb
G'day all. On Mon, 2009-01-19 at 19:33 +, Andrew Coppin wrote: My only problem with it is that it's called Bool, while every other programming language on Earth calls it Boolean. (Or at least, the languages that *have* a name for it...) Jonathan Cast commented: Except C++? And

Re: [Haskell-cafe] Re: Improved documentation for Bool

2009-01-19 Thread David Menendez
On Mon, Jan 19, 2009 at 7:22 PM, a...@spamcop.net wrote: And perhaps more to the point, Boolean is an adjective, not a noun. Therefore, it would be better reserved for a typeclass. There's also John Meacham's Boolean package. http://repetae.net/recent/out/Boolean.html class (Heyting a) =

Re: [Haskell-cafe] Re: Improved documentation for Bool

2009-01-19 Thread Dan Piponi
On Mon, Jan 19, 2009 at 6:25 PM, David Menendez d...@zednenem.com wrote: Are there any instances of Boolean that aren't isomorphic to Bool? a-Bool for any a. I think. Though I think it should be called GeorgeBoolean otherwise we might confuse it for something his father might have invented. --

Re: [Haskell-cafe] Re: Improved documentation for Bool

2009-01-19 Thread ajb
G'day all. Quoting David Menendez d...@zednenem.com: Are there any instances of Boolean that aren't isomorphic to Bool? Sure. Two obvious examples: - The lattice of subsets of a universe set, where or is union and is intersection and not is complement with respect to the universe. -

Re: [Haskell-cafe] Re: Improved documentation for Bool

2009-01-19 Thread ajb
G'day all. I wrote: - Intuitionistic logic systems. - The truth values of an arbitrary topos (i.e. the points of the subobject classifier). Sorry, I misread the question. These are _not_ instances of Boolean (or at least the latter isn't an instance in general). Cheers, Andrew Bromage

[Haskell-cafe] Re: Improved documentation for Bool (Was: Comments from OCaml Hacker Brian Hurt)

2009-01-18 Thread Heinrich Apfelmus
Sterling Clover wrote: This is a great effort, but the root of the problem isn't just poor documentation, but an insistence on some obscure name. How about renaming Bool to YesOrNoDataVariable? I think this would help novice programmers a great deal. It would also make the documentation