Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. getTree
  2. :: MonadIO m
  3. => PersistEntity ent
  4. => PersistEntityBackend ent ~ backend
  5. => Key ent
  6. -> ReaderT SqlBackend m (Maybe (Tree (Entity ent)))
  7. getTree keyId = do
  8. let entDef :: EntityDef
  9. entDef = entityDef (Nothing :: Maybe ent)
  10. _
  11.  
  12.  
  13. ---
  14.  
  15. • Could not deduce (PersistEntity record0)
  16. arising from a use of ‘entityDef’
  17. from the context: (MonadIO m,
  18. PersistEntity ent,
  19. PersistEntityBackend ent ~ backend)
  20. bound by the type signature for:
  21. getTree :: (MonadIO m, PersistEntity ent,
  22. PersistEntityBackend ent ~ backend) =>
  23. Key ent -> ReaderT SqlBackend m (Maybe (Tree (Entity ent)))
  24. at foo.hs (114,1)-(120,53)
  25. The type variable ‘record0’ is ambiguous
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement