[C2hs] [c2hs] #47: Void functions produce a "defined but not used" warning for the result
c2hs
cvs-ghc at haskell.org
Thu Jul 5 00:17:44 CEST 2012
#47: Void functions produce a "defined but not used" warning for the result
--------------------+-------------------------------------------------------
Reporter: guest | Type: defect
Status: new | Priority: normal
Milestone: | Component: general
Version: 0.16.0 | Keywords:
--------------------+-------------------------------------------------------
Declaring a {# fun ... #} with return type `()' leads to the following
warning from GHC:
Warning: Defined but not used: `res'
Please consider either using res or declaring it as _ in this case, to
prevent the warning.
--
Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/47>
c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/>
C->Haskell, An Interface Generator for Haskell
More information about the C2hs
mailing list