using the typeclass
This commit is contained in:
parent
069733e474
commit
6ae455886b
@ -40,7 +40,7 @@ instance DatalogDB NaiveDatabase where
|
||||
-- insertRelation :: NaiveDatabase -> Text -> Relation -> NaiveDatabase
|
||||
-- insertRelation = _
|
||||
|
||||
lookupRelation0 :: RelationId -> NaiveDatabase -> Int -> Set [Term] -> Relation
|
||||
lookupRelation0 :: DatalogDB db => Text -> db -> Int -> Set [Constant] -> Relation
|
||||
lookupRelation0 relationName db newArity tuples =
|
||||
case lookupRelation db relationName of
|
||||
Nothing -> Relation relationName newArity tuples []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user