[GHC] #1388: Newbie help features

GHC trac at galois.com
Mon May 28 10:49:28 EDT 2007


#1388: Newbie help features
------------------------------+---------------------------------------------
  Reporter:  guest            |          Owner:         
      Type:  feature request  |         Status:  new    
  Priority:  low              |      Milestone:         
 Component:  GHCi             |        Version:  6.6.1  
  Severity:  trivial          |       Keywords:         
Difficulty:  Easy (1 hr)      |             Os:  Unknown
  Testcase:                   |   Architecture:  Unknown
------------------------------+---------------------------------------------
Often a newbie comes to #haskell and asks why something doesn't work in
 ghci.
 There are at least two cases:

 "why doesn't type Bar = (Char, Int) work"?
   and
 "why doesn't f = 1 work?" (that is function definitions)

 It wouldn't be much work to recognize these cases and then give the user
 some hints on putting those definitions into a file, etc.

 Another case where error messages can be improved is the following:

 type Foo = (char, int) -- the intention is clear, but the error message
 might not be clear to a new user. Suggestion: when the parsed type
 variables are the same modulo case to an existing core type(Int, Bool,
 Array, etc) and Foo doesn't take those type parameters, tell the user he
 needs to use proper casing.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1388>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list