Laziness annotation on guardM

This commit is contained in:
Julian Ospald 2020-01-17 01:50:12 +01:00
parent c6f102e883
commit ea52108ff7
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -82,7 +82,7 @@ whileM_ :: Monad m => m a -> (a -> m Bool) -> m ()
whileM_ ~action = void . whileM action
guardM :: (Monad m, Alternative m) => m Bool -> m ()
guardM f = guard =<< f
guardM ~f = guard =<< f
lBS2sT :: L.ByteString -> Text
lBS2sT = TL.toStrict . TLE.decodeUtf8