#5610: Improve "Unacceptable argument type in foreign declaration" error message
--------------------------------+-------------------------------------------
  Reporter:  bgamari            |          Owner:  simonmar      
      Type:  bug                |         Status:  closed        
  Priority:  high               |      Milestone:  7.4.1         
 Component:  libraries (other)  |        Version:  7.3           
Resolution:  fixed              |       Keywords:  zlib          
        Os:  Linux              |   Architecture:  x86_64 (amd64)
   Failure:  None/Unknown       |     Difficulty:  Unknown       
  Testcase:                     |      Blockedby:                
  Blocking:                     |        Related:                
--------------------------------+-------------------------------------------

Comment(by Lemming):

 Replying to [comment:8 simonmar]:
 > The constructor for `CInt` is not hidden, just import `CInt(..)`.

 I looks like CInt constructor is imported since GHC-7.4 but was hidden
 until GHC-7.2. Importing CInt(..) gives a warning on GHC-7.2 whereas
 importing CInt gives a warning on GHC-7.4. Hm. Maybe I should import the
 types with qualification.

 Btw. if the type would be named Int in the module Foreign.C.Types I would
 already use qualification and write C.Int.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5610#comment:9>
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