File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ module Text.Regex.TDFA(getVersion_Text_Regex_TDFA
176
176
,module Text.Regex.TDFA.Common
177
177
,module Text.Regex.Base ) where
178
178
179
+ import qualified Control.Monad.Fail as Fail
179
180
import Data.Version (Version )
180
181
import Text.Regex.Base
181
182
import Text.Regex.TDFA.String ()
@@ -202,9 +203,9 @@ getVersion_Text_Regex_TDFA = version
202
203
203
204
-- | This is the monadic matching operator. If a single match fails,
204
205
-- 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 )
206
207
=> 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
208
209
make = makeRegexM
209
210
q <- make r
210
211
matchM q x
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ library
51
51
-- add any new dependency that isn't already incurred by
52
52
-- `regex-tdfa`'s transitive deps
53
53
if !impl(ghc >= 8.0 )
54
- build-depends : semigroups == 0.18. *
54
+ build-depends : fail
55
+ , semigroups == 0.18. *
55
56
56
57
other-modules : Paths_regex_tdfa
57
58
Exposed-Modules : Data.IntMap.CharMap2
You can’t perform that action at this time.
0 commit comments