I read a draft of the book and talked with Scott a little bit while it was coming to publication. I think it’s an incredibly well written book and it was really fun to work through. He was partially inspired by Gerry Sussman and Jack Wisdom’s book Structure and Interpretation of Classical Mechanics, but obviously using Haskell over Scheme gives the benefits of types, and types are central to how he presents the material. SICM is also really great, I should say, but it’s aimed at a higher level (a second course, Lagrangian and Hamiltonian formulation of mechanics) instead of the “hopefully you’ve seen physics before but let’s work through it in a different way” style that Scott’s book uses. Unfortunately, the quantum mechanics sections didn’t make it into the book, but I think notes from his class on those sections still exist on his website.
Edit: See these two preprints:
Learn Physics by Programming in Haskell
Learn Quantum Mechanics with Haskell