Foreign type

Monique Louise monique.louise at gmail.com
Wed May 18 12:49:28 EDT 2005


I saw it for the first time in the code " foreign type dotnet
"BigInteger" BigInteger " in module Num.lhs from GHC prelude.  I think
it defines a type to be "foreign": a way to say the type is not
defined in Haskell, but in the foreign language.


On 5/18/05, Lemmih <lemmih at gmail.com> wrote:
> On 5/18/05, Monique Louise <monique.louise at gmail.com> wrote:
> > Hi all,
> >
> >   does anyone know what package should be imported to make GHC accept
> > a declaration like "foreign type dotnet "BigInteger" BigInteger" ?
> > I've searched at Google, GHC and FFI documentation but I haven't found
> > anything.
> 
> What is a foreign type?
> 
> --
> Friendly,
>  Lemmih
> 


-- 
________________________________
Monique Louise B.Monteiro
Msc Student in Computer Science
Center of Informatics
Federal University of Pernambuco


More information about the FFI mailing list