File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import Prelude
25
25
import Control.Alt ((<|>))
26
26
import Data.Either (Either (..), either )
27
27
import Text.Parsing.Parser (Parser )
28
+ import Text.Parsing.Parser.Combinators (try )
28
29
import URI.Authority (Authority (..))
29
30
import URI.Common (URIPartParseError )
30
31
import URI.Fragment (Fragment )
@@ -108,7 +109,9 @@ parser
108
109
∷ ∀ userInfo hosts path hierPath relPath query fragment r
109
110
. Record (URIRefParseOptions userInfo hosts path hierPath relPath query fragment r )
110
111
→ Parser String (URIRef userInfo hosts path hierPath relPath query fragment )
111
- parser opts = (Left <$> URI .parser opts) <|> (Right <$> RelativeRef .parser opts)
112
+ parser opts
113
+ = try (Left <$> URI .parser opts)
114
+ <|> (Right <$> RelativeRef .parser opts)
112
115
113
116
-- | A printer for a general URI.
114
117
print
You can’t perform that action at this time.
0 commit comments