packages feed

ihaskell-hatex (empty) → 0.2.0.0

raw patch · 4 files changed

+58/−0 lines, 4 filesdep +HaTeXdep +basedep +ihaskellsetup-changed

Dependencies added: HaTeX, base, ihaskell, text

Files

+ IHaskell/Display/Hatex.hs view
@@ -0,0 +1,14 @@+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE FlexibleInstances #-}+-- | Provides 'IHaskellDisplay' instances for 'LaTeX' and 'LaTeXT'.+module IHaskell.Display.Hatex () where++import IHaskell.Display+import Text.LaTeX+import qualified Data.Text as T++instance IHaskellDisplay LaTeX where+  display = display . IHaskell.Display.latex . T.unpack . render++instance (a ~ (), IO ~ io) => IHaskellDisplay (LaTeXT io a) where+    display ma = display =<< execLaTeXT ma
+ LICENSE view
@@ -0,0 +1,20 @@+The MIT License (MIT)++Copyright (c) 2013 Andrew Gibiansky++Permission is hereby granted, free of charge, to any person obtaining a copy of+this software and associated documentation files (the "Software"), to deal in+the Software without restriction, including without limitation the rights to+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of+the Software, and to permit persons to whom the Software is furnished to do so,+subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ ihaskell-hatex.cabal view
@@ -0,0 +1,22 @@+name:                ihaskell-hatex+version:             0.2.0.0+synopsis:            IHaskell display instances for hatex+-- description:         +homepage:            http://www.github.com/gibiansky/IHaskell+license:             MIT+license-file:        LICENSE+author:              Adam Vogt+maintainer:          andrew.gibiansky@gmail.com+category:            Development+build-type:          Simple+cabal-version:       >=1.16+++library+  exposed-modules:     IHaskell.Display.Hatex+  build-depends:       base ==4.6.* || ==4.7.*,+                       text,+                       HaTeX >= 3.9,+                       ihaskell >= 0.5+  default-language:    Haskell2010+