Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

Help

Juan M. Duran

25 Feb 2002 25 Feb '02
2:53 p.m.

Hi, I'm writting a small parser in Haskell and, when it is all done, I get the following problem: Type Binding. The thing is, I have 3 main functions: 1) Read the file, its type is: [Char] ->IO [Char] (see InputOutput.hs) 2) Parse a string (using words and readDec), its type is: Integral a => [Char] -> [a] (see Parse.hs) 3) Parse a list of integer, its type is: [Float] -> [[Float]] (Functions.hs) Now the problem is that I cannot run the first function, then use its results as an input of the second function and, finally, its results as the input of the third function. How can I fix this without modifing all my functions because they, independly, works fine. Juan ------------------------------------ Porque la única lucha que se pierde, es la que se abandona, ¡Ni un paso atrás!

Attachments:

  • main.hs (text/plain — 899 bytes)
  • InputOutput.hs (text/plain — 356 bytes)
  • Functions.hs (text/plain — 798 bytes)
  • Parser.hs (text/plain — 294 bytes)
0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.9.