packages feed

haskintex 0.8.0.0 → 0.8.0.1

raw patch · 3 files changed

+15/−7 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Haskintex.hs view
@@ -36,7 +36,7 @@ -- Lists import Data.List (intersperse, isSuffixOf) -- GHC-import Language.Haskell.Interpreter hiding (get)+import Language.Haskell.Interpreter hiding (get, modName) import Language.Haskell.Interpreter.Unsafe (unsafeRunInterpreterWithArgs) import Data.Typeable import qualified Language.Haskell.Exts.Pretty as H@@ -564,13 +564,21 @@   let p = if isMemo then M.lookup t memt else Nothing   case p of     Nothing -> do+      useStack <- fmap (maybe False isStackDB . packageDb) get       -- Run GHC externally and read the result.-      r <- lift $ pack . init <$> readProcess "ghc"+      r <- if useStack+        then lift $ pack . init <$> readProcess "stack"                 -- Disable reading of .ghci files.-                [ "-ignore-dot-ghci"+                ["ghc", "--", "-ignore-dot-ghci",                  -- Evaluation loading the temporal module.-                , "-e", e, modName ++ ".hs"-                  ] []+                modName ++ ".hs"+                , "-e", e ] []+        else lift $ pack . init <$> readProcess "ghc"+                -- Disable reading of .ghci files.+                ["-ignore-dot-ghci", +                -- Evaluation loading the temporal module.+                modName ++ ".hs"+                , "-e", e ] []       -- If the expression is marked to be memorized, we do so.       when isMemo $ do          modify $ \st -> st { memoTree = M.insert t r $ memoTree st }
LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2013, Daniel Díaz+Copyright (c) 2017, Daniel Díaz  All rights reserved. 
haskintex.cabal view
@@ -1,5 +1,5 @@ name:                haskintex-version:             0.8.0.0+version:             0.8.0.1 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