coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Adam Chlipala <adamc AT csail.mit.edu>
- To: Kevin Sullivan <sullivan.kevinj AT gmail.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] integrating extracted code into industrial frameworks
- Date: Thu, 06 Mar 2014 07:23:05 -0500
My response here is in danger of coming across as rudely close to
"RTFM," but: have you read the whole chapter of the Coq reference
manual called "Extraction of programs in Objective Caml and Haskell"?
There I think you find all the commands you need to do extraction to
alternative type representations, as long as your original code
contains no explicit pattern matches on those types. On 03/06/2014 07:14 AM, Kevin Sullivan wrote: Thanks Greg and
Cedric,
I'm not
necessarily committed to Haskell. What hooks did you, Greg, have in
mind for doing such mappings/replacements when extracting to OCaml?
Kevin
On Wed, Mar 5, 2014 at 11:05 PM, Greg
Morrisett <greg AT eecs.harvard.edu>
wrote:
I don't have experience extracting Haskell, but when I do OCaml, I tend to map certain things (ascii, nat) to native OCaml types (e.g., char, bignum). I agree it's less than optimal, but that's the price of interoperability with legacy code... Anyway, there are good hooks for doing this kind of replacement. |
- [Coq-Club] integrating extracted code into industrial frameworks, Kevin Sullivan, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Greg Morrisett, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Kevin Sullivan, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Robbert Krebbers, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Adam Chlipala, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Kevin Sullivan, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Kevin Sullivan, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Kevin Sullivan, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Kevin Sullivan, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Cedric Auger, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Xavier Leroy, 03/06/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Kevin Sullivan, 03/07/2014
- Re: [Coq-Club] integrating extracted code into industrial frameworks, Greg Morrisett, 03/06/2014
Archive powered by MHonArc 2.6.18.