Closed k0001 closed 6 years ago
The logic in mkDiTextFileHandle should exist in a lower level mkDiHandle that puts stuff in the Handle as currently formatted by mkDiTextFileHandle.
mkDiTextFileHandle
mkDiHandle
Handle
Actually, there's no need to tie ourselves to a Handle. We can just take an arbitrary ByteString -> IO () and use that as the actual recording function.
ByteString -> IO ()
The logic in
mkDiTextFileHandle
should exist in a lower levelmkDiHandle
that puts stuff in theHandle
as currently formatted bymkDiTextFileHandle
.