is unnecessarily clever.
But I agree that changing it might not be clever either.
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Haskell-prime mailing list
Haskell-prime@haskell.org
http
visual aspect of FDs is the absurd syntax.
On the left of |, the whitespace is (type arg) application,
but on the right, it suddenly denotes sequencing (tupling)
Best regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann
no static typing,
so that programming is much easier than at university where they teach
him Haskell. But he soon finds that he can leave out all Haskell type
signatures as well, so he thinks that Haskell is going in the right
direction...
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80
; .. Foo.some_function ...
Just an idea.
PS: GADTs are way cool! Any chance of having them in Haskell-Prime?
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Haskell-prime mailing list
Haskell
(in fact, for any kind of collection)
so I'd need the original Functor and Monad.
I couldn't use ghc's Rebindable Syntax feature
because the types for (=) would not match?
http://www.haskell.org/ghc/docs/6.4/html/users_guide/syntax-extns.html#rebindable-syntax
Best regards,
--
-- Johannes Waldmann
Malcolm Wallace wrote:
Johannes Waldmann [EMAIL PROTECTED] wrote:
For reference, in Java, ... there's nice syntactic sugar for looping
over collections: CollectionE c; for (E item : c) { ... }
In Haskell, this is called 'fmap'. :-)
OK, then show me an instance Functor Set so that I can
indicates that it might work for structures other than left-biased lists...
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Haskell-prime mailing list
Haskell-prime@haskell.org
http
think this is/should be possible with:
current Haskell? Haskell-Prime? Current ghc (what extensions)?
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Haskell-prime mailing list
Haskell
later:
it is between using a concrete collection data type
and an abstract one (a.k.a. type class). We had this discussion before.
respectfully submitted,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann
whether a declaration is private or not,
and you'd have to be careful when moving around code.
Respectfully submitted,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Haskell-prime mailing
already have the concept of type class
which gives us re-usable interfaces. Isn't that much better?
I was discussing that in (the second paragraph of):
http://www.haskell.org//pipermail/haskell-prime/2006-January/000230.html
Respectfully submitted,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076
modules.
Isn't this problem just *created* by the current
export mechanism? See this comment
http://www.haskell.org//pipermail/haskell/2006-February/017590.html
Best regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann
.
But with TH, you construct an abstract source code representation.
My idea here is different:
I want to write concrete source code that inspects (runtime)
type information. (So I don't have to worry about monads generating
unique names etc.)
Respectfully submitted,
--
-- Johannes Waldmann -- Tel
splicing runs earlier?
Best regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Haskell-prime mailing list
Haskell-prime@haskell.org
http://haskell.org/mailman/listinfo/haskell-prime
think such conventions should not go into the language
standard.
Best regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Haskell-prime mailing list
Haskell-prime@haskell.org
http
. On the other hand, it is recommended
practice to define only one data type per module, isn't it?
Respectfully submitted,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Haskell-prime mailing
would need g2 . f2 translated to g2 . fmap EFigure . f2
but of course at runtime, there should be no extra cost.
(I'll have one more comment which I send in a separate message
so that it shows up under its own header in the archive.)
Best regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076
valuable information,
and I don't see what a programmer (or a reader) benefits
from a language that allows to omit this information.
Respectfully submitted,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann
18 matches
Mail list logo