Re: base not detecting Double/Float machine sizes (QNXNTO)

Stephen Paul Weber <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <20121220182046.GA1850@singpolyma-svelti>
Somebody claiming to be Stephen Paul Weber wrote:
>libraries/base/Foreign/C/Types.hs:162:25:
>
>Not in scope: type constructor or class `HTYPE_FLOAT'

After much more digging into the source, it seems that the `Storable` class 
for the CFloat and CDouble types assumes that HTYPE_FLOAT and HTYPE_DOUBLE 
have the right storage characteristics for float and double.  I'm trying to 
dig into how these are defined now, but it seems from my first look like 
this assumption should always hold.  So what is the configure check for?  
I keep trying to read the M4 code for the configure check, but it's quite 
a mess.

Nothing other than the `Storable` instance seems to make use of the detected 
HTYPE_FLOAT or HTYPE_DOUBLE for anything material (unless there are also 
things which just make assumptions about the nature of the newtype, which is 
possible).

-- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJQ01b9AAoJENEcKRHOUZzeo28QAND4pW1KBK+r4A3e7QqUggeU
ajmGR49FU5inAUnlWiTkklnEEcuTNfF/rXUDt6bJvpuDqRBLtdDXgtHVCJhbNpc5
8mpEfqxXvJVnk18GK4y23Is+1TJSWaMCvL1pTOZ+XmrohNeAK4JdRsl3KX1XrR9q
40zUQ3dwxXCApruTgX1o30b9eWEW7hWUMsw2T5Jw0/hUMmtOu5G2dnG53DKtszCd
DP8ggD0jZY9UDl7GKxxx3cSPRYXcKW6FUnwmKfQ1K2kzcdYxAWO9T3PmZucLIX81
iGcR6mWMICHgyxJJHs2h4ehH+XR1/Z39qo1D1Jo2qk3gxcW3Xu/KK4gz1QSIGSJf
KTtZzzbV9FnEOW3r79w3OBy+vnSc3Z6X3gTViAeZt9y0EFn1EmPRe3441Q7IJkLx
gCmJ94VHZGhUxWJrqWxuFoeO7VYMlXuSLlwwgPCZCzHqmsTB8nRG63KUx1GoKloO
8sSCKje7Bdsy1ljHVVg3gdHLvlcpjUks47QA37h6lFeeR+ttYWz9wFhINtPx5fDn
m/he0XoclQ7X1amu5AWOZuFQ6n+QyycCSURwRvw/VHrbv87JKWl8EM80VOg1F9DP
CN7WrWk2Dr89Tu8nf1D/e8N5f72zZGppx7MtOpoH1LB+wzyGsjmVBOIsl60/Xow3
IVwtThEwWqTeuXlwh5h2
=Ga9D
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.