🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.funkcyjne
2 messages
2 total messages Started by Pawel Kaczmarek Sun, 22 Jun 2003 08:29
konwersja typu IO Int do typu IO
#376
Author: 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
Re: konwersja typu IO Int do typu IO
#377
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads