foundation
foundation copied to clipboard
readFile in basement?
@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.
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.