foundation icon indicating copy to clipboard operation
foundation copied to clipboard

readFile in basement?

Open ndmitchell opened this issue 8 years ago • 1 comments

@vincenthz suggested I flip weeder to basement. The one problem with that is the function I defined:

readFileUTF8 :: FilePath -> IO Str
readFileUTF8 = fmap (fst3 . S.fromBytes S.UTF8) . S.readFile . S.fromString

Unfortunately readFile returning UArray Word8 isn't available from basement. Should it be? If not, I'll stick to foundation.

ndmitchell avatar Jan 11 '18 10:01 ndmitchell

It's not currently available outside foundation for now, however one unexecuted plan is to move all lowlevel system bindings which probably include readFile to an "operating system dependent stuff" package sitting between basement and foundation.

vincenthz avatar Jan 12 '18 09:01 vincenthz