home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.functional
- Path: sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!probitas!waugh
- From: waugh@probitas.cs.utas.edu.au (Sam Waugh)
- Subject: Help required with PreludeText (Haskell)
- Message-ID: <waugh.721370946@probitas>
- Keywords: Questions, simple
- Sender: news@newsroom.utas.edu.au
- Organization: University of Tasmania, Australia.
- Date: Tue, 10 Nov 1992 04:49:06 GMT
- Lines: 16
-
- Sorry to be posting a simple question to the net, but I can't find the
- answer anywhere.
-
- The function readsPrec is defined within the Text class.
- - What does the "Prec" bit stand for; and
- - why does readsPrec require an Int value (I can't see why this is used).
- [the type being readsPrec :: Int -> ReadS a]
-
- I've been looking for answers in the Haskell Report (v1.1) and every place
- that readsPrec is used the Int value is thrown away. Why not use reads
- within the class?
-
- Thanks very much for any help.
-
- Sam Waugh
- email: waugh@cs.utas.edu.au
-