🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.functional
Article #558

Help required with PreludeText (Haskell)

#558
From: Sam Waugh
Date: Tue, 10 Nov 1992 04:49
16 lines
969 bytes
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
Technical Details
Message-ID: <waugh.721370946@probitas>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!probitas!waugh

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.functional
Path: arc1-ca.pugleaf.net!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