fix status code handling

This commit is contained in:
Maharramoff 2020-04-15 21:39:27 +04:00 committed by GitHub
parent 529ca15180
commit 3e36760d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ pickRandomMsg msg = (msg !!) Control.Applicative.<$> randomRIO (0, Prelude.lengt
apiResponse :: Int -> String
apiResponse code
| code >= 200 = "Message Sent Successfully"
| code == 201 = "Message Sent Successfully"
| otherwise = "Failed to send SMS"
sendMsg :: IO ()