C5YXBVXHVYE5WZMMRMYFKJFXNRDVFZUQOZB27TZIMPOIEFWBWUPAC
liftIO $ withFile filename ReadMode
(\filehandle -> do
contents <- hGetContents filehandle
putStrLn contents
)
-- Decode from JSON to list of Al Bhed Primers
-- Return the primers
return []
result <- liftIO $ withFile filename ReadMode
(ByteString.hGetContents >=> return . fromJson @Index . ByteString.fromStrict)
case result of
Nothing -> lift $ throwE "Unable to parse JSON into AlBhed.Index"
Just x -> return x