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) => 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 
compiler-specific extensions? My past experience with Fortran and C/C++ tells 
me to stay away from them. Portability is an important criterion for me.

Konrad.

_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to