12 Mar
2009
12 Mar
'09
11:53 p.m.
On 2009 Mar 12, at 22:54, Mark Spezzano wrote:
I was wondering what the best way to implement Natural number would be. Is there a package which already does this?
type-level on Hackage.
2. Use the type data Natural = Zero | Succ !Natural
One of the reasons people use type-level naturals is to get laziness; you've made this strict. Is there a reason? -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH