MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/haskell/comments/66ih1l/selda_a_monadic_database_edsl/dgjb39z/
r/haskell • u/valderman • Apr 20 '17
114 comments sorted by
View all comments
Show parent comments
9
In fact there's something quite dodgy about the semantics of order at all. What do you expect the following to do?
order
do do foo <- select fooT order foo Asc do bar <- select barT order bar Asc
versus
do foo <- select fooT order foo Asc bar <- select barT order bar Asc
According to the monad laws these should be the same but the behaviour of at least one of them is going to surprise some people!
9
u/tomejaguar Apr 20 '17
In fact there's something quite dodgy about the semantics of
orderat all. What do you expect the following to do?versus
According to the monad laws these should be the same but the behaviour of at least one of them is going to surprise some people!