Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/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. How to override a type class instance ? (Johannes Joachim Engels)
2. Re: How to override a type class instance ? (Nadir Sampaoli)
----------------------------------------------------------------------
Message: 1
Date: Sat, 18 Oct 2014 10:02:36 +0000
From: Johannes Joachim Engels <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] How to override a type class instance ?
Message-ID:
<4d9b1ca5e471e143a1ac4eb5c3dd5bca213...@exdb02.ad.hft-stuttgart.de>
Content-Type: text/plain; charset="us-ascii"
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20141018/e15cc25c/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 18 Oct 2014 14:00:00 +0200
From: Nadir Sampaoli <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] How to override a type class instance
?
Message-ID:
<cafywtdt0ultwb7ijcp1izguxymxtyu5pesdpbzbe9ywkoyx...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi,
> say, I am not happy with the Show instances of arrays, e.g.
You usually wrap the data type in a newtype and use
GeneralizedNewtypeDeriving to derive the classes you want to keep. Then
write custom instances for the type classes you want to override.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20141018/1e1503a1/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 76, Issue 11
*****************************************