summaryrefslogtreecommitdiff
path: root/doc/forum/Embedding_configuration_files_using_Template_Haskell
diff options
context:
space:
mode:
Diffstat (limited to 'doc/forum/Embedding_configuration_files_using_Template_Haskell')
-rw-r--r--doc/forum/Embedding_configuration_files_using_Template_Haskell/comment_1_ae847dfeb6691034adf4a05f3e55a646._comment17
-rw-r--r--doc/forum/Embedding_configuration_files_using_Template_Haskell/comment_2_4d2b5f37e1f6cff806bb270d38c22f98._comment9
2 files changed, 26 insertions, 0 deletions
diff --git a/doc/forum/Embedding_configuration_files_using_Template_Haskell/comment_1_ae847dfeb6691034adf4a05f3e55a646._comment b/doc/forum/Embedding_configuration_files_using_Template_Haskell/comment_1_ae847dfeb6691034adf4a05f3e55a646._comment
new file mode 100644
index 00000000..377f9360
--- /dev/null
+++ b/doc/forum/Embedding_configuration_files_using_Template_Haskell/comment_1_ae847dfeb6691034adf4a05f3e55a646._comment
@@ -0,0 +1,17 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2015-10-06T18:58:23Z"
+ content="""
+I think this is fine if you want to do it that way, and it's nice how
+short and simple the code is!
+
+If you wanted to add this as a patch in mainline propellor, I'd need to
+think about whether it makes sense to require working TH support to build
+propellor. I guess all the systems I personally run propellor on now,
+including the arm ones, have working TH, but there are certianly linux
+architectures that don't support TH yet.
+
+A build flag might be an option. Or, keep it in your local configuration,
+since it is quite short-n-sweet.
+"""]]
diff --git a/doc/forum/Embedding_configuration_files_using_Template_Haskell/comment_2_4d2b5f37e1f6cff806bb270d38c22f98._comment b/doc/forum/Embedding_configuration_files_using_Template_Haskell/comment_2_4d2b5f37e1f6cff806bb270d38c22f98._comment
new file mode 100644
index 00000000..09fd9ee7
--- /dev/null
+++ b/doc/forum/Embedding_configuration_files_using_Template_Haskell/comment_2_4d2b5f37e1f6cff806bb270d38c22f98._comment
@@ -0,0 +1,9 @@
+[[!comment format=mdwn
+ username="pelle"
+ subject="comment 2"
+ date="2015-10-09T08:06:18Z"
+ content="""
+In that case, I will probably create a regular property for copying file contents. It seemed like a neat solution, but if it's not available everywhere I don't think it's worth it. I've also heard that there are problems with TH so it might be best to avoid it unless there is a compelling reason to use it.
+
+I'm also thinking about using Data.Text.Template to template configuration files. With TH, the templates could be compiled and error-checked during build-time, kind of like what Yesod does. But again, I don't think it's worth the trouble.
+"""]]