Re: [Haskell-cafe] extreme newbie: hugs prompt vs load module

2006-08-23 Thread Shao Chih Kuo
You can always load things inside ghci with: :m i.e. Prelude :m List Prelude List :m Control.Concurrent Prelude Control.Concurrent :m Control.Concurrent List Prelude List Control.Concurrent George Young wrote: [linux, ghci 6.4.3.20060820, hugs May 2006] I have just started learning Haskell.

Re: [Haskell-cafe] Useful: putCharLn {inspire by the Int-[Char] thread

2006-08-21 Thread Shao Chih Kuo
This might be easier: Prelude putStrLn $ return $ head this and that t Prelude Gene A wrote: The thread on the use of show and print to display an Int value, brought up a problem I had early on... the one of cleanly displaying a Char value, on a line all by itself.. My first attempts: This

Re: [Haskell-cafe] REALLY simple STRef examples

2006-07-22 Thread Shao Chih Kuo
Yes, largely the choice to define foreach was made to try and make it look more imperative, I showed it to an imperative programmer to try and convince him that you could program in an imperative way in Haskell if you really wanted to, that and I thought it'd an imperative style would make an