File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ derive instance genericHost ∷ Generic Host _
3636instance showHost ∷ Show Host where show = genericShow
3737
3838parser ∷ Parser Host
39- parser = ipv6AddressParser <|> ipv4AddressParser <|> try regNameParser
39+ parser = try ipv6AddressParser <|> try ipv4AddressParser <|> regNameParser
4040
4141-- TODO: this is much too forgiving right now
4242ipv6AddressParser ∷ Parser Host
Original file line number Diff line number Diff line change @@ -162,6 +162,16 @@ main = runTest $ suite "Data.URI" do
162162 Nothing )
163163 Nothing
164164 Nothing ))
165+ testIsoURIRef
166+ " https://1a.example.com"
167+ (Left
168+ (URI
169+ (Just (Scheme " https" ))
170+ (HierarchicalPart
171+ (Just (Authority Nothing [(Tuple (NameAddress " 1a.example.com" ) Nothing )] ))
172+ Nothing )
173+ Nothing
174+ Nothing ))
165175 testIsoURIRef
166176 " http://en.wikipedia.org/wiki/URI_scheme"
167177 (Left
You can’t perform that action at this time.
0 commit comments