Created
October 17, 2012 21:53
-
-
Save kmels/3908520 to your computer and use it in GitHub Desktop.
yesod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maybeGetBy :: forall (m :: * -> *) val. (PersistEntity val, | |
PersistUnique | |
(PersistEntityBackend val) m) => | |
Unique val (PersistEntityBackend val) | |
-> MaybeT | |
(PersistEntityBackend val m) (Database.Persist.Store.Entity val) | |
maybeGetBy criterion = MaybeT $ getBy criterion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment