piyush-kurur/raaz — pull request #3 by satvikc (2012-09-21 13:54:58+00:00)
Title: Tests to capture reverse encoding of little and big endians added

There are some problems to capture the dual of a type like
dual of Word32LE = Word32BE
and allowing conversion from one to other.

Since we can not export the constructors from the original types module I have used unsafeCoerce to change the types. As the internal representation of both of them is Word32 so it does not matter, but think of some other way of integrating this in the test case without exporting the constructors.
One way would be to write test case for all of them separately or capture the dual relationship in a type class or a type family.
I have used the type family approach. Look into it and let me know if there are any problems.

-Satvik