
17 Feb
2021
17 Feb
'21
2:58 p.m.
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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners