Skip to content

meowgorithm/mr-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mr. Log

A fistfull of Haskell functions for printing log info and, in one case, also exiting with error.

import System.IO.MrLog ( printInfo, printWarn, printErr, fatal )

main :: IO ()
main = do

    -- Prints:
    -- [INFO] hello!
    printInfo "hello!"

    -- Prints:
    -- [WARN] uh oh
    printWarn "uh oh"

    -- Prints:
    -- [ERROR] oh no
    printErr "oh no"

    -- Prints:
    -- [FATAL] something went very wrong!
    -- ...and exits
    fatal "something went very wrong!"

Author

Christian Rocha

License

MIT

About

Just some Haskell functions for printing logging information

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published