<div dir="ltr">How would I install it globally? I'm not using projects, I'm just at the ghci REPL.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 17, 2021 at 12:57 PM Francesco Ariis <<a href="mailto:fa-ml@ariis.it">fa-ml@ariis.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Il 17 febbraio 2021 alle 11:13 Galaxy Being ha scritto:<br>
> I'm trying to use Decimal but (I'm guessing) I don't know how to import it.<br>
> <br>
> import Data.Decimal<br>
> <br>
> dList :: [Decimal]<br>
> dList = [1.1,1.2..2.0]<br>
> <br>
> : <interactive>:70:11-17: error:<br>
> :     Not in scope: type constructor or class `Decimal'<br>
<br>
Works here. You need to add `Decimal` the dependencies of your project<br>
or install it globally first<br>
—F<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div>