Tue Feb 1 14:29:29 CET 2011
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] .
On Wed, Feb 9, 2011 at 3:41 PM, Michael Litchard <michael at schmong.org> wrote:
> 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
> Beginners mailing list
> Beginners at haskell.org
More information about the Beginners