Logger like RIO for Effectful
import RIO (stderr)
import Effectful
import Effectful.Log.Static
main :: IO ()
main = do
let isVerbose = True
logOptions <- logOptionsHandle stderr isVerbose
runEff $ runLog logOptions $ do
logDebug "Debug message"
logInfo "Info message"
logWarn "Warn message"
logError "Error message"