1
0
forked from GitHub/gf-core

move the prelude sources to the prelude directory and add the resource library to cabal

This commit is contained in:
krasimir
2008-06-19 14:16:05 +00:00
parent 0808aa8936
commit b7be040be6
11 changed files with 541 additions and 13 deletions

12
lib/prelude/Latex.gf Normal file
View File

@@ -0,0 +1,12 @@
resource Latex = open Prelude in {
oper
command : Str -> Str = \c -> "\\" + c ;
fun1 : Str -> Str -> Str = \f,x -> "\\" + f + "{" ++ x ++ "}" ;
fun2 : Str -> Str -> Str -> Str =
\f,x,y -> "\\" + f + "{" ++ x ++ "}{" ++ y ++ "}" ;
begin : Str -> Str = \e -> "\\begin{" + e + "}" ;
end : Str -> Str = \e -> "\\end{" + e + "}" ;
inEnv : Str -> Str -> Str = \e,s -> begin e ++ s ++ end e ;
}