home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / function / 1342 < prev    next >
Encoding:
Text File  |  1992-11-09  |  942 b   |  28 lines

  1. Newsgroups: comp.lang.functional
  2. Path: sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!probitas!waugh
  3. From: waugh@probitas.cs.utas.edu.au (Sam Waugh)
  4. Subject: Help required with PreludeText (Haskell)
  5. Message-ID: <waugh.721370946@probitas>
  6. Keywords: Questions, simple
  7. Sender: news@newsroom.utas.edu.au
  8. Organization: University of Tasmania, Australia.
  9. Date: Tue, 10 Nov 1992 04:49:06 GMT
  10. Lines: 16
  11.  
  12. Sorry to be posting a simple question to the net, but I can't find the
  13. answer anywhere.
  14.  
  15. The function readsPrec is defined within the Text class.
  16. - What does the "Prec" bit stand for; and
  17. - why does readsPrec require an Int value (I can't see why this is used).
  18.     [the type being readsPrec :: Int -> ReadS a]
  19.  
  20. I've been looking for answers in the Haskell Report (v1.1) and every place
  21. that readsPrec is used the Int value is thrown away.  Why not use reads
  22. within the class?
  23.  
  24. Thanks very much for any help.
  25.  
  26. Sam Waugh
  27. email: waugh@cs.utas.edu.au
  28.