• Manuel Gomez's avatar
    Use readFile from ByteString to read binary files · e7a27b42
    Manuel Gomez authored
    Reading a file that might contain PNG data using `System.IO.readFile`
    causes `hGetContents: invalid argument (invalid byte sequence)` due to
    file contents not being valid text under the current system locale.
    This fixes loading diagrams into Jupyter notebooks.
    e7a27b42
Diagrams.hs 1.37 KB