[Haskell-beginners] import question

amindfv at mailbox.org amindfv at mailbox.org
Wed Feb 17 19:58:35 UTC 2021


Is it possible you mean to use Double or Float instead of Decimal?

Tom

On Wed, Feb 17, 2021 at 11:13:19AM -0600, Galaxy Being wrote:
> I'm trying to use Decimal but (I'm guessing) I don't know how to import it.
> 
> import Data.Decimal
> 
> dList :: [Decimal]
> dList = [1.1,1.2..2.0]
> 
> : <interactive>:70:11-17: error:
> :     Not in scope: type constructor or class `Decimal'
> 
> Obviously I was asleep the day the teacher told us how to do this. . . .
> 
> LB

> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners



More information about the Beginners mailing list