Integer was on purpose. One of the fields was 14 digits number.
Usually I parse EBCDIC directly on mainframe. This time it was exception.

Bartek

On Thursday 04 June 2009 22:38:53 Michael Snoyman wrote:
> I *do* know what Packed Decimal is; at my previous job, I actually had a
> whole Haskell library for parsing them. The only immediate suggestion that
> pops to mind is to use Int instead of Integer (Int uses regular 32- or
> 64-bit integers, Integer uses arbitrary precision integers). If you send me
> a sample Packed Decimal file, I can test out your code and get a better
> feel for it that way.
>
> Good luck with those mainframes, they can be beasts sometimes. Have you had
> to parse EBCDIC yet? *That* was fun, manually copying all those character
> codes from some IBM web page... ;)


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to