diff options
author | t4ccer | 2024-03-19 15:07:53 -0600 |
---|---|---|
committer | t4ccer | 2024-03-19 15:07:53 -0600 |
commit | eaf992fa45136a6b695ae17128400b07d0899ee1 (patch) | |
tree | 92b3796f1f76695ac1710a621c43da22f76a1d4b /pkgs/development/haskell-modules/patches | |
parent | 73aeb193869b5c0973c6ac0818b86415813e9312 (diff) |
haskellPackages.cheapskate: unbreak
Diffstat (limited to 'pkgs/development/haskell-modules/patches')
-rw-r--r-- | pkgs/development/haskell-modules/patches/cheapskate-mtl-2-3-support.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/patches/cheapskate-mtl-2-3-support.patch b/pkgs/development/haskell-modules/patches/cheapskate-mtl-2-3-support.patch new file mode 100644 index 000000000000..de376ea8726c --- /dev/null +++ b/pkgs/development/haskell-modules/patches/cheapskate-mtl-2-3-support.patch @@ -0,0 +1,23 @@ +diff --git a/Cheapskate/Parse.hs b/Cheapskate/Parse.hs +index b90d8e5..2925132 100644 +--- a/Cheapskate/Parse.hs ++++ b/Cheapskate/Parse.hs +@@ -1,4 +1,5 @@ + {-# LANGUAGE OverloadedStrings #-} ++{-# LANGUAGE CPP #-} + module Cheapskate.Parse ( + markdown + ) where +@@ -21,6 +22,12 @@ import Control.Applicative + import qualified Data.Map as M + import Data.List (intercalate) + ++#if MIN_VERSION_mtl(2, 3, 0) ++import Control.Monad (guard, unless, replicateM) ++#else ++#endif ++ ++ + import Debug.Trace + + -- | Parses the input as a markdown document. Note that 'Doc' is an instance |