change module exports

This commit is contained in:
2024-11-10 19:33:39 +00:00
parent 030eb6d022
commit 1034a4c0b3
3 changed files with 16 additions and 12 deletions

View File

@@ -43,8 +43,8 @@ import API
--
runP2PRC :: Int -> String -> IO ()
runP2PRC portNumber domainName = do
runP2PRC :: MapPortRequest -> IO ()
runP2PRC (MkMapPortRequest portNumber domainName) = do
--
-- TODO: add quickcheck testing (quickchecking-dynamic)
@@ -135,13 +135,10 @@ runP2PRC portNumber domainName = do
where
exitOnQ :: IO () -> IO ()
exitOnQ f = do
hSetBuffering stdin NoBuffering
c <- getChar
when (toLower c /= 'q') $ exitOnQ f
f
exitOnQ exitF = do
hSetBuffering stdin NoBuffering
c <- getChar
when (toLower c /= 'q') $ exitOnQ exitF
exitF