[Haskell-beginners] importing Data.Digits

Alexander Chen alexander at chenjia.nl
Mon Nov 18 12:30:54 UTC 2019


Hi All,

This is my first 'post' not quite sure if I am doing it right.

I have a question about the importing of modules that are available on the Hackage.Haskell site:
http://hackage.haskell.org/package/digits

if I write this in my wordpad and then load it to GCI i get the following error:

chapter4.hs:1:1: error:
    Could not find module ‘Data.Digits’
    Perhaps you meant Data.Bits (from base-4.12.0.0)
    Use -v to see a list of the files searched for.
  |
1 | import Data.Digits   | ^^^^^^^^^^^^^^^^^^

However if I load Data.Char than it loads fine.

What am I doing wrong?

best,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20191118/0a2b2de4/attachment.html>


More information about the Beginners mailing list