Haskell beginner here, sorry in advance for the dumb question. I'm coming from Python, and just wondering how I can get data (i.e. a string) out of a Haskell data type.
Let's say I have an RDF graph as used by rdf4h
, and I can get an Node
object out of it. This is what it looks like when I print
it:
LNode (PlainL "Stories from the Italian Poets: with Lives of the Writers, Volume 1")
How can I get the string value out of this? (I.e., "Stories from the...") I searched Hoogle for :: Node -> Text
but I can't seem to find anything. I also can't seem to find the appropriate function in Data.RDF.Types or anywhere similar. I'm sure there's something really obvious that I'm missing here.