[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

#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

#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
participants (1)
-
GHC