On Jul 19, 2009, at 04:13 , Ivan Lazar Miljenovic wrote:
1. Some Attribute values take something like (Either Bool String); this
  is used when upstream indicates that two different types of values
are allowed. Typically in this kind of situation, the allowed String
  values 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


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to