[GHC] #12955: Confusing error (module is not loaded) when more hsigs provided than -instantiated-with
#12955: Confusing error (module is not loaded) when more hsigs provided than -instantiated-with -------------------------------------+------------------------------------- Reporter: ezyang | Owner: ezyang Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Keywords: backpack | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Steps to reproduce: 1. Create an `A.hsig` file with `signature A where` 2. Try to build it with `ghc --make A.hsig` Expected: Some error indicating an unexpected signature (you need to specify `-instantiated-with` Actual: This error: {{{ [1 of 1] Compiling A[sig] (.hsig -> .o) attempting to use module ‘main:A’ (A.hsig) which is not loaded }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12955> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12955: Confusing error (module is not loaded) when more hsigs provided than -instantiated-with -------------------------------------+------------------------------------- Reporter: ezyang | Owner: ezyang Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: backpack Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Edward Z. Yang <ezyang@…>): In [changeset:"24f6bec94411aa6c39a2c94ce5154ffe96ae330f/ghc" 24f6bec9/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="24f6bec94411aa6c39a2c94ce5154ffe96ae330f" Sanity check if we pick up an hsig file without -instantiated-with. Summary: Previously we would just let compilation proceed along until we tried to pull up the Module for the hsig file, and get main:A instead of <A>, and get a mysterious error. Check for this earlier! Fixes #12955. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, austin, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2815 GHC Trac Issues: #12955 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12955#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12955: Confusing error (module is not loaded) when more hsigs provided than -instantiated-with -------------------------------------+------------------------------------- Reporter: ezyang | Owner: ezyang Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: backpack Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by ezyang): * status: new => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12955#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC