packages feed

HaTeX 2.1.0 → 2.1.1

raw patch · 5 files changed

+15/−20 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

HaTeX.cabal view
@@ -1,5 +1,5 @@ Name:           HaTeX
-Version:        2.1.0
+Version:        2.1.1
 Author:         Daniel Diaz
 Homepage:       http://ddiaz.asofilak.es/packages/HaTeX
 License:        BSD3
@@ -19,21 +19,9 @@          .
          Changes from last version:
          .
-         * Fixed an error displaying LaTeX and LaTeX2e writings.
-         .
-         * Added @date@ command.
-         .
-         * Fixed some documentation notes.
-         .
-         * Added new documentation.
-         .
-         * Added @Heigth@ type synonym.
-         .
-         * Added @rule@ command.
-         .
-         * Hidden @genlx@ and @ungenlx@ functions from the Text.LaTeX module.
+         * Now, Text.LaTeX module re-export Data.String.
          .
-         * Added @fancyhdr@ package with its @fancy@ page style.
+         * Fixed some documentation.
 Extensions:     OverloadedStrings , FlexibleInstances , TypeSynonymInstances
 Build-type:     Simple
 Build-depends:  base == 4.*
Text/LaTeX.hs view
@@ -1,6 +1,9 @@ 
 {-# OPTIONS_GHC -XOverloadedStrings #-}
 
+-- | This is the main module of the HaTeX library.
+--   For a complete understanding of this package, read \"/HaTeX, a monadic perspective of LaTeX/\"
+--   at the HaTeX home page: <http://ddiaz.asofilak.es/packages/HaTeX>.
 module Text.LaTeX 
      ( -- * How to use HaTeX
        -- ** Introduction
@@ -35,6 +38,8 @@      , module Text.LaTeX.Packages
      , module Text.LaTeX.Commands
      , module Text.LaTeX.Macro
+       -- * Data.String re-export
+     , module Data.String
      ) where
 
 import Text.LaTeX.Monad hiding (genlx,ungenlx)
@@ -45,6 +50,8 @@ import Text.LaTeX.Result
 import Text.LaTeX.Macro
 --
+import Data.String
+--
 import System.FilePath (takeExtension)
 import Control.Monad.Trans (MonadIO (..))
 
@@ -57,7 +64,7 @@ 
 -- | Your HaTeX version.
 hatexVersion :: Monad m => LaTeX m
-hatexVersion = do textbf "2" ; ".1.0"
+hatexVersion = do textbf "2" ; ".1.1"
 
 -- | Render 'LaTeX' to 'String'.
 render :: Monad m => LaTeX m -> m String
Text/LaTeX/Monad.hs view
@@ -19,7 +19,7 @@ 
 import Control.Monad.Writer
 import Data.Monoid
-import GHC.Exts
+import Data.String
 import System.IO.Unsafe
 import Text.LaTeX.Result
 
Text/LaTeX/Packages.hs view
@@ -2,10 +2,10 @@ {-# LANGUAGE OverloadedStrings,TypeSynonymInstances,NoMonomorphismRestriction #-} 
 
 module Text.LaTeX.Packages
-    ( -- * Package ms
+    ( -- * Packages
       Package
     , PackageOption
-      -- * List of Package ms
+      -- * List of Packages
       -- ** @doc@
     , doc
       -- ** @exscale@
Text/LaTeX/Result.hs view
@@ -12,8 +12,8 @@ import Data.Monoid
 
 import Data.DString (DString)
+import Data.String (fromString)
 import Data.String.ToString (toString)
-import GHC.Exts (fromString)
 
 import Data.String.Combinators