HaTeX-qq 0.1.0.0 → 0.1.0.1
raw patch · 3 files changed
+1/−34 lines, 3 filesdep −uniplate
Dependencies removed: uniplate
Files
- HaTeX-qq.cabal +1/−4
- src/Text/LaTeX/QQ.hs +0/−1
- src/Text/LaTeX/QQ/Orphans.hs +0/−29
HaTeX-qq.cabal view
@@ -1,5 +1,5 @@ name: HaTeX-qq-version: 0.1.0.0+version: 0.1.0.1 cabal-version: >=1.10 build-type: Simple license: BSD3@@ -24,7 +24,6 @@ Text.LaTeX.Utils build-depends: base >=4.9.1.0 && <4.10,- uniplate >=1.6.12 && <1.7, HaTeX >=3.17.2.0 && <3.18, antiquoter >=0.1.1.0 && <0.2, template-haskell >=2.11.1.0 && <2.12,@@ -33,6 +32,4 @@ default-language: Haskell2010 other-extensions: TemplateHaskell OverloadedStrings hs-source-dirs: src- other-modules:- Text.LaTeX.QQ.Orphans
src/Text/LaTeX/QQ.hs view
@@ -2,7 +2,6 @@ {-# LANGUAGE MultiParamTypeClasses, NoMonomorphismRestriction #-} {-# LANGUAGE OverloadedStrings, StandaloneDeriving, TemplateHaskell #-} module Text.LaTeX.QQ (hat, hat', mkHaTeXQQ) where-import Text.LaTeX.QQ.Orphans () import Text.LaTeX.Utils (stripTeX) import Control.Monad ((<=<))
− src/Text/LaTeX/QQ/Orphans.hs
@@ -1,29 +0,0 @@-{-# LANGUAGE DeriveDataTypeable, MultiParamTypeClasses, StandaloneDeriving #-}-{-# OPTIONS_GHC -fno-warn-orphans #-}-module Text.LaTeX.QQ.Orphans () where-import Data.Data (Data, Typeable)-import Data.Generics.Uniplate.Direct (Biplate (..), Uniplate (..), plate, (|*))-import Data.Generics.Uniplate.Direct ((|-), (||*), (||+))-import Text.LaTeX.Base.Syntax (LaTeX (..), MathType (..), Measure (..))-import Text.LaTeX.Base.Syntax (TeXArg (..))--instance Biplate TeXArg LaTeX where- biplate (FixArg t) = plate FixArg |* t- biplate (OptArg t) = plate OptArg |* t- biplate (MOptArg ts) = plate MOptArg ||* ts- biplate (SymArg t) = plate SymArg |* t- biplate (MSymArg ts) = plate MSymArg ||* ts- biplate (ParArg t) = plate ParArg |* t- biplate (MParArg ts) = plate MParArg ||* ts--instance Uniplate LaTeX where- uniplate (TeXRaw w) = plate TeXRaw |- w- uniplate (TeXComm s args) = plate TeXComm |- s ||+ args- uniplate (TeXCommS s) = plate TeXCommS |- s- uniplate (TeXEnv env args lat) = plate TeXEnv |- env ||+ args |* lat- uniplate (TeXMath typ lat) = plate TeXMath |- typ |* lat- uniplate (TeXLineBreak mm b) = plate TeXLineBreak |- mm |- b- uniplate (TeXBraces l) = plate TeXBraces |* l- uniplate (TeXComment t) = plate TeXComment |- t- uniplate (TeXSeq l r) = plate TeXSeq |* l |* r- uniplate TeXEmpty = plate TeXEmpty