From 9b1cb50bdef8b02443e9a0037ad5c6b9e31a9179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Balmer?= Date: Mon, 12 Feb 2018 11:44:55 +0100 Subject: [PATCH 1/3] Eliminate cabal warning about non-existing file 'README.txt'. --- HPDF.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HPDF.cabal b/HPDF.cabal index 752fe9c..5f54cf2 100644 --- a/HPDF.cabal +++ b/HPDF.cabal @@ -17,7 +17,7 @@ extra-source-files: Test/Makefile Test/Penrose.hs Test/test.hs - README.txt + README.md NEWS.txt TODO.txt changelog From 0fcf0320150eb7b2d93653135e13db7fb06710aa Mon Sep 17 00:00:00 2001 From: limick Date: Sat, 6 Jul 2019 00:54:24 +0300 Subject: [PATCH 2/3] Current LTS, dangerous MonadFail instance. --- Graphics/PDF/Draw.hs | 4 ++++ stack.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Graphics/PDF/Draw.hs b/Graphics/PDF/Draw.hs index eff9001..15c050e 100644 --- a/Graphics/PDF/Draw.hs +++ b/Graphics/PDF/Draw.hs @@ -95,6 +95,7 @@ import qualified Data.ByteString.Lazy as B import Control.Monad.ST import Data.STRef +import Control.Monad.Fail import Control.Monad.Writer.Class import Control.Monad.Reader.Class import Control.Monad.State @@ -212,6 +213,9 @@ instance Functor Draw where instance MonadPath Draw +instance MonadFail Draw where + fail err = error "Draw monad failed" + readDrawST :: (forall s. DrawTuple s -> STRef s a) -> Draw a readDrawST f = Draw $ \env -> readSTRef (f env) diff --git a/stack.yaml b/stack.yaml index 655499c..ddd22c7 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,7 +1,7 @@ # For more information, see: https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md # Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) -resolver: lts-6.14 +resolver: lts-13.27 # Local packages, usually specified by relative directory name packages: From 5d8bb8ce04b53c185e218ca182265d322f9422c2 Mon Sep 17 00:00:00 2001 From: limick Date: Fri, 8 Nov 2019 00:32:26 +0200 Subject: [PATCH 3/3] LTS-14.13 --- stack.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack.yaml b/stack.yaml index ddd22c7..b86861c 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,7 +1,7 @@ # For more information, see: https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md # Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) -resolver: lts-13.27 +resolver: lts-14.13 # Local packages, usually specified by relative directory name packages: