Ran across this today. It's a well written implementation of RK4.
4th order Runge-Kutta (RK4) integration in Haskell