Skip to content

Commit e0e8f41

Browse files
committed
ignore incomplete-uni-patterns warning
1 parent e4747e9 commit e0e8f41

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

exes/Main.hs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,19 +358,15 @@ runAction opts = do
358358
-> return n
359359
_ -> fail $ "bad port number " ++ show str
360360

361-
checkHostURI :: ServerConfig -> Maybe String -> Int -> IO URI
362361
checkHostURI defaults Nothing port = do
363362
let guessURI = confHostUri defaults
364-
case uriAuthority guessURI of
365-
Nothing -> fail "No URI Authority"
366-
Just authority -> let
363+
Just authority = uriAuthority guessURI
367364
portStr | port == 80 = ""
368365
| otherwise = ':' : show port
369366
guessURI' = guessURI { uriAuthority = Just authority { uriPort = portStr } }
370-
in do
371-
lognotice verbosity $ "Guessing public URI as " ++ show guessURI'
367+
lognotice verbosity $ "Guessing public URI as " ++ show guessURI'
372368
++ "\n(you can override with the --base-uri= flag)"
373-
return guessURI'
369+
return guessURI'
374370

375371
checkHostURI _ (Just str) _ = case parseAbsoluteURI str of
376372
Nothing -> fail $ "Cannot parse as a URI: " ++ str ++ "\n"

0 commit comments

Comments
 (0)