#1672: allow the use of import in the interpreter to load new modules
------------------------------+---------------------------------------------
  Reporter:  guest            |          Owner:         
      Type:  feature request  |         Status:  new    
  Priority:  normal           |      Milestone:         
 Component:  GHCi             |        Version:  6.6.1  
  Severity:  normal           |       Keywords:         
Difficulty:  Easy (1 hr)      |             Os:  Windows
  Testcase:                   |   Architecture:  x86    
------------------------------+---------------------------------------------
Hi,

 I'm trying to learn Haskell.  One of the little things that bother me is
 that I can't do the following in the interpreter:

 Prelude> import System.IO

 I get the error <interactive>:1:0: parse error on input `import'

 The equivalent thing is
 Prelude> :module + System.IO

 Prelude System.IO>



 In all other interpreted languages that I've used (Python, Ruby, etc) one
 can easily import new modules using the language constructs already
 defined by the language.

 In python... a simple import Whatever does it.  It doesn't make sense to
 have an interpreter specific command for this.

 It may sound like a little thing to you.  But for me this is one of the
 details that make me quit the interpreter and continue working on other
 tasks rather than learning Haskell.

 It would be really nice to if you add this capability in your next release
 of the interpreter.

 Thanks,
 Alex

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1672>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to