summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-23 19:19:16 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-23 19:19:16 -0400
commit983973f34dd32d5d6db0af70b6af23adf7802307 (patch)
tree96f74337a701c36e51fb001cc1711f972172f221 /doc
parent8dae0a1d807c5844936cfd218770cb2209df8df5 (diff)
blog for the day
Diffstat (limited to 'doc')
-rw-r--r--doc/design/assistant/blog/day_197__template_haskell.mdwn36
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/design/assistant/blog/day_197__template_haskell.mdwn b/doc/design/assistant/blog/day_197__template_haskell.mdwn
new file mode 100644
index 000000000..cb42b0803
--- /dev/null
+++ b/doc/design/assistant/blog/day_197__template_haskell.mdwn
@@ -0,0 +1,36 @@
+Set up an autobuilder for the linux standalone binaries.
+Did not get an Android autobuilder set up yet, but I did update
+the Android app with recent improvements, so [[upgrade|install/Android]].
+
+----
+
+Investigated further down paths to getting the webapp built for Android.
+
+* Since recent ghc versions support ghci and thus template haskell on arm,
+ at least some of the time, I wonder what's keeping the ghc-android build
+ from doing so? It might be due to it being a cross compiler. I tried
+ recompiling it with the stage 2, native compiler enabled. While I was
+ able to use that ghc binary on Android, it refused to run --interactive,
+ claiming it was not built with that enabled. Don't really understand
+ the ghc build system, so might have missed something.
+
+ Maybe I need to recompile ghc using the native ghc running on Android.
+ But that would involve porting gcc and a lot of libraries and toolchain
+ stuff to Android.
+
+* [yesod-pure](http://hackage.haskell.org/package/yesod-pure) is an option,
+ and I would not mind making all the code changes to use it, getting
+ rid of template haskell entirely. (Probably around 1 thousand lines of
+ code would need to be written, but most of it would be trivial
+ conversion of hamlet templates.)
+
+ Question is, will yesod install at all without template haskell? Not
+ easily. `vector`, `monad-logger`, `aeson`, `shakespeare`,
+ `shakespeare-css`, `shakespeare-js`, `shakespeare-i18n`, `hamlet`
+ all use TH at build time. Hacked them all to just remove the TH parts.
+
+ The hack job on `yesod-core` was especially rough, involving things like
+ 404 handlers. Did get it to build tho!
+
+ Still a dozen packages before I can build yesod, and then will try
+ building [this yesod-pure demo](https://gist.github.com/snoyberg/3870834/raw/212f0164de36524291df3ab35788e2b72d8d1e75/fib.hs).