[ANN] haskintex 0.4.0.0 - Haskell code inside a LaTeX document, now with IO!

Hello haskellers. Good news for the users of haskintex. This release opens new possibilities and solves some frustrations we had in the past. For those who don't know what haskintex is, here is an overview. Haskintex is a program that reads a LaTeX file and evaluates Haskell expressions contained in some specific commands and environments. For example, if you save the file "foo.htex" with: -- foo.htex \documentclass{article} \begin{document} I have \evalhaskell{2+3} fingers in my right hand. \end{document} -- ...and run "haskintex foo", you will get the following output: \documentclass{article} \begin{document} I have \verb`5` fingers in my right hand. \end{document} Just as you expected. If you want to know more details, visit the haskintex site at: http://daniel-diaz.github.io/projects/haskintex What is new in this release? We have added two new features: * \iohatex{t}, where t :: IO LaTeX. It works exactly as the \hatex command does, but it expects an input of type IO LaTeX. This means you can perform IO computations now! * \begin{haskellpragmas}...\end{haskellpragmas} This will allow to include pragmas in the temporal Haskell module. In addition to these two features, a new flag can be passed to the program: -debug. It writes down in a file the representation of the input that haskintex uses internally. It can be useful in those cases that you are not getting the output you expect. And that's it for now. The code didn't grow much (and I want it to stay small) but I think possibilities have grown substantially. If you want to give it try, run "cabal update" followed by "cabal install haskintex". Good luck, Daniel Díaz.
participants (1)
-
Daniel Díaz Casanueva