Is the name of `liftM` inspired by lifts in mathematics?

Viewed 146

I'm a math PhD student minoring in CS and currently taking a class in Haskell. We just learned about liftM.

The concepts seem similar but I haven't been able to figure out exactly how liftM can be thought of as a lift in the category-theoretical sense (I know very little category theory and was introduced to lifts in a Topology class).

1 Answers

Given the lack of activity -- and the lack of an obvious connection -- I think it's safe to say that liftM was not named because of its connection to topological and category-theoretic lifts.

Instead, I think the term "lift" has come to generically mean any transformation from one domain of reasoning to another, and it is this sense of "lift" that was the historical reason for the name liftM. Specifically: liftM transforms a pure function, "lift"ing it into the domain of a specific monad.

Related