main = putStrLn "π x. p(x)"
works correctly when compiled. However, I had trouble getting it to work via the emacs interactive buffer. I found that when creating a ghci buffer with `inferior-haskell-load-file' my bash shell variables, in particular LC_CTYPE, were not getting set. I thus created a new program that first sets LC_CTYPE and then calls ghci. This gets the unicode to print correctly in the inferior buffer.
#!/bin/bash
export LC_CTYPE="en_US.UTF-8"
ghci
I then customize `haskell-program-name' to be the name of this file. If someone knows a better way to do this, please let me know.
No comments:
Post a Comment