Commit 5dbdd5f1 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[TODO] Read Class.

parent 7a050019
......@@ -149,6 +149,8 @@ instance showNodeType :: Show NodeType where
show Tree = "tree"
show Error = "ErrorNodeType"
-- | TODO : where is the Read Class ?
-- instance readNodeType :: Read NodeType where
readNodeType :: String -> NodeType
readNodeType "NodeUser" = NodeUser
readNodeType "NodeCorpus" = Corpus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment