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
-- 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
+++ /dev/null
-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
--- /dev/null
+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