
From the docs [1] it looks like InfoValue has a few constructors only one of which (IList) has a [String].
You'll want to pattern-match on InfoValue to extract the [String] like :
f :: InfoValue -> ...
f (IList ss) .... =
f (IString s) ... =
The second line pattern matches on a IList and 'ss' is the [String] .
-deech
[1] http://hackage.haskell.org/packages/archive/curl/latest/doc/html/Network-Cur...
On Wed, Feb 9, 2011 at 3:41 PM, Michael Litchard
I'm using Network.Curl, and have to operate on values of type InfoValue. Now, an InfoValue looks exactly like a [String], and I would like to operate on it as if it were. Is the proper approach to convert it to a [String], or would I be using fmap?
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners