ThanksGFCIs and other devices of the same ilk (ELCIs, etc) do solve the safety problem.
They are prone to nuisance trips in a marine environment and so haven't seen widespread adoption. Much of the problem is that they trip when the wiring on boat has excessive leakage, which is common, and hard for the average yacht owner (or marina electrician, or most electricians for that matter) to fix. Truly capable electricians who can find and fix grounded neutrals and leakage problems are few and far between, and most of them have well-paying cushy industrial jobs that don't require them to try to fix wiring in some tiny little odoriferous forward compartment on the bottom deck.
I found this link: ELCI / GFCI Electrical Shock Protection | West Marine
and summary:
GFCIs are used as branch circuit ground fault protection
at the 5mA threshold in potentially wet environments. GFCIs protect against flaws in devices plugged into them, but offer no protection from the danger of a failing hard-wired appliance, such as a water heater or cooktop.
An ELCI provides additional whole-boat protection. Installed as required within 10' of the shore power inlet, an ELCI provides 30mA ground fault protection for the entire AC shore power system beyond the ELCI. ABYC regulations still require the use of GFCIs in environments described above.
I'm not sure the bit about protecting against "failing hard-wired appliance" is valid since both the ELCI and GFCI "look" for an imbalance in the current entering and exiting the point of connection.