On Jul 19, 2009, at 04:13 , Ivan Lazar Miljenovic wrote:
1. Some Attribute values take something like (Either Bool String); thisis used when upstream indicates that two different types of valuesare allowed. Typically in this kind of situation, the allowed Stringvalues are limited to a few specific values, so the usage of Either typically indicates that they should be replaced with a custom value type.
Shouldn't String then be replaced by a sum type? In fact, as described this would subsume the Either as well.
> -- replace Either Bool String: AttrN are the strings, AltValue the bool
> data upstreamValue = AttrA | AttrB | AltValue -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [email protected] system administrator [openafs,heimdal,too many hats] [email protected] electrical and computer engineering, carnegie mellon university KF8NH
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
