Prelude Data.Set> :load hello
[1 of 1] Compiling Main ( hello.hs, interpreted )
hello.hs:11:11: parse error on input `<-'
Failed, modules loaded: none.
Prelude Data.Set> h <- IO.openFile "testtext" IO.ReadMode
Prelude Data.Set>
The same line [h <- IO.openFile "testtext" IO.ReadMode] inside hello.hs throws the error. How do i fix this? What am I doing wrong?
[EDIT] Source and output: http://pastebin.com/KvEvggQK