by all means, lets have warm fuzzy precedence declarations
infix(nearly right) (exp (2*i*pi) + 1) :-)
infix(mostly left) (((\x->cos x + i*(sin x)) (2*pi)) + 1) (-:
who says that all the fun has to start in the type system?-)
we would probably need to refer to hyperreals, in order to
intr
David House wrote:
> Also, it provides an infinite space for fixities. I think the problem
> 'binds tighter than X but not as tight as Y', where X and Y are only
> fixity integer apart is somewhat common, and this would fix it. It
> would allow for extensibility into the future, where the operator
I started this e-mail thread on HaskellCafe instead of HaskellPrime
because it was minimal, backwards-compatible, valid Haskell 98 (or very
nearly so) and could go (now) into GHC if someone saw fit to put it in.
> If you think C++ is not overly complicated, just what is a protected
> abstract v
On Nov 7, 2006, at 11:47 , [EMAIL PROTECTED] wrote:
Henning Thielemann wrote:
On Tue, 7 Nov 2006, Simon Marlow wrote:
I'd support fractional and negative fixity. It's a simple change to
make, but we also have to adopt
http://hackage.haskell.org/cgi-bin/haskell-prime/trac.cgi/wiki/
FixityR
Hello all,
I suggest [EMAIL PROTECTED], the GUI task force mailing list; nothing is
going on there at the moment, but it seems the most appropriate list.
On Tue, 07 Nov 2006 14:52:24 +0100, Bulat Ziganshin
<[EMAIL PROTECTED]> wrote:
Hello Jeremy,
Friday, October 27, 2006, 7:12:44 PM,
Let's remember that if something is broke, it's only _right_ to _fix_
it. I patiently waited for someone else to make that pun.
Understanding the language won't be much harder, but understanding
fixity declarations will become a task. Consider:
infixl -1.7521 -- what and why?
As the operator s
I don't see how it's too complex. Isn't
infixl ??
prec ?? < $
(??) = whenOperator
exactly what you want to say?
Sure you can solve the problem with negative fixities, but that's less
expressive than the above (the total order is actually an
over-specification). You want ?? to bind more tight
On Tue, 2006-11-07 at 14:29 +0100, Henning Thielemann wrote:
> I also tried to create some music with the SuperCollider wrapper by Rohan
> Drape and the Haskore music package.
That's great, I have used the OSC part of the wrapper but not the rest,
and haven't looked at Haskore yet but have some ti
On 07/11/06, Jon Fairbairn <[EMAIL PROTECTED]> wrote:
I must say though, that I don't like the reasoning that we
can put in fractional fixities because it's a small
change. The way to hell is through a series of small
steps. If using integers to express fixities is a bit of a
hack, switching to r
On Wednesday 08 November 2006 08:23, Daniel McAllansmith wrote:
Ahhh, whoops. It seems that lack of compilation errors is not a universal
sign that a haskell program is correct.
> permute 0 d = mkD []
mkD doesn't allow distributions with 0 sum probabilities, so you'd need to
restrict the rang
On Wednesday 08 November 2006 05:41, DavidA wrote:
> To get the result you want, take the list of (letter, probability) pairs,
> and generate the Cartesian product of k copies of itself.
>
> cartProd 0 xs = [[]]
> cartProd k xs = [x:ys | x <- xs, ys <- cartProd (k-1) xs]
>
> The result is all seque
Having thought longer about it, it seems to be an issue with
functional dependencies and overlapping instances.
Perhaps, because an overlapping instance may be defined in some other
module which would trump the Iso instance for Either, the type
inference mechanism cannot commit to the instance pr
I'm curious about the implementation of bang patterns, and the
implications for performance. Previously on this list, Lemmih has
pointed out that throwing in an extra `seq` here and there to force
strictness is a bad idea, unless you do it very carefully. He points
out that the strictness analyzer
On 2006-11-07 at 18:30+0100 Henning Thielemann wrote:
> On Tue, 7 Nov 2006, Simon Marlow wrote:
>
> > This is a much more heavyweight change, and its not a clear win.
>
> Haskell 2 ? :-)
>
> > If you'd like to make a concrete proposal, then feel free to do so and
> > I'll make sure it gets onto
On Tue, 7 Nov 2006, Simon Marlow wrote:
> This is a much more heavyweight change, and its not a clear win.
Haskell 2 ? :-)
> If you'd like to make a concrete proposal, then feel free to do so and
> I'll make sure it gets onto the wiki.
What about the one of Jón Fairbairn ?
http://www.haskell.
What you're trying to do is called permutations with repetition, whereas
permutations (unqualified) usually refers to permutations without repetition
(and that's what the Haskell code you found is doing).
See http://en.wikipedia.org/wiki/Permutations_and_combinations
To get the result you want,
Henning Thielemann wrote:
> On Tue, 7 Nov 2006, Simon Marlow wrote:
>
>> I'd support fractional and negative fixity. It's a simple change to
>> make, but we also have to adopt
>>
>>
> http://hackage.haskell.org/cgi-bin/haskell-prime/trac.cgi/wiki
> /FixityResolution
>>
>> I've added the proposal t
On Tue, 7 Nov 2006, Simon Marlow wrote:
> I'd support fractional and negative fixity. It's a simple change to
> make, but we also have to adopt
>
> http://hackage.haskell.org/cgi-bin/haskell-prime/trac.cgi/wiki/FixityResolution
>
> I've added the proposal to the end of that page. In fact, the
"Diego Navarro" <[EMAIL PROTECTED]> writes:
> There should be a separate, moderated Haskell-announcements list. I
> filter out haskell-cafe into a folder and read it separately from my
> main inbox, but I'd like to have important announcements directly into
> my inbox, and haskell@haskell.org stil
[EMAIL PROTECTED] wrote:
> Hello Dan,
>
> Saturday, November 4, 2006, 5:07:15 AM, you wrote:
>
>> Here's an idea that (I think) is useful and backwards compatible:
>> fractional and negative fixity.
>
> yes, i think the same. for example, once i've tried to define postfix
> 'when' operator like tho
Hello Nuno,
Monday, October 30, 2006, 8:45:24 PM, you wrote:
> What am i coding in specific? I receive a list in the form:
>
> -- l1 is a pair of the identifier and the associated probability
> l1 = [("A",0.6),("B",0.2)]
>
> I must return the permutation with k levels; for ex
Hello Jeremy,
Friday, October 27, 2006, 7:12:44 PM, you wrote:
> I'd ask the community to send patches via this list.
i suggest to use [EMAIL PROTECTED] for this purpose. at least
other libs maintained there
--
Best regards,
Bulatmailto:[EMAIL PROTECTED]
_
Hello Diego,
Tuesday, November 7, 2006, 3:27:51 PM, you wrote:
> There should be a separate, moderated Haskell-announcements list. I
you can also read Haskell Weekly News for this purpose
--
Best regards,
Bulatmailto:[EMAIL PROTECTED]
This message seems to have lingered in obscuriy for a while, I only just
received it.
What about
permLev :: Int -> (a -> a -> a) -> [a] -> [a]
permLev 0 _ _ = []
permLev 1 _ xs = xs
permLev k f xs
= do x <- xs
y <- permLev (k-1) f xs
return (f x y)
l1 :: [(String,Double)]
On Mon, 6 Nov 2006, alex wrote:
> I originally did this screencast a while ago for a 6 minute constrained
> talk which explains why it's so short. This was about my first Haskell
> program, I've progressed some since this experiment and will make a new
> screencast soon.
I also tried to create
Hi all,
I am coding a zip application (using huffman algorithm) for academic reasons.
In the process i needed a permute function that i coded but disliked a lot..
I went to the internet looking for a good generic permute algorithm in haskell the best one i found was not generic at all:
i
Hi all,
I'd like to announce that we have a new team of maintainers in place
for wxHaskell, so we're hoping that this list will see a significant
increase in activtiy in the future.
We have several near-term objectives, which will likely occur in
roughly the order below:
* Pull together all of
But DEC's language FOCAL had fractional line numbers. :)
On Nov 7, 2006, at 06:00 , Henning Thielemann wrote:
On Mon, 6 Nov 2006, Bulat Ziganshin wrote:
Hello Henning,
Monday, November 6, 2006, 1:27:54 PM, you wrote:
print msg `on` mode==debug
but failed because my code frequently contai
There should be a separate, moderated Haskell-announcements list. I
filter out haskell-cafe into a folder and read it separately from my
main inbox, but I'd like to have important announcements directly into
my inbox, and haskell@haskell.org still has some chatty
questions-and-answers sessions.
On Mon, 6 Nov 2006, Bulat Ziganshin wrote:
> Hello Henning,
>
> Monday, November 6, 2006, 1:27:54 PM, you wrote:
>
> >> print msg `on` mode==debug
> >>
> >> but failed because my code frequently contains '$' and there is no way
> >> to define operation with a lower precedence
>
> > This could
30 matches
Mail list logo