[Haskell-cafe] hsc2hs behaves differently under Windows?

Dominick Samperi djsamperi at gmail.com
Wed Apr 16 03:42:43 UTC 2014


It seems that hsc2hs behaves differently under Windows
(when compared with Linux), causing build problems.

An example foo.hsc is attached, along with the foo.hs
that is generated using hsc2hs under Windows.

Note the expressions my_$s in the result. It appears
that under Windows the %n$s POSIX printf notation
is not recognized. The correctly generated file that
is produced under Linux is also attached, in
foo-linux.hs. Note that proper substitution happens
here.

Is there a work-around for this Windows issue?

Thanks,
Dominick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.hs
Type: application/octet-stream
Size: 295 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140415/efa788e3/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.hsc
Type: application/octet-stream
Size: 215 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140415/efa788e3/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo-linux.hs
Type: application/octet-stream
Size: 287 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140415/efa788e3/attachment-0005.obj>


More information about the Haskell-Cafe mailing list