<hellwolf> https://hackage.haskell.org/package/temporary-1.3/docs/src/System.IO.Temp.html#withTempDirectory
it seems indeed using bracket, so I don't know why.
Marked as bug for investigation later.