I haven't programmed much in Haskell, but I have played around with Elixir and Clojure before, so I have a rough sense of programming declaratively (I'm not terribly familiar with Haskell's type system outside of my exposure to traits in Rust, but I don't think that was the feature you were focusing on). Programming declaratively from what I've done is still thinking downwards, in that you map this, you filter this, etc, but it's a directed graph. With math you have equality/equivalence, which works both ways. If a + b = c + d, then c + d = a + b, so now you can go backwards. In my experience it feels completely different, because the way you solve problems takes advantage of things like this all the time.
I haven't programmed much in Haskell, but I have played around with Elixir and Clojure before, so I have a rough sense of programming declaratively (I'm not terribly familiar with Haskell's type system outside of my exposure to traits in Rust, but I don't think that was the feature you were focusing on). Programming declaratively from what I've done is still thinking downwards, in that you map this, you filter this, etc, but it's a directed graph. With math you have equality/equivalence, which works both ways. If a + b = c + d, then c + d = a + b, so now you can go backwards. In my experience it feels completely different, because the way you solve problems takes advantage of things like this all the time.