[Haskell-beginners] import question

Galaxy Being borgauf at gmail.com
Wed Feb 17 20:17:32 UTC 2021


How would I install it globally? I'm not using projects, I'm just at the
ghci REPL.

On Wed, Feb 17, 2021 at 12:57 PM Francesco Ariis <fa-ml at ariis.it> wrote:

> Il 17 febbraio 2021 alle 11:13 Galaxy Being ha scritto:
> > 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'
>
> Works here. You need to add `Decimal` the dependencies of your project
> or install it globally first
> —F
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20210217/3cb133d8/attachment.html>


More information about the Beginners mailing list