🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: konwersja typu IO Int do typu IO

#377
From: Tomasz Zielonka
Date: Sun, 22 Jun 2003 08:36
21 lines
1321 bytes
Pawel Kaczmarek napisał:
> 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

Odpisałem Ci na comp.lang.functional, chyba trochę za szybko ;)

> Pawel Kaczmarek

Pozdrawiam,
Tomek

PS. Skąd taki wysyp pytań o Haskella z Torunia? :)

-- 
.signature: Too many levels of symbolic links
Technical Details
Message-ID: <slrnbfaqkk.ag9.t.zielonka@zodiac.mimuw.edu.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!mimuw.edu.pl!news.mimuw.edu.pl!not-for-mail
References: <bd3pe4$8sv$1@ultra60.mat.uni.torun.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!mimuw.edu.pl!news.mimuw.edu.pl!not-for-mail
From: Tomasz Zielonka <t.zielonka@students.mimuw.edu.pl>
Newsgroups: pl.comp.lang.funkcyjne
Subject: Re: konwersja typu IO Int do typu IO
Date: Sun, 22 Jun 2003 08:36:37 +0000 (UTC)
Organization: MIMUW
Lines: 21
Message-ID: <slrnbfaqkk.ag9.t.zielonka@zodiac.mimuw.edu.pl>
References: <bd3pe4$8sv$1@ultra60.mat.uni.torun.pl>
Reply-To: t.zielonka@students.mimuw.edu.pl
NNTP-Posting-Host: zodiac.mimuw.edu.pl
Mime-Version: 1.0
X-Trace: kenny.mimuw.edu.pl 1056270997 12756 10.1.1.1 (22 Jun 2003 08:36:37 GMT)
X-Complaints-To: abuse@news.mimuw.edu.pl
NNTP-Posting-Date: Sun, 22 Jun 2003 08:36:37 +0000 (UTC)
User-Agent: slrn/0.9.7.3 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit