serokell / universum

:milky_way: Prelude written in @Serokell
MIT License
176 stars 28 forks source link

Lift `hClose` #186

Closed kirelagin closed 6 years ago

kirelagin commented 6 years ago

Universum.Lifted.File lift functions for opening, reading and writing files, but nothing to close them.

gromakovsky commented 6 years ago

I think there are two options: export hClose (lifted version) or remove export of openFile and export withFile instead (probably with MonadMask constraint, MonadIO is not enough) because one should use withFile whenever possible. Or we can export all three :)

gromakovsky commented 6 years ago

Done in #200.