[GHC] #12000: static pointer in ghci
GHC
ghc-devs at haskell.org
Thu May 19 22:55:36 UTC 2016
#12000: static pointer in ghci
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Documentation | Version: 8.1
Resolution: | Keywords:
| StaticPointers
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #9878 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by facundo.dominguez):
I'm testing the master branch of GHC.
I can reproduce this without using the static form.
{{{
Prelude> c = 'a'
Prelude> c
<interactive>:9:1: error: Variable not in scope: c
}}}
The crash reported later, I can't see.
{{{
> let a = static id
Prelude> a
<interactive>:6:1: error:
• No instance for (Data.Typeable.Internal.Typeable a0)
arising from a use of ‘it’
• In a stmt of an interactive GHCi command: print it
}}}
That said, the static pointers produced in GHCi can only be found later if
they are created in compiled (and later loaded) modules. Entering a static
form at the prompt won't make it.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12000#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list