packages feed

haskintex 0.4.0.0 → 0.4.1.0

raw patch · 3 files changed

+22/−3 lines, 3 files

Files

Haskintex.hs view
@@ -305,7 +305,7 @@  -- | Run haskintex with the given arguments. For example: ----- > haskintex ["-visible","-overwrite"]+-- > haskintex ["-visible","-overwrite","foo.htex"] -- --   Useful if you want to call /haskintex/ from another program. --   This function does /not/ do any system call.
+ examples/threaded.htex view
@@ -0,0 +1,18 @@+\documentclass{article}+\begin{document}+\begin{writehaskell}++import Text.LaTeX++import Control.Concurrent+import Control.Concurrent.MVar++test :: IO String+test = do+  v <- newEmptyMVar+  forkOS $ putMVar v "concurrent"+  takeMVar v++\end{writehaskell}+I like to write \iohatex{fmap fromString test} programs.+\end{document}
haskintex.cabal view
@@ -1,5 +1,5 @@ name:                haskintex-version:             0.4.0.0+version:             0.4.1.0 synopsis:            Haskell Evaluation inside of LaTeX code. description:   The /haskintex/ (Haskell in LaTeX) program is a tool that reads a LaTeX file and evaluates Haskell expressions contained@@ -24,6 +24,7 @@                      examples/io.htex                      examples/pragmas.htex                      examples/string.htex+                     examples/threaded.htex cabal-version:       >=1.10  executable haskintex@@ -32,7 +33,7 @@   build-depends: base == 4.*                , haskintex   default-language: Haskell2010-  ghc-options: -Wall+  ghc-options: -Wall -threaded  library   default-language: Haskell2010