gentoo/dev-haskell/email-validate/files/email-validate-2.3.2.15-fix-doctest.patch
Sam James 3946fc105f
ddev-haskell/email-validate: add 2.3.2.15 (sync w/ ::haskell)
Signed-off-by: Sam James <sam@gentoo.org>
2022-07-23 23:50:52 +01:00

27 lines
941 B
Diff

From: hololeap <hololeap@protonmail.com>
Signed-off-by: hololeap <hololeap@protonmail.com>
Bug: https://github.com/gentoo-haskell/gentoo-haskell/issues/1231
Small fix to get doctest working
diff -urN email-validate-2.3.2.15/src/Text/Email/QuasiQuotation.hs email-validate-2.3.2.15-r1/src/Text/Email/QuasiQuotation.hs
--- email-validate-2.3.2.15/src/Text/Email/QuasiQuotation.hs 2021-07-04 14:50:48.000000000 -0600
+++ email-validate-2.3.2.15-r1/src/Text/Email/QuasiQuotation.hs 2022-03-17 17:33:15.666925125 -0600
@@ -4,6 +4,7 @@
#else
{-# LANGUAGE TemplateHaskell #-}
#endif
+{-# LANGUAGE PackageImports #-}
module Text.Email.QuasiQuotation
( email
@@ -11,7 +12,7 @@
import qualified Data.ByteString.Char8 as BS8
-import Language.Haskell.TH.Quote (QuasiQuoter(..))
+import "template-haskell" Language.Haskell.TH.Quote (QuasiQuoter(..))
import Text.Email.Validate (validate, localPart, domainPart, unsafeEmailAddress)