two-level-constraints

所属分类:论文
开发工具:Haskell
文件大小:0KB
下载次数:0
上传日期:2013-02-13 16:58:30
上 传 者sh-1993
说明:  用于约束编程的Haskell库,基于Sheard的泛型统一论文中使用的两级类型,
(Haskell library for constraint programming, based on two-level types as used in Sheard s Generic Unification paper,)

文件列表:
ConstraintStore.hs (1512, 2012-12-28)
LICENSE (153, 2012-12-28)
MetaTerm.hs (2447, 2012-12-28)
Test.hs (6617, 2012-12-28)
TwoLevelTerms.hs (1203, 2012-12-28)
Unification.hs (2167, 2012-12-28)

This is a library for typeful constraint programming using two-level types in the style of Tim Sheard's Generic Unification functional pearl. I haven't bothered doing anything to make it remotely presentable or usable yet! * TwoLevelTerms.hs - the core of the library, this defines typeclasses providing support for two-level types and metavariables. Also defines Fix and Id, the trivial recursive and non-recursive meta-level type constructors. * MetaTerm.hs - provides meta-level type constructors supporting metavariables. * ConstraintStore.hs - monad transformers used to build a suitable environment to do constraint programming in. Use one StoreT for each type you'll need metavariables for. * Unification.hs - Generic(ish) first-order unification ala Sheard, using the MetaTerm type. Ripe for further generalisation! * Test.hs - Not a proper test suite by any means, more like a part-written Hindley-Milner typechecker using metavariables for both types and type schemes.

近期下载者

相关文件


收藏者