Skip to content
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