From 17be1a228d32bcfa3373a7b5bf3d2c071b924139 Mon Sep 17 00:00:00 2001 From: Noah Date: Thu, 16 May 2024 12:48:31 -0400 Subject: [PATCH 1/6] added stan dependencies to stack.yaml --- code/stack.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/code/stack.yaml b/code/stack.yaml index 66f889a564..9f19da0129 100644 --- a/code/stack.yaml +++ b/code/stack.yaml @@ -72,6 +72,24 @@ extra-deps: - multiplate-0.0.3@sha256:5d2ffc50d23c55008100b7a8b70f77b5fcce08c6f23822c5a6adc5b5b9356a32 - unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2 - unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699 +- clay-0.14.0@sha256:a50ba73137a39c55e89f24a7792107ec40ba07320b2c5ff7932049845c50ffc9,2204 +- dir-traverse-0.2.3.0@sha256:adcc128f201ff95131b15ffe41365dc99c50dc3fa3a910f021521dc734013bfa,2137 +- extensions-0.1.0.0@sha256:b8105dc43a57b0b3b54879e8dbb905676dfee3e8b59301fefbf2409a0fe95710,4447 +- tomland-1.3.3.2@sha256:887dc39a8c9819deb8fcb6fde72e87dad4c94108b1736a5bf7215ccf3117bd0f,9474 +- trial-0.0.0.0@sha256:ebd93f3485dd7f0ce8426fa46b500f26edbea285c2890150123e1b0f6a92c7db,4410 +- trial-optparse-applicative-0.0.0.0@sha256:ee878dbf412849d4fb52d7bca93bec45a6392a93e03a46bd320109b9a0ff2a38,2540 +- trial-tomland-0.0.0.0@sha256:c10c5c3f94e3dcfcad4a66cf70682ace77d5381596aff91fa2030636d07de977,2541 +- validation-selective-0.2.0.0@sha256:e1ab5482dede8bf676d729a09109c7c5f798363b9d458e4197a27afb8b48fdd3,3907 +- colourista-0.1.0.2@sha256:87b6c096563c3dc5afb1161f06891235370862fc3406406f1f10f1864e55e0a1,3364 +- slist-0.2.1.0@sha256:679013d3a03ed1f09fc46cc6ef87f94cc36a1320b2bf4fe4f91d102f85277528,3513 + +# This configuration option allows the use of newer versions of dependencies than what is specified +allow-newer: true + +# This configuration option specifies a list of dependencies for which newer versions are allowed. +# In this case, it's allowing newer versions of the 'stan' package. +allow-newer-deps: +- stan # The following packages are dependencies needed for 'stan', specifically tested against GHC 9.4.8. - clay-0.14.0@sha256:a50ba73137a39c55e89f24a7792107ec40ba07320b2c5ff7932049845c50ffc9,2204 From 2e288cfee97d39366c6e7442d17676d8b3c7b338 Mon Sep 17 00:00:00 2001 From: Noah Date: Thu, 16 May 2024 15:00:35 -0400 Subject: [PATCH 2/6] comment for stan deps in stack.yaml --- code/stack.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/stack.yaml b/code/stack.yaml index 9f19da0129..01eb8f7801 100644 --- a/code/stack.yaml +++ b/code/stack.yaml @@ -72,6 +72,8 @@ extra-deps: - multiplate-0.0.3@sha256:5d2ffc50d23c55008100b7a8b70f77b5fcce08c6f23822c5a6adc5b5b9356a32 - unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2 - unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699 + +# The following packages are dependencies for 'stan' - clay-0.14.0@sha256:a50ba73137a39c55e89f24a7792107ec40ba07320b2c5ff7932049845c50ffc9,2204 - dir-traverse-0.2.3.0@sha256:adcc128f201ff95131b15ffe41365dc99c50dc3fa3a910f021521dc734013bfa,2137 - extensions-0.1.0.0@sha256:b8105dc43a57b0b3b54879e8dbb905676dfee3e8b59301fefbf2409a0fe95710,4447 From b578460e1f5376f840720131139e9cc5f83471fe Mon Sep 17 00:00:00 2001 From: Noah Date: Thu, 16 May 2024 15:33:00 -0400 Subject: [PATCH 3/6] deleted unnecessary code in stack.yaml --- code/stack.yaml | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/code/stack.yaml b/code/stack.yaml index 01eb8f7801..900b1fa824 100644 --- a/code/stack.yaml +++ b/code/stack.yaml @@ -73,7 +73,7 @@ extra-deps: - unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2 - unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699 -# The following packages are dependencies for 'stan' +# The following packages are dependencies for 'stan', specifically tested against GHC 9.4.8. - clay-0.14.0@sha256:a50ba73137a39c55e89f24a7792107ec40ba07320b2c5ff7932049845c50ffc9,2204 - dir-traverse-0.2.3.0@sha256:adcc128f201ff95131b15ffe41365dc99c50dc3fa3a910f021521dc734013bfa,2137 - extensions-0.1.0.0@sha256:b8105dc43a57b0b3b54879e8dbb905676dfee3e8b59301fefbf2409a0fe95710,4447 @@ -85,34 +85,6 @@ extra-deps: - colourista-0.1.0.2@sha256:87b6c096563c3dc5afb1161f06891235370862fc3406406f1f10f1864e55e0a1,3364 - slist-0.2.1.0@sha256:679013d3a03ed1f09fc46cc6ef87f94cc36a1320b2bf4fe4f91d102f85277528,3513 -# This configuration option allows the use of newer versions of dependencies than what is specified -allow-newer: true - -# This configuration option specifies a list of dependencies for which newer versions are allowed. -# In this case, it's allowing newer versions of the 'stan' package. -allow-newer-deps: -- stan - -# The following packages are dependencies needed for 'stan', specifically tested against GHC 9.4.8. -- clay-0.14.0@sha256:a50ba73137a39c55e89f24a7792107ec40ba07320b2c5ff7932049845c50ffc9,2204 -- dir-traverse-0.2.3.0@sha256:adcc128f201ff95131b15ffe41365dc99c50dc3fa3a910f021521dc734013bfa,2137 -- extensions-0.1.0.0@sha256:b8105dc43a57b0b3b54879e8dbb905676dfee3e8b59301fefbf2409a0fe95710,4447 -- tomland-1.3.3.2@sha256:887dc39a8c9819deb8fcb6fde72e87dad4c94108b1736a5bf7215ccf3117bd0f,9474 -- trial-0.0.0.0@sha256:ebd93f3485dd7f0ce8426fa46b500f26edbea285c2890150123e1b0f6a92c7db,4410 -- trial-optparse-applicative-0.0.0.0@sha256:ee878dbf412849d4fb52d7bca93bec45a6392a93e03a46bd320109b9a0ff2a38,2540 -- trial-tomland-0.0.0.0@sha256:c10c5c3f94e3dcfcad4a66cf70682ace77d5381596aff91fa2030636d07de977,2541 -- validation-selective-0.2.0.0@sha256:e1ab5482dede8bf676d729a09109c7c5f798363b9d458e4197a27afb8b48fdd3,3907 -- colourista-0.1.0.2@sha256:87b6c096563c3dc5afb1161f06891235370862fc3406406f1f10f1864e55e0a1,3364 -- slist-0.2.1.0@sha256:679013d3a03ed1f09fc46cc6ef87f94cc36a1320b2bf4fe4f91d102f85277528,3513 - -# This configuration option allows the use of newer versions of dependencies than what is specified -allow-newer: true - -# This configuration option specifies a list of dependencies for which newer versions are allowed. -# In this case, it's allowing newer versions of the 'stan' package. -allow-newer-deps: -- stan - # Used only for a basic set of flags for haddock build: haddock-deps: false From 0963f591a1e9a76f6255fc41dd2a5823288a914a Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 17 May 2024 13:03:21 -0400 Subject: [PATCH 4/6] fixed stan dependencies --- code/stack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/stack.yaml b/code/stack.yaml index 900b1fa824..30493f42e2 100644 --- a/code/stack.yaml +++ b/code/stack.yaml @@ -73,7 +73,7 @@ extra-deps: - unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2 - unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699 -# The following packages are dependencies for 'stan', specifically tested against GHC 9.4.8. +# The following packages are dependencies needed for 'stan', specifically tested against GHC 9.4.8. - clay-0.14.0@sha256:a50ba73137a39c55e89f24a7792107ec40ba07320b2c5ff7932049845c50ffc9,2204 - dir-traverse-0.2.3.0@sha256:adcc128f201ff95131b15ffe41365dc99c50dc3fa3a910f021521dc734013bfa,2137 - extensions-0.1.0.0@sha256:b8105dc43a57b0b3b54879e8dbb905676dfee3e8b59301fefbf2409a0fe95710,4447 From 30c80e85e30325f6446abbc871ae357bb7e72403 Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 21 May 2024 15:36:09 -0400 Subject: [PATCH 5/6] added stan dependencies to stack.yaml --- code/stack.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/stack.yaml b/code/stack.yaml index 30493f42e2..66f889a564 100644 --- a/code/stack.yaml +++ b/code/stack.yaml @@ -85,6 +85,14 @@ extra-deps: - colourista-0.1.0.2@sha256:87b6c096563c3dc5afb1161f06891235370862fc3406406f1f10f1864e55e0a1,3364 - slist-0.2.1.0@sha256:679013d3a03ed1f09fc46cc6ef87f94cc36a1320b2bf4fe4f91d102f85277528,3513 +# This configuration option allows the use of newer versions of dependencies than what is specified +allow-newer: true + +# This configuration option specifies a list of dependencies for which newer versions are allowed. +# In this case, it's allowing newer versions of the 'stan' package. +allow-newer-deps: +- stan + # Used only for a basic set of flags for haddock build: haddock-deps: false From 86376c80d68f3ef7a3e866f6d1739139704085dc Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 29 Jul 2024 15:56:50 -0400 Subject: [PATCH 6/6] Added stan to make file --- code/Makefile | 7 ++++++- code/stack.yaml | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/code/Makefile b/code/Makefile index 06a626d96f..6931f80c1d 100644 --- a/code/Makefile +++ b/code/Makefile @@ -197,7 +197,7 @@ debug: test ##@Examples Run test target with better debugging tools. # Debugging individual examples $(DEBUG_EXAMPLES): %$(DEBUG_E_SUFFIX): %$(TEST_E_SUFFIX) -pr_ready: all hlint ##@General Check if your current work is ready to for a PR via `all` and `hlint`. +pr_ready: all stan hlint ##@General Check if your current work is ready to for a PR via `all` and `hlint` and stan. @echo "Your build/ and stable/ match, and your code currently passes HLint tests." @echo "Feel free to create a PR for your code if you feel it's ready." @@ -534,6 +534,11 @@ clean: clean_artifacts ##@Cleaning Fully clean all generated builds, artifacts, #--- Help & Information ---# #--------------------------# +stan: ##@Stan Run Stan static analysis tool on the Drasil packages. + find . -type d -name 'drasil-*' -exec sh -c 'cd {} && stan > stan.log' \; + cat drasil-*/stan.log +#use to display stan logs, cat drasil-*/stan.log + # Credits to "nowox" from StackOverflow: https://stackoverflow.com/a/30796664/16760741 HELP_FUN = \ %help; while(<>){push@{$$help{$$2//'options'}},[$$1,$$3] \ diff --git a/code/stack.yaml b/code/stack.yaml index 66f889a564..3fb269e01d 100644 --- a/code/stack.yaml +++ b/code/stack.yaml @@ -69,9 +69,9 @@ packages: # Dependency packages to be pulled from upstream that are not in the resolver # (e.g., acme-missiles-0.3) extra-deps: -- multiplate-0.0.3@sha256:5d2ffc50d23c55008100b7a8b70f77b5fcce08c6f23822c5a6adc5b5b9356a32 -- unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2 -- unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699 +- multiplate-0.0.3@sha256:5d2ffc50d23c55008100b7a8b70f77b5fcce08c6f23822c5a6adc5b5b9356a32,1311 +- unicode-names-3.2.0.0@sha256:fef7241d93170e26265e84553090253a5e8ee207645d47cf271816f5834d07d2,470 +- unicode-properties-3.2.0.0@sha256:239766a6ac4322329353f6b9cd546024fd8c5f0235c8e32b3cba2d6bd245a699,1000 # The following packages are dependencies needed for 'stan', specifically tested against GHC 9.4.8. - clay-0.14.0@sha256:a50ba73137a39c55e89f24a7792107ec40ba07320b2c5ff7932049845c50ffc9,2204