Skip to content

[ fixed #2 ] Removed instances defined by regex-base 0.94.0.0. #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Text/Regex/TDFA/Text.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ import Text.Regex.TDFA.NewDFA.Uncons(Uncons(uncons))
import qualified Text.Regex.TDFA.NewDFA.Engine as Engine(execMatch)
import qualified Text.Regex.TDFA.NewDFA.Tester as Tester(matchTest)

instance Extract T.Text where
before = T.take; after = T.drop; empty = T.empty

instance Uncons T.Text where
{- INLINE uncons #-}
uncons = T.uncons
Expand Down
3 changes: 0 additions & 3 deletions Text/Regex/TDFA/Text/Lazy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ import Text.Regex.TDFA.NewDFA.Uncons(Uncons(uncons))
import qualified Text.Regex.TDFA.NewDFA.Engine as Engine(execMatch)
import qualified Text.Regex.TDFA.NewDFA.Tester as Tester(matchTest)

instance Extract L.Text where
before = L.take . toEnum; after = L.drop . toEnum; empty = L.empty

instance RegexContext Regex L.Text L.Text where
match = polymatch
matchM = polymatchM
Expand Down
2 changes: 1 addition & 1 deletion regex-tdfa-text.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ source-repository head
location: http://hub.darcs.net/shelarcy/regex-tdfa-text

library
Build-Depends: base >= 3 && < 5,array,text,regex-base,regex-tdfa >= 1.1.1
Build-Depends: base >= 3 && < 5,array,text,regex-base >= 0.94.0.0,regex-tdfa >= 1.1.1
Exposed-Modules: Text.Regex.TDFA.Text
Text.Regex.TDFA.Text.Lazy
Buildable: True
Expand Down