Type design question

Konrad Hinsen hinsen@cnrs-orleans.fr
Mon, 28 Jul 2003 15:42:11 +0200


On Friday 25 July 2003 21:48, Dylan Thurston wrote:

> Another approach is to make Universe a multi-parameter type class:
>
> class (RealFrac a, Floating a) =3D> Universe u a | u -> a where
>   distanceVector :: u -> Vector a -> Vector a -> Vector a
> ...
>
> You need to use ghc with '-fglasgow-exts' for this.

What is the general attitude in the Haskell community towards=20
compiler-specific extensions? My past experience with Fortran and C/C++ t=
ells=20
me to stay away from them. Portability is an important criterion for me.

Konrad.