A method for exchanging heat between an effluent fluid and a treatment fluid and a heat exchanger for heat exchange as well as an arrangement and a kit comprising a heat exchanger. The heat exchanger comprises a first and a second fluid circuit extending through the heat exchanger. The heat exchanger further comprises a stack of fluid plates and a membrane arranged between each of the fluid plates where one interspace is formed between each fluid plate and membrane. The first and the second fluid circuit is each constituted by a passage extending through the fluid plates and membranes and along the fluid plates and membranes in at least two interspaces. According to the method for heat exchanging an effluent fluid is passed through the first fluid circuit and a treatment fluid is passed through the second fluid circuit such that the effluent fluid is passed along one side of a membrane and simultaneously the treatment fluid is passed along the other side of the membrane. Heat is thus exchanged between the effluent fluid and the treatment fluid over the membrane.