Re: Making arv a constant.

1997-02-03 Thread Pablo E. Martinez Lopez
n the spirit of actual Haskell, but I have to think on it a bit more. Pablo E. Martinez Lopez (Fidel).

Re: pattern guards and guarded patterns

1997-04-30 Thread Pablo E. Martinez Lopez
test3 :? part3 ] doing your proposal just another way of write this. As pointed out by Tommy Thorn, re-using case will be confusing and redundant. Pablo E. Martinez Lopez (Fidel).

Re: pattern guards and guarded patterns

1997-05-01 Thread Pablo E. Martinez Lopez
Errata: in my previous mail, the text "a la Hoare" should be replaced by "a la Dijkstra". Fidel.

No Subject

1997-05-16 Thread Pablo E. Martinez Lopez
I have some questions about the Haskell Report. I will appreciate if someone could exaplain them. Thanks. 1.- In the version 1.2 there is a restriction that a C-T instance declaration may only appear either in the module where C or T are declared, but in the version 1.3 this restriction

Re: monad type errors in class definition?

1998-10-26 Thread Pablo E. Martinez Lopez
> > class MetaData a where > > constructorName::a->String > > mapArgs::(MetaData b,MonadPlus c) => (b->c)->a->[c] > > results in the error > Illegal type "[c]" in constructor application > > If I replace MonadPlus with Show or Num there is no error. > (Replacing MonadPlus with Monad also resul

Re: Why I hate n+k

1998-11-27 Thread Pablo E. Martinez Lopez
> This ":=:" is, it seems me, the variation that the Haskell "=" corresponds > to, except one then does not indicate the quantity defined, which is > causing those ambiguity problems. I always thought that in Haskell the left hand side is the one being defined and the right hand side is the one t

Re: bad recursion

2000-01-16 Thread Pablo E. Martinez Lopez
> Why Haskell is so? Why case zipRem undefined [] > of > (ps,xs',ys') -> ((x,y):ps, xs', ys') > > does not allow the result of zipRem undefined [] > to be of (ps,xs',ys') > (which type is declared in zipR

Re: Haskell & Clean

2000-01-24 Thread Pablo E. Martinez Lopez
> Haskell position (as I understand it) > - > Haskell is incapable of desribing IO, it can only evaluate an expression > of type IO (). This expression is used by an 'IO monad machine' (which > is not part of Haskell) to actually execute IO operations. Beca

Re: Haskell & Clean

2000-01-24 Thread Pablo E. Martinez Lopez
> Probably so, I do have difficulty understanding this. The point I was > trying to make is that as far as Haskell is concerned, that there is no > difference between values of type (IO a) and any other values. Exactly. That is a powerful thing: you treat computations as values and other guy is

Re: drop & take [was: fixing typos in Haskell-98]

2000-01-25 Thread Pablo E. Martinez Lopez
> I think negative take/drop should be conceptually viewed as > prepending/appending "empty"/"bottom"/"default value". It would be nice > if "take 5 (take -1 some_list)" was equal to "take 4 some_list". (I > guess it would be more difficult to achieve this with the opposite > order.) No. If I wan

Re: drop & take [was: fixing typos in Haskell-98]]

2000-01-25 Thread Pablo E. Martinez Lopez
> > I'm with the option (B): negatives are just outside > > the domain of take&drop, and should give you an error > > message. > > For the people that share this sentiment, can you please > explain why ints that are too big should not similarly > give an error? I can see both being ok, or both b

Re: drop & take [was: fixing typos in Haskell-98]

2000-01-26 Thread Pablo E. Martinez Lopez
> Many properties are broken anyway in presence of negative arguments > > drop n . drop m = drop (n+m) -- try n = -1, m = 1 > take n . drop m = drop m . take (n+m) -- try n = 1, m = -1 But following Simon assumption about collapsing integers to naturals, you can have collapse n | n<0

Re: [Haskell] natural numbers

2004-03-04 Thread Pablo E. Martinez Lopez
"it would be very natural to add a type Natural providing an unbounded size unsigned integer, just as Integer provides unbounded size signed integers. We do not do that yet since there is no demand for it." if that is not too much work could we have that in the library? i think it would be ver