🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

konwersja typu IO Int do typu IO

#376
From: Pawel Kaczmarek
Date: Sun, 22 Jun 2003 08:29
10 lines
1055 bytes
Mam dwie funkcje.Jedna z nich zwraca IO Int.
Druga przyjmuje Int.Czy mozna napisac (jak?)
funkcje konwertujaca  IO Int na Int?
Komunikat bledu ponizej:

Couldn't match 'Int' against 'IO Int'
Expected type:Int
Inferred type:IO Int

Pawel Kaczmarek
Technical Details
Message-ID: <bd3pe4$8sv$1@ultra60.mat.uni.torun.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!not-for-mail
From: Pawel Kaczmarek <fletch@ultra60.mat.uni.torun.pl>
Newsgroups: pl.comp.lang.funkcyjne
Subject: konwersja typu IO Int do typu IO
Date: Sun, 22 Jun 2003 08:29:56 +0000 (UTC)
Organization: Uniwersytet Mikolaja Kopernika WMiI
Lines: 11
Message-ID: <bd3pe4$8sv$1@ultra60.mat.uni.torun.pl>
NNTP-Posting-Host: ultra60.mat.uni.torun.pl
X-Trace: ultra60.mat.uni.torun.pl 1056270596 9119 158.75.2.120 (22 Jun 2003 08:29:56 GMT)
X-Complaints-To: news@mat.uni.torun.pl
NNTP-Posting-Date: Sun, 22 Jun 2003 08:29:56 +0000 (UTC)
Keywords: monady konwersja IO Int do Int
User-Agent: tin/1.4.2-20000123 ("Polish") (UNIX) (SunOS/5.8 (sun4u))
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit