|
definition: |
mainExec :: String -> Bool -> IO ()
mainExec texfile runlatex = do
hascode <- extractCode texfile
when (hascode && runlatex) $ do
st <- system $ "pdflatex " ++ texfile
when (st==0) $ do
system $ "evince " ++ dropExtension texfile ++ ".pdf"
return ()
exitWith st
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_) |-> _}
|
|
name: |
mainExec |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
String -> Prelude.Bool -> Prelude.IO () |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |