aboutsummaryrefslogtreecommitdiff
path: root/LaTeX.dcl
diff options
context:
space:
mode:
authorCamil Staps2016-06-06 23:00:42 +0200
committerCamil Staps2016-06-06 23:00:42 +0200
commitd8297fec19292c544a32a474500eca49552215d0 (patch)
tree5558714e59aad6526cb863671822af665579df8a /LaTeX.dcl
parentReadme (diff)
LaTeX formatting for derivation treesHEADmaster
Diffstat (limited to 'LaTeX.dcl')
-rw-r--r--LaTeX.dcl15
1 files changed, 15 insertions, 0 deletions
diff --git a/LaTeX.dcl b/LaTeX.dcl
new file mode 100644
index 0000000..cbccf4c
--- /dev/null
+++ b/LaTeX.dcl
@@ -0,0 +1,15 @@
+definition module LaTeX
+// This module is more flexible than Text.LaTeX
+
+from StdOverloaded import class toString
+
+:: LaTeX = Command !String ![LaTeX]
+ | Environment !String ![LaTeX]
+ | Text !String
+ | Raw !String
+ | Math !Bool /* double $ */ ![LaTeX]
+ | List ![LaTeX]
+
+class toLaTeX a :: !a -> LaTeX
+
+instance toString LaTeX