🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.funkcyjne
Article #918

problem z pasec

#918
From: lowik86
Date: Wed, 08 Aug 2007 12:01
17 lines
1412 bytes
ze strony http://legacy.cs.uu.nl/daan/download/parsec/parsec.html 
wrzucilem taki kawalek kodu:

price   :: Parser Int   -- price in cents
price   = lexeme (do{ ds1 <- many1 digit
                     ; char '.'
                     ; ds2 <- count 2 digit
                     ; return (convert 0 (ds1 ++ ds2))
                     })
           <?> "price"
           where
             convert n []     = n
             convert n (d:ds) = convert (10*n + digitToInt d) ds

i wywala mi blad : Variable not in scope: 'digitToInt'
co robie nie tak?
musza importowac jakis modul?ale jakie?z gory dzieki
Technical Details
Message-ID: <f9cbao$u8f$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail
From: "lowik86@onet.eu" <lowik86@onet.eu>
Newsgroups: pl.comp.lang.funkcyjne
Subject: problem z pasec
Date: Wed, 08 Aug 2007 14:01:29 +0200
Organization: Onet.pl
Lines: 17
Message-ID: <f9cbao$u8f$1@news.onet.pl>
NNTP-Posting-Host: blg27.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1186574489 30991 83.28.200.27 (8 Aug 2007 12:01:29 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Wed, 8 Aug 2007 12:01:29 +0000 (UTC)
X-Sender: 4z7QeQq3Wc/d50GmqnhbRQ==
X-Antivirus-Status: Clean
X-Antivirus: avast! (VPS 000764-1, 2007-08-07), Outbound message
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit