Wed, 06 Dec 2000 11:45:43 +0100, Christian Lescher <[EMAIL PROTECTED]> pisze:
> module Defs where
>
> n :: Num a => a
> n = 3
>
> x :: Fractional a => a
> x = 12.3
>
> test = ceiling (x / n)
>
> However, I would like to have it without writing the type signature.
There are people (including me) who think that the monomorphism
restriction rule, which makes the above definitions without type
signatures monomorphic and thus defaulted to concrete types, should
be removed.
--
__("< Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZAST�PCZA
QRCZAK
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe
- Mixture of Integer and Float arithmetic without ... Christian Lescher
- Mixture of Integer and Float arithmetic wit... Tom Pledger
- Re: Mixture of Integer and Float arithmetic... Christian Lescher
- Re: Mixture of Integer and Float arithmetic... Tom Pledger
- Re: Mixture of Integer and Float arithmetic... Christian Lescher
- Re: Mixture of Integer and Float arithmetic... Marcin 'Qrczak' Kowalczyk
- Re: Mixture of Integer and Float arithm... Malcolm Wallace
- RE: Mixture of Integer and Float arithmetic... Simon Peyton-Jones
- Re: Mixture of Integer and Float arithmetic... Christian Lescher
- RE: Mixture of Integer and Float arithmetic... Simon Peyton-Jones
- GHCi (was Re: Mixture of Integer and Fl... Ross Paterson
