Permalink
Browse files

Follow changes to HValue/Any handling

Also removed the type argument to Any in primops.txt.pp. I don't
see why we need it, and it now breaks haddocking GHC.Prim.
  • Loading branch information...
igfoo committed Oct 3, 2011
1 parent 1f56b6c commit b926bd65c66ed4018101531eacf5bb7c3068c624
Showing with 2 additions and 2 deletions.
  1. +1 −1 compiler/prelude/primops.txt.pp
  2. +1 −1 ghc/GhciMonad.hs
@@ -1849,7 +1849,7 @@
Like {\tt seq}, the argument of {\tt lazy} can have an unboxed type. }
-primtype Any a
+primtype Any
{ The type constructor {\tt Any} is type to which you can unsafely coerce any
lifted type, and back.
View
@@ -373,4 +373,4 @@ turnOffBuffering
getHandle :: IORef (Ptr ()) -> IO Handle
getHandle ref = do
(Ptr addr) <- readIORef ref
- case addrToHValue# addr of (# hval #) -> return (unsafeCoerce# hval)
+ case addrToAny# addr of (# hval #) -> return (unsafeCoerce# hval)

0 comments on commit b926bd6

Please sign in to comment.