Hi, I have a program that processes files and builds up records for later insertion into a database. (The actual program uses a lexer and some helper functions to extract the necessary information from the files; the attached program reproduces the behavior in question.) When I run the real program or the attached sample program I get the error Fail: ios.hs:50: Missing field in record construction Main.sigPriority (This is using GHC-6.2.1 on Mac OS X 10.3.3 built from darwinports.) I don't understand the reason for this error message. It seems to be more constraining than my reading of section 3.15.3 of the Report (Updates Using Field Labels). There is a workaround: explicitly update the field sigPriority. I had hoped that that would not be necessary. Could someone explicate this? Best Wishes, Greg Gregory Wright Antiope Associates LLC gwright@antiope.com
On Mon, May 17, 2004 at 11:11:52AM -0400, Gregory Wright wrote:
When I run the real program or the attached sample program I get the error
Fail: ios.hs:50: Missing field in record construction Main.sigPriority
(This is using GHC-6.2.1 on Mac OS X 10.3.3 built from darwinports.)
I don't understand the reason for this error message. It seems to be more constraining than my reading of section 3.15.3 of the Report (Updates Using Field Labels).
I think you should change ,,Signature'' in lines 50, 56 to ,,peSig event''. Right now you are using record construction, not update. Best regards, Tom -- .signature: Too many levels of symbolic links
On Mon, May 17, 2004 at 05:22:02PM +0200, Tomasz Zielonka wrote:
I think you should change ,,Signature'' in lines 50, 56 to ,,peSig event''. Right now you are using record construction, not update.
,,(peSig event)'' to be precise. Tom -- .signature: Too many levels of symbolic links
Thank you Tom! Silly me! Serves me right to be looking for a 5 dollar explanation when a 10 cent fix is all that is needed. Sheepishly, Greg On May 17, 2004, at 11:39 AM, Tomasz Zielonka wrote:
On Mon, May 17, 2004 at 05:22:02PM +0200, Tomasz Zielonka wrote:
I think you should change ,,Signature'' in lines 50, 56 to ,,peSig event''. Right now you are using record construction, not update.
,,(peSig event)'' to be precise.
Tom
-- .signature: Too many levels of symbolic links _______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
participants (2)
-
Gregory Wright -
Tomasz Zielonka