So I have a simple data structure that has some ByteString
s. I want to serialize these into Dhall files. However, I apparently can't just automatically derive ToDhall
, since there's no instance for ToDhall
. How do I write that?
data WordBounds = WordBounds { zipFile :: Prelude.FilePath
, start :: BS.ByteString
, end :: BS.ByteString
} deriving (Show, Generic, ToDhall)
I've tried instance ToDhall BS.ByteString
and I think I'm getting closer, but I still don't quite understand what the syntax of instance
is trying to do, and/or how to get it to work with Dhall.