packages feed

haskintex 0.6.0.1 → 0.7.0.0

raw patch · 2 files changed

+7/−7 lines, 2 filesdep ~haskell-src-extsPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: haskell-src-exts

API changes (from Hackage documentation)

Files

Haskintex.hs view
@@ -185,12 +185,12 @@     xs = [ string "memo" >> return True          , string "notmemo" >> return False ] -processExp :: (H.Exp -> H.Exp) -- ^ Transformation to apply to Haskell Expression+processExp :: (H.Exp () -> H.Exp ()) -- ^ Transformation to apply to Haskell Expression            -> Text -- ^ Haskell expression            -> Parser Text processExp f t = do   return $ case H.parseExp (unpack t) of-    H.ParseOk e -> pack $ H.prettyPrint $ f e+    H.ParseOk e -> pack $ H.prettyPrint $ f $ const () <$> e     _ -> t  p_inserthatex :: Bool -- False for pure, True for IO@@ -205,9 +205,9 @@   _ <- char '{'   h <- p_haskell 0   auto <- lift $ autotexyFlag <$> get-  let v = H.Var . H.UnQual . H.Ident-      f = if auto then H.App $ if isIO then v "fmap" `H.App` v "texy"-                                       else v "texy" +  let v = H.Var () . H.UnQual () . H.Ident ()+      f = if auto then H.App () $ if isIO then H.App () (v "fmap") (v "texy")+                                          else v "texy"                    else id   cons b <$> processExp f (pack h) 
haskintex.cabal view
@@ -1,5 +1,5 @@ name:                haskintex-version:             0.6.0.1+version:             0.7.0.0 synopsis:            Haskell Evaluation inside of LaTeX code. description:   The /haskintex/ (Haskell in LaTeX) program is a tool that reads a LaTeX file and evaluates Haskell expressions contained@@ -58,7 +58,7 @@                , hint >= 0.3.3                , containers >= 0.5.5                , binary >= 0.7.1-               , haskell-src-exts >= 1.15.0+               , haskell-src-exts >= 1.18.2   exposed-modules: Haskintex   other-modules: Paths_haskintex   ghc-options: -Wall