[Haskell-cafe] A simple question

Tomasz Zielonka t.zielonka at students.mimuw.edu.pl
Tue Nov 2 16:00:03 EST 2004


On Tue, Nov 02, 2004 at 09:53:28PM +0100, Marc Charpentier wrote:
> Good evening,
> 
> Doing some calculations in ghci, I encountered a difficulty which I 
> cannot resolve.
> 
> Here's a distilled version, prepared for the command line:
> 
> 	let i = 2 in (-1)^i/(2^(10*i)) * (-2^5/(4*i+1))

Monomorphism restriction. Try

  let { i :: Num a => a; i = 2 } in (-1)^i/(2^(10*i)) * (-2^5/(4*i+1))

Best regards,
Tom

-- 
.signature: Too many levels of symbolic links


More information about the Haskell-Cafe mailing list