Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Polymorphism (Ford)
----------------------------------------------------------------------
Message: 1
Date: Mon, 11 Jul 2016 21:24:24 +0200
From: Ford <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] Polymorphism
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
Hello,
Why exporting a function doesn't force you to make its inputs derive a
typeclass? That would solve all name clashing (just derive also or give
different name, because it is obviously too generic).
Why can't you overload field accessor via typeclass easily?
data Foo = Foo {HasSize => size :: Int}
> :t size
HasSize a => size a -> Int
Why is String not deprecated yet, throwing warning into your face.
I think that haskell is really missing some uniformity, there is nothing like
AbstractString and AbstractArray (something like java Collections) so a lot of
modules introduces its own functions that are just aliases for others. (Even
Prelude itself suffers from this - map fmap liftM, pure return...).
King regards!
Odesláno z BlueMail
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20160711/5a5997e4/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 97, Issue 10
*****************************************