unsafeCoerce#

wld volodimir.rudenko at gmail.com
Sun Jul 30 21:24:14 EDT 2006


On 7/31/06, Neil Mitchell <ndmitchell at gmail.com> wrote:
> Hi,
>
> Finding unsafeCoerce# in the documentation is challenging at best.
> It's not indexed by Haddock, which in turn means its not indexed by
> Hoogle. Lambdabot doesn't find it. Googling gave me GhcExts (from an
> old Happy file), which I guessed at GHC.Exts.
>
> Someone in #haskell suggested GHC.Base. I'm not sure where I should
> import it from, but it would be nice if the docs included it
> somewhere.

Hi, GHC.Prim module say at the end of its export section:

-- * Coercion
-- |@unsafeCoerce\# :: a -> b@ is not a primop, but is defined in MkId.lhs.

In MkId.lhs , see \subsection{Un-definable}

HTH,
V.Rudenko
--
λ is the ultimate


More information about the Glasgow-haskell-bugs mailing list