[Haskell-cafe] hsc2hs behaves differently under Windows?
djsamperi at gmail.com
Wed Apr 16 05:08:48 UTC 2014
To answer my own question, one work-around (not a convenient one)
is to list parameters multiple times after the format string in such
a way that the desired params appear in the right order.
On Tue, Apr 15, 2014 at 11:42 PM, Dominick Samperi <djsamperi at gmail.com> wrote:
> 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
> Is there a work-around for this Windows issue?
More information about the Haskell-Cafe