Hello Johannes, Wednesday, November 15, 2006, 10:36:10 AM, you wrote:
> What methods and tools are there for i18n of Haskell programs? > In Haskell, I see at least two problems: > a) reading the file is in IO if you need utf8 and other encodings support, you can use Streams lib: h <- openFile "test" ReadMode >>= withEncoding utf8 http://haskell.org/haskellwiki/Library/Streams > b) there are no "global variables". implicit parameters perhaps? there is a sort of global vars: ref_command = unsafePerformIO$ newIORef$ error "undefined ref_command" uiStartCommand command = do writeIORef ref_command command .. uiStartProcessing filelist = do command <- readIORef ref_command .. but implicit parameters, of course, are more intelligent approach -- Best regards, Bulat mailto:[EMAIL PROTECTED] _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe