<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I've made the changes that I see fit, regarding <a href="http://ghc.haskell.org/trac/ghc/wiki/TypeLevelNamingIssues">http://ghc.haskell.org/trac/ghc/wiki/TypeLevelNamingIssues</a>  As I wanted a little feedback before pushing, the changes are at my fork of the base repo, at <a href="https://github.com/goldfirere/packages-base">https://github.com/goldfirere/packages-base</a></div><div><br></div><div>Here is what I've done:</div><div>- The function with type (a :~: b) -> a -> b is now named castWith.</div><div><br></div><div>- There is a new function (in Data.Type.Equality) gcastWith :: (a :~: b) -> ((a ~ b) => r) -> r. Type inference for this function works well.</div><div><br></div><div>- I've renamed EqualityT and CoercionT to EqualityType and CoercionType. The T's at the ends of the old names made me think of monad transformers. I don't like the new names, though.</div><div><br></div><div>- EqualityType's method is now maybeEquality (instead of equalsT). CoercionType's method is now maybeCoercion (instead of coercionT).</div><div><br></div><div>- I've added (==) as type-level Boolean equality to Data.Type.Equality. Instead of the fully-general poly-kinded definition, my experience has shown that a recursive definition of Boolean equality over algebraic types is superior to the general poly-kinded one. So, (==) is an open type family, with many closed type family specializations over certain types (including * and (k1 -> k2), as well as promoted versions of the base datatypes).</div><div><br></div><div>- An earlier version of TypeLits had Nat1 as a canonical unary natural number type and conversions to and from. I expect this will be a popular addition, so I restored it. I also added instances of Eq, Ord, Data, Typeable, Read, Show, Num, Integral, Real, Enum, and Ix, in case someone wants to use Nat1 at the term level.</div><div><br></div><div>Questions for you all:</div><div>- Better name ideas for EqualityType/maybeEquality and CoercionType/maybeCoercion? I'm very unsatisfied.</div><div><br></div><div>- OK to add (==)? There is a naming tension with the (<=) and (<=?) operators in TypeLits. Following the convention of appending ? for Boolean operators, (==) should be spelled (~?). But, I don't like that terribly much, for aesthetic more than practical reasons. Please disagree with me or suggest a more unified structure. (Maybe the constraint (<=) should really be (<~)... but I think that's *very* confusing, as it looks like an arrow!)</div><div><br></div><div>- OK to add Nat1? Comments on the instances?</div><div><br></div><div>Thanks,</div><div>Richard</div></body></html>