What IO activity does the GHC IO manager support?

Any file descriptor that can be managed by epoll/kqueue is eligible. Libraries that want asynchronous treatment of I/O need to cooperate with the I/O manager by making file descriptors non-blocking, and calling the threadWaitRead and threadWaitWrite functions in GHC.Conc before retrying a system call that previously returned EWOULDBLOCK. This has already been done for the … Read more

Haskell: Suppress quotes around strings when shown

Firstly, take a look at this question. Maybe you will be satisfied with toString function. Secondly, show is a function that maps some value to a String. So, it makes sense that quotes should be escaped: > show “string” “\”string\”” Is there a function that works like f that I’ve described above? Seems like you’re … Read more

When choosing a functional programming language for use with LLVM, what are the trade-offs?

Either OCaml or Haskell would be a good choice. Why not check out the LLVM tutorials for each language? The LLVM tutorial for OCaml is here: http://llvm.org/docs/tutorial/OCamlLangImpl1.html Haskell has more momentum these days, but there are plenty of good parsing libraries for OCaml as well including the PEG parser generator Aurochs, Menhir, and the GLR … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)