我无法理解这个“实例”在 Haskell 中的含义(第 19 行):
16 > type Prog = [Function]
17 > data Function = Defun String String Exp
18 > -- deriving Show
19 > instance Show Function where
20 > show (Defun n p e) = "\n" ++ n ++ "(" ++ p ++ ") { return " ++ show e ++ "; }\n"
21 > showList [] = showString ""
22 > showList (f:fs) = shows f . showl fs
23 > where showl [] = showString ""
24 > showl (f:fs) = shows f . showl fs
谢谢。