This diagram illustrates the wiring for a circuit with gfci receptacles followed by an unprotected light and switch. The light switch is connected directly to the source and the load terminals on the gfci are not used.
The white wire is wrapped with black tape to identify it as hot. The black wire connects the fan to the speed controller. The red wire connects the light to the dimmer.
Here the source is at the fan/light and a switch loop runs to the wall switch. The source is wired directly to the fan and spliced through to the switch. With this arrangement the light is controlled with the switch and the fan is hardwired for pull-chain control.
This gfci wiring provides protection to a duplex receptacle. By connecting the load terminals on the last gfci, the receptacle is protected and can be used just as if it were one of the gfci receptacles. One ground fault circuit interrupter at the beginning of the circuit can be used in the same way to protect multiple, subsequent receptacles as illustrated in the diagram below.