The numeric c types are (effectively) integral, too.

Jeff Shaw shawjef3 at gmail.com
Wed Mar 27 17:58:21 CET 2013


On 3/27/2013 12:16 PM, Brandon Allbery wrote:
> On Wed, Mar 27, 2013 at 12:08 PM, Jeff Shaw <shawjef3 at gmail.com 
> <mailto:shawjef3 at gmail.com>> wrote:
>
>     I looked through the header files for FreeBSD's platforms, and
>     time_t is always an __int32 or __int64. Maybe Linux or NetBSD can
>     provide an exception.
>
>
> There have been times when it was a struct made of multiple integral 
> values, also.
>
> -- 
> brandon s allbery kf8nh sine nomine associates
> allbery.b at gmail.com <mailto:allbery.b at gmail.com> 
> ballbery at sinenomine.net <mailto:ballbery at sinenomine.net>
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
That's fascinating. If we're concerned with those cases in base, we 
should probably remove at least the Enum, Num, and Real instances from 
CTime, or provide special cases. I imagine Show and Read become 
nontrivial, as well.

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130327/d09a81bb/attachment-0001.htm>


More information about the Libraries mailing list