Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] "Core" Coq typeclasses

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] "Core" Coq typeclasses


Chronological Thread 
  • From: Pierre Courtieu <pierre.courtieu AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] "Core" Coq typeclasses
  • Date: Mon, 19 Jun 2017 14:45:07 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=pierre.courtieu AT gmail.com; spf=Pass smtp.mailfrom=pierre.courtieu AT gmail.com; spf=None smtp.helo=postmaster AT mail-wr0-f179.google.com
  • Ironport-phdr: 9a23:FhQMuBev6+x7b7/+aj5fU95IlGMj4u6mDksu8pMizoh2WeGdxcuyZx7h7PlgxGXEQZ/co6odzbGH7Oa4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5Y75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v9LlgRgP2hygbNj456GDXhdJ2jKJHuxKquhhzz5fJbI2JKPZye6XQds4YS2VcRMZcTy5OAo28YYUBDOQPIPhWoJXmqlQUsRezHxOhCP/zxjJKgHL9wK000/4mEQHDxAEuBdMOv2rOrNXvKqgZTP64zK7VzTXZc/NW2Cny6JXVeR0mufGMXKx/cdDLyUYxDQ/KklKQqZH/PzOJ1+QCrXWb4vFvVeKqkWEnqgVxriKzyccrj4nEn4QYwU3H+yVh2Is5O8G0RUphbdOnEJZcrTyWO5V1T884Xm1luiI3x7sbspChZicK0o4oxxvHZvyHbYeI5hXjWf6UIThihXJlfKuzhhio8US80+H8WNS43VROoyZfndnMsXcN1xPX6seZUPdy4kCh2TOX2wDS7OFLP1w0mLLFJ5I9xrM8jJkevETZEiPrhkn7j7Waelgm9+Ws8+jnZ6/ppp6YN496kAH+NaEul9SnAeQ5LAcORXKb9vqm2LL/+k35Xa9KjuE3kqbHrZDXPssbpqujDA9U1oYv8QqwDzCj0NgAh3kIMEpFeA6bj4juI1zBPPf4De6mj1uwlDdr2uvJM6b6ApTNK3jDiK3ucax8605a0gozzMpQ64haCrEbc7rPXRras8WQJRskOUTgyOH+Td55y4k2WGSVA6bfPrmE4nGS4ed6G+iBfpUY8B36NuI55vPzxSshmFIHZ6Tv1pwKcmy5E+lOLECQYH6qidAERzRZ9jEiRfDn3QXRGQVYYGy/Cudlvmk2

Hi

my biggest problem with typeclasses is the error messages of the unification engine. It is really hard, even for confirmed users, to figure out from the message why some statement can't be coerced to something typable.

Something should be said about typeclasses vs functors/modules but I never came to a clear conclusion about it.

P.



2017-06-19 14:00 GMT+02:00 Benjamin C. Pierce <bcpierce AT cis.upenn.edu>:
In preparation for the upcoming DeepSpec summer school, I’m working on putting together an “even gentler tutorial” on typeclasses in Coq.  I’d be grateful for the community’s advice on what are the most important / most used typeclasses in the standard libraries (or in widely used contributed libraries).  I plan to use a couple of these as running examples and make a list of the rest so that people know they are there.

More generally, I’d love to hear opinions on pragmatic aspects of typeclasses and how to get newcomers up to speed… E.g.:
  • What are the most puzzling gotchas that people new to coq’s typeclasses tend to get stuck on, and what are some good strategies for getting un-puzzled?
  • What advice should be given to new typeclass users to avoid getting themselves in trouble?  What are the tradeoffs between typeclasses and other modularity mechanisms in Coq.
Thanks!

    - Benjamin






Archive powered by MHonArc 2.6.18.

Top of Page