Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [ANN] Tywith - Generating functions from type definitions
@ 2005-02-25 14:03 Martin Sandin
  0 siblings, 0 replies; only message in thread
From: Martin Sandin @ 2005-02-25 14:03 UTC (permalink / raw)
  To: caml-list

Tywith Module version 0.3 - initial release

Tywith is an OCaml camlp4 parser extension which
derives functions from type definitions. It's
currently capable of generating 'string_of_<type>',
'map_<type>', and 'fold_<type>' functions for alias
and variant types containing tuples and other types
with the appropriate functions defined. Tywith
special-cases built-in types such as list, int, and
string to provide or use the appropriate functions.

This package extends OCaml with the following
syntactic construction

   type <def> with <id> [,<id>..])

The id's currently supported are 'string_of', 'map',
and 'fold', which will result in the generation of the
appropriate functions. The fold functions will
typically depend on the presence of a map function for
any type mentioned inside the definition which depend
on a type parameter.

Download Tywith from
http://www.seedwiki.com/wiki/shifting_focus/tywith
or directly from
http://www.guldheden.com/~sandin/files/tywith03.zip


Martin Sandin
om_sandin@yahoo.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-25 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-25 14:03 [ANN] Tywith - Generating functions from type definitions Martin Sandin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox