From d429da2c9c476ec7c2e43a60e39b19aa14bf7a09 Mon Sep 17 00:00:00 2001 From: pelle Date: Fri, 9 Oct 2015 08:06:18 +0000 Subject: Added a comment --- .../comment_2_4d2b5f37e1f6cff806bb270d38c22f98._comment | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/forum/Embedding_configuration_files_using_Template_Haskell/comment_2_4d2b5f37e1f6cff806bb270d38c22f98._comment (limited to 'doc') 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. +"""]] -- cgit v1.2.3