Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
Updated examples to use Text.LaTeX instead of Text.LaTeX.Base.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Diaz committed May 28, 2013
1 parent 12343c6 commit 6fcb014
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Examples/comments.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE OverloadedStrings #-}

import Text.LaTeX.Base
import Text.LaTeX

main :: IO ()
main = execLaTeXT example >>= renderFile "Comments.tex"
Expand Down
2 changes: 1 addition & 1 deletion Examples/fibs.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE OverloadedStrings #-}

import Text.LaTeX.Base
import Text.LaTeX

main :: IO ()
main = execLaTeXT example >>= renderFile "Fibs.tex"
Expand Down
4 changes: 2 additions & 2 deletions Examples/simple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ using 'fromString' everywhere.

{-# LANGUAGE OverloadedStrings #-}

import Text.LaTeX.Base
import Text.LaTeX

-- By executing 'execLaTeXT' you run the 'LaTeXT' monad and make a 'LaTeX' value as output.
-- With 'renderFile' you render it to 'Text' and write it in a file.
Expand Down Expand Up @@ -42,4 +42,4 @@ theBody = do
textbf "Enjoy!"
" "
-- This is how we nest commands.
textbf (large "Yoohoo!")
textbf (large "Yoohoo!")

0 comments on commit 6fcb014

Please sign in to comment.