Re: [GHC] #2179: Improve error message when `main' is not of the right type

2008-04-23 Thread GHC
#2179: Improve error message when `main' is not of the right type
---+
 Reporter:  amiddelk   |  Owner:  igloo 
 Type:  merge  | Status:  closed
 Priority:  normal |  Milestone:  6.10 branch   
Component:  Compiler   |Version:  6.8.2 
 Severity:  trivial| Resolution:  fixed 
 Keywords: | Difficulty:  Unknown   
 Testcase:  tcfail199  |   Architecture:  x86_64 (amd64)
   Os:  Linux  |  
---+
Changes (by igloo):

  * testcase:  => tcfail199
  * status:  new => closed
  * resolution:  => fixed

Comment:

 Test added (tcfail199)

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2179: Improve error message when `main' is not of the right type

2008-04-05 Thread GHC
#2179: Improve error message when `main' is not of the right type
--+-
 Reporter:  amiddelk  |  Owner:  igloo 
 Type:  merge | Status:  new   
 Priority:  normal|  Milestone:  6.10 branch   
Component:  Compiler  |Version:  6.8.2 
 Severity:  trivial   | Resolution:
 Keywords:| Difficulty:  Unknown   
 Testcase:|   Architecture:  x86_64 (amd64)
   Os:  Linux |  
--+-
Changes (by simonpj):

  * owner:  simonpj => igloo
  * type:  proposal => merge

Comment:

 Fixed by
 {{{
 Thu Apr  3 10:37:46 PDT 2008  [EMAIL PROTECTED]
   * Fix Trac #2179: error message for main
 }}}

 Ian, can you add a test case please?

 Simon

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2179: Improve error message when `main' is not of the right type

2008-04-04 Thread GHC
#2179: Improve error message when `main' is not of the right type
--+-
 Reporter:  amiddelk  |  Owner:  simonpj   
 Type:  proposal  | Status:  new   
 Priority:  normal|  Milestone:  6.10 branch   
Component:  Compiler  |Version:  6.8.2 
 Severity:  trivial   | Resolution:
 Keywords:| Difficulty:  Unknown   
 Testcase:|   Architecture:  x86_64 (amd64)
   Os:  Linux |  
--+-
Changes (by simonpj):

  * owner:  => simonpj

Comment:

 I'm fixing this

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2179: Improve error message when `main' is not of the right type

2008-03-30 Thread GHC
#2179: Improve error message when `main' is not of the right type
--+-
 Reporter:  amiddelk  |  Owner:
 Type:  proposal  | Status:  new   
 Priority:  normal|  Milestone:  6.10 branch   
Component:  Compiler  |Version:  6.8.2 
 Severity:  trivial   | Resolution:
 Keywords:| Difficulty:  Unknown   
 Testcase:|   Architecture:  x86_64 (amd64)
   Os:  Linux |  
--+-
Changes (by igloo):

  * difficulty:  => Unknown
  * milestone:  => 6.10 branch

Comment:

 Agreed; thanks for the report!

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #2179: Improve error message when `main' is not of the right type

2008-03-27 Thread GHC
#2179: Improve error message when `main' is not of the right type
---+
Reporter:  amiddelk|   Owner:  
Type:  proposal|  Status:  new 
Priority:  normal  |   Component:  Compiler
 Version:  6.8.2   |Severity:  trivial 
Keywords:  |Testcase:  
Architecture:  x86_64 (amd64)  |  Os:  Linux   
---+
 If you run the following module with GHC(i):

 > module Main where
 > main = "hi"

 You get the error message:

 > Couldn't match expected type `IO a' against inferred type `[Char]'
 > In the first argument of `GHC.TopHandler.runMainIO', namely `main'
 > When checking the type of the function `main'

 The error message would be a bit nicer if the second line was hidden.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs