[C2hs] patch applied (c2hs): Pretty print ffi import strings as proper Haskell strings

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Sun May 13 21:10:22 EDT 2007


Wed May  2 13:52:32 PDT 2007  Duncan Coutts <duncan.coutts at worc.ox.ac.uk>
  * Pretty print ffi import strings as proper Haskell strings
  foriegn import ccall "foo\\bar.h baz" baz :: IO ()
  Since the import spec string is actually parsed by the compiler as a
  Haskell string we should use show to pretty-print it.
  For one thing this means that windows backslash directory separators
  get escaped properly "foo\\bar".

    M ./c2hs/gen/GenBind.hs -2 +2


More information about the C2hs mailing list