Re: Is it possible to build in a file in a haskell program??
Sorry. As a begginner (Kinda) with haskell I completelly forgot how to work with Modules but anyway I completelly understood what you meant now. My problem actually is writing the program thats write the little haskell program (Or a String) out of the bin file. Can you give me a clue? Of course most of the code is easy but the tricky part comes to the string representing the file, I mean won't haskell just write exactly like the bin file is written (Thus in weird stuff can't just be copied and pasted) Or maybe if I read the file in Binary mode and write it in Text mode (Using IOExts Library)??? Best Regards Alex ----- Original Message ----- From: "Keith Wansbrough" <Keith.Wansbrough@cl.cam.ac.uk> To: "Alexandre Weffort Thenorio" <alethenorio@home.se> Sent: Tuesday, April 29, 2003 8:11 PM Subject: Re: Is it possible to build in a file in a haskell program??
Thanks but I am not sure what exactly you mean. I've done this: [..] Tried compiling main.hs file but it says "Failed to load interface for MyBinFile".
This means you haven't compiled MyBinFile.
Do you know about Haskell modules? You should read the relevant section of the Haskell Report (www.haskell.org/onlinereport/), and also the documentation of your compiler.
--KW 8-) -- Keith Wansbrough <kw217@cl.cam.ac.uk> http://www.cl.cam.ac.uk/users/kw217/ University of Cambridge Computer Laboratory.
participants (1)
-
Alexandre Weffort Thenorio