[GHC] #10347: Spurious "unused constructor" warning with Coercible
GHC
ghc-devs at haskell.org
Sat Sep 8 20:01:42 UTC 2018
#10347: Spurious "unused constructor" warning with Coercible
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Incorrect | Test Case:
warning at compile-time | typecheck/should_compile/T10347
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by dfeuer):
* cc: dfeuer (added)
Comment:
One partial solution would be a pragma disabling the usage warning for a
particular binding.
{{{#!hs
newtype N = N Int
test :: N -> N
test = ...
{-# Ignore-Usage type N, N, test #-}
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10347#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list