Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- error Couldn't match type 'IO [Domain]' with '[[Domain]]'
- Just term -> do
- usernames <- query @Username
- |> filterWhere (#name, term) |> fetch >>= collectionFetchRelated #domainId
- domains <- search |> filter \x->case find (\y->get #domainId x == get #domainId y) usernames of
- Just _ -> True
- Nothing -> False
- render IndexView {..}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement