Skip to content

Instantly share code, notes, and snippets.

@duairc
Created June 14, 2010 02:03
Show Gist options
  • Save duairc/437194 to your computer and use it in GitHub Desktop.
Save duairc/437194 to your computer and use it in GitHub Desktop.
src/Splices.hs:24:26:
No instance for (GenericXMLString Node)
arising from a use of `getAttribute'
at src/Splices.hs:24:26-50
Possible fix:
add an instance declaration for (GenericXMLString Node)
In the second argument of `($)', namely `getAttribute "href" input'
In the expression: fromJust $ getAttribute "href" input
In the definition of `href':
href = fromJust $ getAttribute "href" input
src/Splices.hs:24:39:
No instance for (Data.String.IsString (n1 c1 Node ByteString))
arising from the literal `"href"'
at src/Splices.hs:24:39-44
Possible fix:
add an instance declaration for
(Data.String.IsString (n1 c1 Node ByteString))
In the first argument of `getAttribute', namely `"href"'
In the second argument of `($)', namely `getAttribute "href" input'
In the expression: fromJust $ getAttribute "href" input
src/Splices.hs:25:39:
No instance for (Data.String.IsString (n c Node ByteString))
arising from the literal `"text"'
at src/Splices.hs:25:39-44
Possible fix:
add an instance declaration for
(Data.String.IsString (n c Node ByteString))
In the first argument of `getAttribute', namely `"text"'
In the second argument of `($)', namely `getAttribute "text" input'
In the expression: fromJust $ getAttribute "text" input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment