Re:Rust RAII is better than the Haskell bracket pattern
by thesz on Tuesday October 09, 2018 @06:51PM
(#18180503)
There was an abstract of PhD thesis devoted to enhancing usability of DSeLs by helping with error messages - they had to be expressed in terms of DSeL, not Haskell-the-language. And linear types as a library (be it ResourceT or something other) is a DSeL.
I think it is a better venue which can help many applications simultaneusly. While linear types won't.
Unless, of course, you're implying it's very haskellish to implement libraries with huge usability gotchas (of which ResourceT was one until the Ghosts of Departed Proofs paper reminded us we can reuse the machinery of ST), then I totally agree.