Hydraulic driveline for a vehicle comprising: a main hydraulic circuit with a first hydraulic displacement unit which is fluidly connected with a second hydraulic displacement unit said second hydraulic displacement unit forming a primary hydraulic load of the driveline, the first hydraulic displacement unit having a variable hydraulic displacement and being drivingly connected with a combustion engine, wherein the driveline further comprises a hydraulic accumulator assembly (6a, 6b) which is selectively fluidly connected to the main hydraulic circuit by one or more controllable valves (HPA, HPB, LPA, LPB) of a first group of valves, and wherein the driveline further comprises a first secondary module (28, 28') that comprises a first fluid communication (23, 23', 24, 24') of the hydraulic accumulator assembly (6a, 6b) with a first secondary hydraulic load (27, 37) of the hydraulic driveline wherein the first fluid communication comprises one or more controllable valves (20, 20', 21, 21', 22) that allow connecting the hydraulic accumulator assembly (6a, 6b) with the first secondary load (27, 37) or separating the hydraulic accumulator assembly (6a, 6b) from the first sec-ondary load and that belong to a second group of valves, and wherein the controllable valves of the second group of valves are controllable independently of the controllable valves of the first group of valves, wherein the hydraulic accumulator assembly (6a, 6b) comprises at least one high pressure accumulator (HP, 6a) and at least one low pressure accumulator (LP, 6b), wherein the pressure in the high pressure accumulator (HP, 6a) is higher than the pressure in the low pressure accumulator (LP, 6b), wherein the high pressure accumulator and the low pressure accumulator are each selectively fluidly connected to the main hydraulic circuit, wherein the high pressure accumulator (HP, 6a) and the low pressure accumulator (LP, 6b) are each connected to a connection point (25, 25') of the fluid communication through one of two different controllable valves (20, 20', 21, 21') of the second group of controllable valves and wherein the connection point is fluidly connected or connectable to the first secondary load (27, 37). a main hydraulic circuit with a first hydraulic displacement unit which is fluidly connected with a second hydraulic displacement unit said second hydraulic displacement unit forming a primary hydraulic load of the driveline, the first hydraulic displacement unit having a variable hydraulic displacement and being drivingly connected with a combustion engine, wherein the driveline further comprises a hydraulic accumulator assembly (6a, 6b) which is selectively fluidly connected to the main hydraulic circuit by one or more controllable valves (HPA, HPB, LPA, LPB) of a first group of valves, and wherein the driveline further comprises a first secondary module (28, 28') that comprises a first fluid communication (23, 23', 24, 24') of the hydraulic accumulator assembly (6a, 6b) with a first secondary hydraulic load (27, 37) of the hydraulic driveline wherein the first fluid communication comprises one or more controllable valves (20, 20', 21, 21', 22) that allow connecting the hydraulic accumulator assembly (6a, 6b) with the first secondary load (27, 37) or separating the hydraulic accumulator assembly (6a, 6b) from the first sec-ondary load and that belong to a second group of valves, and wherein the controllable valves of the second group of valves are controllable independently of the controllable valves of the first group of valves, wherein the hydraulic accumulator assembly (6a, 6b) comprises at least one high pressure accumulator (HP, 6a) and at least one low pressure accumulator (LP, 6b), wherein the pressure in the high pressure accumulator (HP, 6a) is higher than the pressure in the low pressure accumulator (LP, 6b), wherein the high pressure accumulator and the low pressure accumulator are each selectively fluidly connected to the main hydraulic circuit, wherein the high pressure accumulator (HP, 6a) and the low pressure accumulator (LP, 6b) are each connected to a connection point (25, 25') of the fluid communication through one of two different controllable valves (20, 20', 21, 21') of the second group of controllable valves and wherein the connection point is fluidly connected or connectable to the first secondary load (27, 37).