[Haskell-cafe] Main function error

2009-05-12 Thread applebiz89
I have compiled each function independently and they have compiled the only problem is the main function.. I keep getting the error 'films not defined' and I am not sure why [code] type Title = String type Director = String type Year = Int type Fan = String data Film = Film Title Director

Re: [Haskell-cafe] Main function error

2009-05-12 Thread Jochem Berndsen
applebiz89 wrote: main :: IO () main = do doFilmsInGivenYear films main You pass as argument to 'doFilmsInGivenYear' the value 'films', which is not defined. Instead, I think you meant 'testDatabase'. All the best, -- Jochem Berndsen | joc...@functor.nl GPG: 0xE6FABFAB

Re: [Haskell-cafe] Main function error

2009-05-12 Thread John Van Enk
What would you expect the program to output? You probably mean 'testDatabase' instead of 'films'. /jve On Tue, May 12, 2009 at 12:59 PM, applebiz89 applebi...@hotmail.com wrote: I have compiled each function independently and they have compiled the only problem is the main function.. I

Re: [Haskell-cafe] Main function error

2009-05-12 Thread Alexander Dunlap
On Tue, May 12, 2009 at 9:59 AM, applebiz89 applebi...@hotmail.com wrote: I have compiled each function independently and they have compiled the only problem is the main function.. I keep getting the error 'films not defined' and I am not sure why [code] type Title = String type Director

Re: [Haskell-cafe] Main function error

2009-05-12 Thread Daniel Fischer
Am Dienstag 12 Mai 2009 18:59:47 schrieb applebiz89: I have compiled each function independently and they have compiled the only problem is the main function.. I keep getting the error 'films not defined' and I am not sure why [code] type Title = String type Director = String type Year =

Re: [Haskell-cafe] Main function error

2009-05-12 Thread Tillmann Rendel
applebiz89 wrote: I have compiled each function independently and they have compiled the only problem is the main function.. I keep getting the error 'films not defined' and I am not sure why Well, because it is not defined :) type Title = String type Director = String type Year = Int type