git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Update typeclasses.rst
commit2668838ad7e25ce4395180106314e74cb5768981 authorPhil Freeman <paf31@cantab.net> dateTue 4 Mar 2014, 16:29 (13 years ago) parent78065b6
1 file changed+3−3
docs/source/typeclasses.rst+3−3
docs/source/typeclasses.rst+3−3
@@ -12,14 +12,14 @@ Here is an example of the `Show` typeclass, with instances for Strings, Booleans
1212 class Show a where
1313 show :: a -> String
1414
15− instance Show String where
15+ instance showString :: Show String where
1616 show s = s
1717
18− instance Show Boolean where
18+ instance showBoolean :: Show Boolean where
1919 show true = "true"
2020 show false = "false"
2121
22− instance (Show a) => Show [a] where
22+ instance showArray :: (Show a) => Show [a] where
2323 show [] = "[]"
2424 show (x:xs) = show x ++ " : " ++ showArray xs
2525