[Haskell-beginners] import question

Galaxy Being borgauf at gmail.com
Wed Feb 17 17:13:19 UTC 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20210217/23f1a589/attachment.html>


More information about the Beginners mailing list