[Haskell-cafe] FFI to double constants, printf

Maurí­cio briqueabraque at yahoo.com
Fri Jul 17 18:41:47 EDT 2009

When we printf doubles from C (like when using hsc2hs to bind to a
constant) we can get something that's not valid Haskell. See these
2 examples:



Do you know some way to printf a double using printf (or any other
standard function) that's always going to give me valid Haskell
text, even in special cases?


More information about the Haskell-Cafe mailing list