Skip to content

Commit 55bb2fb

Browse files
asrArtyom Kazak
authored and
Artyom Kazak
committed
[ fixed #23 ] Supported GHC 8.8.1. (#27)
1 parent 343b49f commit 55bb2fb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Text/Regex/TDFA.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ module Text.Regex.TDFA(getVersion_Text_Regex_TDFA
176176
,module Text.Regex.TDFA.Common
177177
,module Text.Regex.Base) where
178178

179+
import qualified Control.Monad.Fail as Fail
179180
import Data.Version(Version)
180181
import Text.Regex.Base
181182
import Text.Regex.TDFA.String()
@@ -202,9 +203,9 @@ getVersion_Text_Regex_TDFA = version
202203

203204
-- | This is the monadic matching operator. If a single match fails,
204205
-- then 'fail' will be called.
205-
(=~~) :: (RegexMaker Regex CompOption ExecOption source,RegexContext Regex source1 target,Monad m)
206+
(=~~) :: (RegexMaker Regex CompOption ExecOption source,RegexContext Regex source1 target, Fail.MonadFail m)
206207
=> source1 -> source -> m target
207-
(=~~) x r = do let make :: (RegexMaker Regex CompOption ExecOption a, Monad m) => a -> m Regex
208+
(=~~) x r = do let make :: (RegexMaker Regex CompOption ExecOption a, Fail.MonadFail m) => a -> m Regex
208209
make = makeRegexM
209210
q <- make r
210211
matchM q x

regex-tdfa.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ library
5151
-- add any new dependency that isn't already incurred by
5252
-- `regex-tdfa`'s transitive deps
5353
if !impl(ghc >= 8.0)
54-
build-depends: semigroups == 0.18.*
54+
build-depends: fail
55+
, semigroups == 0.18.*
5556

5657
other-modules: Paths_regex_tdfa
5758
Exposed-Modules: Data.IntMap.CharMap2

0 commit comments

Comments
 (0)