
#15603: ref6 example from StaticPointers documentation doesn't type check -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: 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 mpickering): That works. I'm unsure what the `y` is doing in there as well tbh, it doesn't seem to add anything. Adding a top-level type signature to this example doesn't fix the problem but specifying `(1 :: Int)` also fixes it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15603#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler