This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set Maildir | |
MAILDIR = "$HOME/Maildir" | |
# forward all emails sent to "@mydomain.de" | |
# to "[email protected]" | |
if (/^To:.*@mydomain\.de/:h) | |
{ | |
to "[email protected]" | |
exit | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main = do | |
money <- getLine | |
mapM putStr $ coins [200, 100, 50, 20, 10, 5, 2, 1] (read money) | |
coins [] _ = [] | |
coins (x:xs) y | |
| x <= y = (coin x) : coins (x:xs) (y-x) | |
| x > y = coins xs y | |
coin x |