Haskell import problem

I have a Dictionary module declared in the Dictionary.hs file.

in the same directory I have a Def.hs file that imports a dictionary

here error i get

... / edsl / Def.hs: 4: 7: Could not find the Dictionary module: found locations: Dictionary.hs Dictionary.lhs

... / edsl / Dictionary.hs is. his permissions are such that they can be written or read by someone.

I really don’t know why I can’t import. I am using ghc 6.12.1 on mac os x 10.5.8

change the corresponding code here

in Dictionary.hs

module Dictionary where
...

and in in Def.hs

module Def where
import Control.Exception
import Data.Dynamic
import Dictionary
...

Am I just defining the module incorrectly? I want to export all characters.

+3
source share
1

. komodo edit, , ghci, .

DOH.

+2

Source: https://habr.com/ru/post/1750858/


All Articles