Hi, thanks for the reply - I will give a try.
> Though standard practice these days in Haskell projects is to put the code in
> an src directory.
>
Yes, I put it in the src folder - sorry if I haven’t provided a real project
structure - basically what I have is
+root
| +app
| Main.hs
You can use source-dirs (in hpack/package.yaml) or hs-source-dirs (in cabal
files) to specify the directory. Though standard practice these days in
Haskell projects is to put the code in an src directory.
For more information on hpack settings and some examples, check out:
Hi everyone,
I'm trying to add Stack to my existing Haskell project. however, when I try
to build it with Stack I get the following error
File name does not match module name:
>
> Saw: ‘MyModuleName’
>
> Expected: ‘ MyModuleName. MyModuleName’
>
> |
>
> 4 | module MyModuleName
>