AshleyYakeley / Truth

Changes and Pinafore projects. Pull requests not accepted.
https://pinafore.info/
GNU General Public License v2.0
32 stars 0 forks source link

GIO file references not working #200

Closed AshleyYakeley closed 1 year ago

AshleyYakeley commented 1 year ago

This passes during testing, but fails in the installed version, both flake on NixOS, and deb on Linux Mint.

#!/usr/bin/env -S pinafore
let
    import "pinafore-gnome";
    using GIO;
in do
    mref <- fileMakeRef $ FileParseName "test/somefile";
    mf <- get mref;
    decode textMIME mf >- match
        Just t => write.Sink stdout.Env t;
        Nothing => writeLn.Sink stdout.Env "not text";
        end;
    end
AshleyYakeley commented 1 year ago

Looks like I shouldn't be using the "parse name" for a path. Probably it happened to work in an earlier version of GIO, but not now.

AshleyYakeley commented 1 year ago

Done.