Advertisement
Guest User

Untitled

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