Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-23 Thread Ketil Malde
"Johan Tibell" <[EMAIL PROTECTED]> writes: >>> The benefit would be that if the input is not in latin-1 an exception >>> could be thrown rather than returning a Char representing the wrong >>> Unicode code point. >> I'm not sure what you mean here. All 256 possible values have a meaning. OTOH, g

Re: Module imports anywhere

2006-10-24 Thread Ketil Malde
Henning Thielemann <[EMAIL PROTECTED]> writes: >> #if HUGS >> import Hugs.Base >> #elseif GHC >> import GHC.Base >> #endif > We just need a system for plugging together system-dependent modules, > that's all. We do not need preprocessor hacks for this issue: > http://www.haskell.org/pipermail/

Re: digit groups

2006-10-24 Thread Ketil Malde
Henning Thielemann <[EMAIL PROTECTED]> writes: >> 1. allow to use '_' in number literals. its used in Ruby and i found >> that this makes long number literals much more readable. for example > Sounds like something that can be solved with an infix operator: > (~~) :: Integer -> Integer -> Intege

Re: Proposal for stand-alone deriving declarations?

2006-10-06 Thread Ketil Malde
"Iavor Diatchki" <[EMAIL PROTECTED]> writes: > A question about the syntax: would there be a problem if we made the > 'deriving' declaration look like an instance? And you might as well keep the 'instance' keyword when instantiating, even if the instance is derived? Seems more consistent to me

Re: public/private module sections

2006-02-24 Thread Ketil Malde
[EMAIL PROTECTED] writes: > In my personal experience, I have three kinds of Haskell modules: > > 1. Exporting everything > 2. Exporting almost everything > 3. Having a designed export interface I tend to start out exporting everything, which I find useful for testing the internals, and so

Re: Export lists in modules

2006-02-24 Thread Ketil Malde
Benjamin Franksen <[EMAIL PROTECTED]> writes: >> If this means that you must import Data.List almost everywhere, this >> won't change anything - only add yet another import to every file. > But you could import something different instead! Yes. You can do that as it is, of course (well, more or

Re: Export lists in modules

2006-02-24 Thread Ketil Malde
Malcolm Wallace <[EMAIL PROTECTED]> writes: > One of the problems with the current mechanism for overriding Prelude > definitions, is that every module that /uses/ such an entity must > also explicitly hide the original Prelude: I guess I don't quite understand what you are trying to achieve. Ca

Re: Export lists in modules

2006-02-23 Thread Ketil Malde
Malcolm Wallace <[EMAIL PROTECTED]> writes: > you would simply replace the implicit "import Prelude" with > an explicit "import Prelude.Standard" (or use a build flag like > -fimplicit-prelude, or +98). Why not keep it implicit? If you want the alternative behavior, you know where to get it (imp

Re: Export lists in modules

2006-02-23 Thread Ketil Malde
Wolfgang Jeltsch <[EMAIL PROTECTED]> writes: >> Personally, I would greatly prefer to have libraries that do not clash >> with common Prelude functions. > I would solve this problem by reducing the Prelude to just a core. List > function could go, for example, (mostly) into Data.List. If this

New syntax

2006-02-21 Thread Ketil Malde
Ketil Malde <[EMAIL PROTECTED]> writes: > Personally, I would greatly prefer to have libraries that do not clash > with common Prelude functions. Slightly related in spirit: Often additions to the language tends to change the meaning of existing programs: Implicit parameters br

Re: Export lists in modules

2006-02-21 Thread Ketil Malde
Wolfgang Jeltsch <[EMAIL PROTECTED]> writes: > On the other hand, sometimes it makes sense to have a "mostly qualified" > import. For example, if you import Data.Set or Data.Map you might want only > the type constructors to be imported unqualified and the rest to be imported > qualified. Per