k0001 / di

Easy and powerful typeful logging without monad towers, in Haskell.
26 stars 5 forks source link

New backend: Human readable ByteStrings #6

Closed k0001 closed 6 years ago

k0001 commented 7 years ago

The logic in mkDiTextFileHandle should exist in a lower level mkDiHandle that puts stuff in the Handle as currently formatted by mkDiTextFileHandle.

k0001 commented 7 years ago

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.