diff options
author | Camil Staps | 2016-06-06 23:00:42 +0200 |
---|---|---|
committer | Camil Staps | 2016-06-06 23:00:42 +0200 |
commit | d8297fec19292c544a32a474500eca49552215d0 (patch) | |
tree | 5558714e59aad6526cb863671822af665579df8a /LaTeX.dcl | |
parent | Readme (diff) |
Diffstat (limited to 'LaTeX.dcl')
-rw-r--r-- | LaTeX.dcl | 15 |
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 |