[GHC] #10838: hsig files don't have good enough error checking for wired-in types
GHC
ghc-devs at haskell.org
Thu Sep 3 21:09:28 UTC 2015
#10838: hsig files don't have good enough error checking for wired-in types
-------------------------------------+-------------------------------------
Reporter: ezyang | Owner: ezyang
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
(Type checker) |
Keywords: backpack | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Revisions: |
-------------------------------------+-------------------------------------
If I have the signature:
{{{
{-# LANGUAGE NoImplicitPrelude #-}
module MyPrelude where
data Int a
}}}
And I compile it with `ghc MyPrelude.hsig -sig-of "MyPrelude is
base:Prelude"` this won't actually give an error, despite `Int` having the
wrong kind.
The bug seems to be because `Int` is wired in and this case is not
handled.
Filing this so I don't forget to fix.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10838>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list