summaryrefslogtreecommitdiff
path: root/doc/design/assistant/blog/day_240__it_builds.mdwn
blob: 85e3dad6fbdb0ab6923abc13936f0d5e9c983881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Late last night, I successfully built the full webapp for Android!

That was with several manual modifications to the generated code, which I
still need to automate. And I need to set up the autobuilder properly
still. And I need to find a way to make the webapp open Android's web browser
to url. So it'll be a while yet until a package is available
to try. But what a milestone!

The point I was stuck on all day yesterday was generated code that
looked like this:

[[!format haskell """
(toHtml
  (\ u_a2ehE -> urender_a2ehD u_a2ehE []
    (CloseAlert aid)))));
"""]]

That just couldn't type check at all. Most puzzling. My best guess is that
`u_a2ehE` is the dictionary GHC passes internally to make a typeclass work,
which somehow here leaked out and became visible. Although
I can't rule out that I may have messed something up in my build environment.
The EvilSplicer has a hack in it that finds such code and converts it to
something like this:

[[!format haskell """
(toHtml
  (flip urender_a2ehD []
    (CloseAlert aid)))));
"""]]

I wrote some more about the process of the Android port in my personal blog:
[Template Haskell on impossible architectures](http://joeyh.name/blog/entry/Template_Haskell_on_impossible_architectures/)

----

Release day today. The OSX builds are both not available yet for this
release, hopefully will come out soon.