No subject


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] .
-deech

[1] http://hackage.haskell.org/packages/archive/curl/latest/doc/html/Network-Curl-Info.html#t:InfoValue
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
> fmap?
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>



More information about the Beginners mailing list