desumasuãããid:desumasu:20070913ã§è§¦ãããã¦ãDictionary Passing Styleã«ã¤ãã¦æ¸ãã¦ã¿ããã¨æãã¾ãã åè:æ å ã®ã°ã©ã¹ã´ã¼Haskellã³ã³ãã¤ã«ã·ã¹ãã å©ç¨ã®æå¼ ä»¥ä¸ã®ãããªãã¹ãç¨ã¢ã¸ã¥ã¼ã«ãå®é¨ã®çºã«ä½¿ç¨ãã¾ãã module Test (show2 , show3) where show2 :: (Show a, Show b) => a -> b -> String show2 a b = show a ++ ", " ++ show b show3 :: (Show a) => a -> String show3 a = show2 a "hoge" Dictionary Passing Style Haskellã§ã¯å¤ãã®å ´åãå¤ç¸åã®å ·ä½çãªåã¸ã®è§£æ±ºã¯å®è¡æã«è¡ããã¾ãã(ãã¡ããéçã«è¡ãããå ´åãããã¾ã)
{{#tags}}- {{label}}
{{/tags}}