[Fencommits] fenfire-hs: add FromRDF Node and ToRDF Node (these are basically no-ops, but having them makes [Node] implement FromRDF and ToRDF)
Benja Fallenstein
benja.fallenstein at gmail.com
Sun Mar 18 02:14:49 EET 2007
Sun Mar 18 02:11:46 EET 2007 Benja Fallenstein <benja.fallenstein at gmail.com>
* add FromRDF Node and ToRDF Node (these are basically no-ops, but having them makes [Node] implement FromRDF and ToRDF)
diff -rN -u old-fenfire-hs/Fenfire/RDF.hs new-fenfire-hs/Fenfire/RDF.hs
--- old-fenfire-hs/Fenfire/RDF.hs 2007-03-18 02:14:49.000000000 +0200
+++ new-fenfire-hs/Fenfire/RDF.hs 2007-03-18 02:14:49.000000000 +0200
@@ -301,6 +301,12 @@
instance ToRDF String where
toRDF s = return (Literal s Plain)
+
+instance FromRDF Node where
+ fromRDF _ n = n
+
+instance ToRDF Node where
+ toRDF n = return n
--------------------------------------------------------------------------
More information about the Fencommits
mailing list