-
Commit 27aacd1 seem to have caused issues when modules/source files are added inside of
To get rid of this error, I had to manually add back the
|
Beta Was this translation helpful? Give feedback.
Answered by
srid
Jun 25, 2023
Replies: 1 comment 4 replies
-
Did you update the cabal file? viz.: diff --git a/haskell-template.cabal b/haskell-template.cabal
index 770a028..3af415f 100644
--- a/haskell-template.cabal
+++ b/haskell-template.cabal
@@ -94,3 +94,5 @@ common shared
executable haskell-template
import: shared
main-is: Main.hs
+ other-modules:
+ Lib.Lib
diff --git a/src/Main.hs b/src/Main.hs
index fc5ea8d..0295d72 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -1,6 +1,7 @@
module Main where
import Main.Utf8 qualified as Utf8
+import Lib.Lib
{- |
Main entry point.
@@ -12,3 +13,4 @@ main = do
-- For withUtf8, see https://serokell.io/blog/haskell-with-utf8
Utf8.withUtf8 $ do
putTextLn "Hello 🌎"
+ print foo
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
billksun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you update the cabal file? viz.: