mirror of
https://github.com/alpmestan/taggy.git
synced 2024-09-11 15:05:40 +03:00
Define ~> as a specialisation of the version in Hspec.Attoparsec.Source.
This commit is contained in:
parent
bee253e428
commit
a608e0494d
@ -6,6 +6,7 @@ import Data.Attoparsec.Text.Lazy
|
||||
import Data.Text.Lazy
|
||||
import Test.Hspec
|
||||
import Test.Hspec.Attoparsec (shouldParse)
|
||||
import qualified Test.Hspec.Attoparsec.Source (Source((~>)))
|
||||
import Text.Taggy.Parser
|
||||
import Text.Taggy.Types
|
||||
|
||||
@ -100,4 +101,4 @@ spec = do
|
||||
]
|
||||
|
||||
(~>) :: Text -> Parser a -> Either String a
|
||||
t ~> p = eitherResult $ parse p t
|
||||
(~>) = (Test.Hspec.Attoparsec.Source.~>)
|
||||
|
Loading…
Reference in New Issue
Block a user