I've been using isNothing
, from Esqueleto
, but now I would like to just test if it is not null
, I've noticed that there is no isJust
, I would like to know the reason it doesn't exist, and what could I do to achieve similar effect: isJust (a ^. MyEntityMyField)
Asked
Active
Viewed 111 times
1

FtheBuilder
- 1,410
- 12
- 19
1 Answers
3
Can't you define it yourself?
isJust = not_ . isNothing

Daniel Martin
- 23,083
- 6
- 50
- 70
-
It seems like the library should define it. Maybe open an issue @FtheBuilder? – MaxGabriel May 27 '16 at 17:42
-
@MaxGabriel I will open – FtheBuilder May 27 '16 at 18:42
-
1@Daniel Martin I've defined it myself, I posted just to help others with similar problems... – FtheBuilder May 28 '16 at 18:41