[Yhc] "default" keyword bugs

Neil Mitchell ndmitchell at gmail.com
Fri Aug 18 07:00:29 EDT 2006


Hi,

I have filed a bug on this: http://code.google.com/p/yhc/issues/detail?id=15

Does this actually conflict with anything you are trying to do for
real? (if so we'll bump the priority a bit).

I suspect only Malcolm will know whats going on here :)

Thanks

Neil

On 8/18/06, Isaac <isaacdupree at charter.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I just tried some uses of the "default" keyword with Yhc that failed,
> and I didn't find any existing Yhc test-cases for this keyword. These
> all run with Hugs.
>
> Fails with Yhc:
> - ----------
> import Ratio (
>   Ratio -- :: * -> *
>  )
> default (Ratio Integer)
> main = putStrLn "okay"
> - ----------
>
> but works with Yhc:
> - ----------
> import Ratio (
>   Ratio -- :: * -> *
>  )
> type RatioInteger = Ratio Integer
> default (RatioInteger)
> main = putStrLn "okay"
> - ----------
>
>
> Fails (differently) with Yhc:
> - ----------
> default(Rational)
> main = print (0.1 * 3 == 0.3)
> - ----------
>
> but works with Yhc:
> - ----------
> default(Rational)
> main = print ((0.1 :: Rational) * 3 == 0.3)
> - ----------
>
>
> Isaac
>
> P.S. I know that type Rational = Ratio Integer
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFE5ZhcHgcxvIWYTTURAl9dAKCLUs9q1sxFVdWee2DJK2LDZf7HjgCgs/aK
> EI0FuUgMqK6OdAlJ+BP6zfE=
> =37e3
> -----END PGP SIGNATURE-----
> _______________________________________________
> Yhc mailing list
> Yhc at haskell.org
> http://www.haskell.org/mailman/listinfo/yhc
>


More information about the Yhc mailing list