24 Aug 2012 06:41
is this a type lits/nats bug or my incorrect understanding ?
Carter Schonwald <carter.schonwald <at> gmail.com>
2012-08-24 04:41:00 GMT
2012-08-24 04:41:00 GMT
Hello,
I'm trying to understand how much i can build on top of type literals, so as an exercise, i've been trying to see if I can define a type level
"absolute different of two natural numbers"
i have a minimal example that either type checks in a useless way, or gives a misleading type errors! (or perhaps i am fundamentally not understanding someting)
here's the gist for the misleading type error version
(it seems to indicate that SingI arity 2, rather than arity 1)
heres the gist for the version that type checks in a useless way!
and complains that it doesn't understand that (1<=2)
are these bugs in type nats, or am I missing something?
thanks!
Carter Schonwald
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users <at> haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RSS Feed