[GHC] #11975: New GHCi command to print out the type of an expression without instantiating
#11975: New GHCi command to print out the type of an expression without instantiating -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: GHCi | Version: 8.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- #11376 changed the meaning of `:type` to deeply instantiate a type before printing. This means that we can't see which variables were specified and which were inferred. I propose `:type-spec` (please suggest a better name) that does not instantiate first. Phab patch to be posted shortly. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11975> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11975: New GHCi command to print out the type of an expression without instantiating -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: GHCi | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2136 Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => patch * differential: => Phab:D2136 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11975#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11975: New GHCi command to print out the type of an expression without instantiating -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: GHCi | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2136 Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): I'm not keen on adding `:type-spec`; see my comment on #10963 (comment:5) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11975#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11975: New GHCi command to print out the type of an expression without instantiating -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: GHCi | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2136 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Richard Eisenberg <eir@…>): In [changeset:"8035d1a5dc7290e8d3d61446ee4861e0b460214e/ghc" 8035d1a/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="8035d1a5dc7290e8d3d61446ee4861e0b460214e" Fix #10963 and #11975 by adding new cmds to GHCi. See the user's guide entry or the Note [TcRnExprMode] in TcRnDriver. Test cases: ghci/scripts/T{10963,11975} }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11975#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11975: New GHCi command to print out the type of an expression without instantiating -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: GHCi | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2136 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Richard Eisenberg <eir@…>): In [changeset:"4ae950fbd83dea6170e765631af009e3c4f38a94/ghc" 4ae950fb/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="4ae950fbd83dea6170e765631af009e3c4f38a94" Release notes for #11975 and #10963 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11975#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11975: New GHCi command to print out the type of an expression without instantiating -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: feature request | Status: merge Priority: normal | Milestone: 8.0.2 Component: GHCi | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2136 Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * status: patch => merge * milestone: => 8.0.2 Comment: I would love to see this merged, so that we don't have to wait until 8.2. But I won't cry (hard) if it doesn't. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11975#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11975: New GHCi command to print out the type of an expression without instantiating -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: feature request | Status: merge Priority: normal | Milestone: 8.0.2 Component: GHCi | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | ghci/scripts/T11975 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2136 Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * testcase: => ghci/scripts/T11975 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11975#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11975: New GHCi command to print out the type of an expression without instantiating -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: GHCi | Version: 8.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | ghci/scripts/T11975 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2136 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed * milestone: 8.0.2 => 8.2.1 Comment: We're going to bump this off to 8.2.1 per ticket:10963#comment:25. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11975#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11975: New GHCi command to print out the type of an expression without instantiating -------------------------------------+------------------------------------- Reporter: goldfire | Owner: (none) Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: GHCi | Version: 8.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | ghci/scripts/T11975 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2136 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"82ee71fa85aca087b2cd62cb354fc3df46db4411/ghc" 82ee71f/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="82ee71fa85aca087b2cd62cb354fc3df46db4411" user-guide: add `:type +d` and `:type +v` in release highlight Add new ghci command to release highlight and fix link anchor. This commit is for ghc-8.2 branch. Test Plan: build Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie GHC Trac Issues: #11975 Differential Revision: https://phabricator.haskell.org/D3850 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11975#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC