[Haskell-cafe] trying to use Tag Soup - fromAttrib

Michael Litchard michael at schmong.org
Tue Nov 2 17:17:48 EDT 2010

I have the following TagOpen
[TagOpen "a" [("href","/launchWebForward.do?resourceId=4&policy=0&returnTo=%2FshowWebForwards.do")]]

I would like to get the attribute resourceId=4 from that. My
understanding is that fromAttrib is the right thing to use. But
I'm having difficulty understanding the type signature
fromAttrib :: (Show str, Eq str, StringLike str) => str -> Tag str -> str

I'm sure if I did, the way to use it would be clear. Could someone
help me make sense of this?

More information about the Haskell-Cafe mailing list