ports/math/hs-penrose/files/patch-docopt-0.7.0.5_System_Console_Docopt_QQ.hs
Gleb Popov 19c26acbf0 Upgrade lang/ghc to 8.8.3 and many Haskell ports along the way.
PR:		244784
Submitted by:	Evilham <contact@evilham.com> (some ports)
2020-05-04 18:08:10 +00:00

11 lines
529 B
Haskell

--- docopt-0.7.0.5/System/Console/Docopt/QQ.hs.orig 2016-11-10 15:48:52 UTC
+++ docopt-0.7.0.5/System/Console/Docopt/QQ.hs
@@ -56,7 +56,7 @@ docopt = QuasiQuoter { quoteExp = docoptExp
, quotePat = unsupported "Pattern"
, quoteType = unsupported "Type"
}
- where unsupported = fail . (++ " context unsupported")
+ where unsupported = error . (++ " context unsupported")
-- | Same as 'docopt', but parses the given file instead of a literal
-- string.