|author||pelle||2015-10-09 08:06:18 +0000|
|committer||admin||2015-10-09 08:06:18 +0000|
Added a comment
Diffstat (limited to 'doc/forum')
1 files changed, 9 insertions, 0 deletions
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
@@ -0,0 +1,9 @@
+ subject="comment 2"
+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.