Renamed library directory
authorNeil Smith <NeilNjae@users.noreply.github.com>
Tue, 6 Dec 2022 12:40:28 +0000 (12:40 +0000)
committerNeil Smith <NeilNjae@users.noreply.github.com>
Tue, 6 Dec 2022 12:40:28 +0000 (12:40 +0000)
advent-of-code22.cabal
lib/AoC.hs [deleted file]
src/AoC.hs [new file with mode: 0644]

index 747359d0c08c179c481be8d304e0a245198c9468..c7012e989e349c8a92ec5158ef4d0baac229d1bc 100644 (file)
@@ -73,7 +73,7 @@ common common-extensions
 common build-directives
   build-depends:       base >=4.16
   default-language:    Haskell2010
-  hs-source-dirs:      ., app, lib
+  hs-source-dirs:      ., app, src
   other-modules:       AoC
   ghc-options:         -O2 
                        -Wall 
@@ -89,13 +89,13 @@ executable advent-of-code22
     -- LANGUAGE extensions used by modules in this package.
     -- other-extensions:
     build-depends:    base ^>=4.16.4.0
-    hs-source-dirs:   app, lib
+    hs-source-dirs:   app, src
     default-language: Haskell2010
 
 library
   import: common-extensions
   build-depends:  base >=4.16
-  hs-source-dirs: ., app, lib
+  hs-source-dirs: ., app, src
   exposed-modules: AoC
 
 executable advent01
diff --git a/lib/AoC.hs b/lib/AoC.hs
deleted file mode 100644 (file)
index 764f2cc..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-module AoC ( getDataFileName ) where
-
-import System.Environment
-
-getDataFileName :: IO String
-getDataFileName =
-  do args <- getArgs
-     progName <- getProgName
-     let baseDataName =  if null args
-                         then progName
-                         else head args 
-     let dataFileName = "data/" ++ baseDataName ++ ".txt"
-     return dataFileName
diff --git a/src/AoC.hs b/src/AoC.hs
new file mode 100644 (file)
index 0000000..764f2cc
--- /dev/null
@@ -0,0 +1,13 @@
+module AoC ( getDataFileName ) where
+
+import System.Environment
+
+getDataFileName :: IO String
+getDataFileName =
+  do args <- getArgs
+     progName <- getProgName
+     let baseDataName =  if null args
+                         then progName
+                         else head args 
+     let dataFileName = "data/" ++ baseDataName ++ ".txt"
+     return dataFileName