foundation icon indicating copy to clipboard operation
foundation copied to clipboard

Need fromBytesThrow

Open ndmitchell opened this issue 7 years ago • 2 comments

I wrote fst3 . Fdn.fromBytes Fdn.UTF8 because I'm lazy. I imagine lots of other people will to - but what I really want is to just throw errors and return good stuff.

Related, a readFileUTF8 would also be handy, since then I wouldn't have to fromBytes and since it's in IO anyway the fact it throws is no great shock.

ndmitchell avatar Jun 11 '17 06:06 ndmitchell

this does relate a bit to #312

NicolasDP avatar Jun 11 '17 08:06 NicolasDP

agreed on readFileUTF8

also as a note, probably can do Foundation fst which should work on 3-tuple too.

vincenthz avatar Jun 11 '17 09:06 vincenthz