Created
December 24, 2011 07:10
-
-
Save VoQn/1516663 to your computer and use it in GitHub Desktop.
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
-- dependency: utf8-string | |
data Character = Azu | Ruizu deriving Eq | |
instance Show Character where | |
show c = case c of | |
Azu -> "あず" | |
Ruizu -> "ルイズ" | |
class Mederable a where | |
mederu :: a -> String | |
instance Mederable Character where | |
mederu c = let name = show c in case c of | |
Azu -> name ++ "にゃんぺろぺろ" | |
Ruizu -> foldl (++) "" | |
[ name, "!", name, "!", name, "!" | |
, name, "ぅぅうううわぁああああああああああああああああああああああん!!! あぁああああ…ああ…あっあっー!あぁああああああ!!!" | |
, name, name, name, "ぅううぁわぁああああ!!!" | |
] | |
main = mapM_ (putStrLn . mederu) [Azu, Ruizu] | |
-- try | |
-- runhaskell JapaneseLoveExpression.hs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment